From 7917f780dd1afe4474c36698d81347bd405c2aa5 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 30 Aug 2022 04:49:31 +0000 Subject: [PATCH 1/2] docs: Publish Scan Run logging proto for documentation PiperOrigin-RevId: 470878694 Source-Link: https://github.com/googleapis/googleapis/commit/7a8b9881fd4b750a355b35b8918fbfe1ea95b6a4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e6a268ebbc5b412174473b2e1f0c38f0892457ef Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTZhMjY4ZWJiYzViNDEyMTc0NDczYjJlMWYwYzM4ZjA4OTI0NTdlZiJ9 --- .../v1/WebSecurityScannerGrpc.java | 1825 ------ .../v1alpha/WebSecurityScannerGrpc.java | 1848 ------ .../v1beta/WebSecurityScannerGrpc.java | 1842 ------ .../v1/WebSecurityScannerClient.java | 46 +- .../v1/WebSecurityScannerSettings.java | 7 +- .../websecurityscanner/v1/gapic_metadata.json | 0 .../websecurityscanner/v1/package-info.java | 4 +- ...GrpcWebSecurityScannerCallableFactory.java | 0 .../v1/stub/GrpcWebSecurityScannerStub.java | 1 + ...JsonWebSecurityScannerCallableFactory.java | 0 .../stub/HttpJsonWebSecurityScannerStub.java | 0 .../v1/stub/WebSecurityScannerStub.java | 0 .../stub/WebSecurityScannerStubSettings.java | 6 +- .../v1/MockWebSecurityScanner.java | 0 .../v1/MockWebSecurityScannerImpl.java | 0 .../WebSecurityScannerClientHttpJsonTest.java | 0 .../v1/WebSecurityScannerClientTest.java | 0 .../v1/WebSecurityScannerGrpc.java | 1349 +++++ .../websecurityscanner/v1/CrawledUrl.java | 469 +- .../v1/CrawledUrlOrBuilder.java | 45 +- .../v1/CrawledUrlProto.java | 56 + .../v1/CreateScanConfigRequest.java | 431 +- .../v1/CreateScanConfigRequestOrBuilder.java | 35 +- .../v1/DeleteScanConfigRequest.java | 332 +- .../v1/DeleteScanConfigRequestOrBuilder.java | 27 +- .../cloud/websecurityscanner/v1/Finding.java | 1886 +++--- .../v1/FindingAddonProto.java | 144 + .../v1/FindingOrBuilder.java | 182 +- .../websecurityscanner/v1/FindingProto.java | 93 + .../v1/FindingTypeStats.java | 348 +- .../v1/FindingTypeStatsOrBuilder.java | 30 +- .../v1/FindingTypeStatsProto.java | 56 + .../cloud/websecurityscanner/v1/Form.java | 412 +- .../websecurityscanner/v1/FormOrBuilder.java | 45 +- .../v1/GetFindingRequest.java | 314 +- .../v1/GetFindingRequestOrBuilder.java | 27 +- .../v1/GetScanConfigRequest.java | 314 +- .../v1/GetScanConfigRequestOrBuilder.java | 27 +- .../v1/GetScanRunRequest.java | 314 +- .../v1/GetScanRunRequestOrBuilder.java | 27 +- .../v1/ListCrawledUrlsRequest.java | 435 +- .../v1/ListCrawledUrlsRequestOrBuilder.java | 39 +- .../v1/ListCrawledUrlsResponse.java | 467 +- .../v1/ListCrawledUrlsResponseOrBuilder.java | 45 +- .../v1/ListFindingTypeStatsRequest.java | 347 +- .../ListFindingTypeStatsRequestOrBuilder.java | 27 +- .../v1/ListFindingTypeStatsResponse.java | 508 +- ...ListFindingTypeStatsResponseOrBuilder.java | 48 +- .../v1/ListFindingsRequest.java | 508 +- .../v1/ListFindingsRequestOrBuilder.java | 48 +- .../v1/ListFindingsResponse.java | 464 +- .../v1/ListFindingsResponseOrBuilder.java | 45 +- .../v1/ListScanConfigsRequest.java | 435 +- .../v1/ListScanConfigsRequestOrBuilder.java | 39 +- .../v1/ListScanConfigsResponse.java | 467 +- .../v1/ListScanConfigsResponseOrBuilder.java | 45 +- .../v1/ListScanRunsRequest.java | 427 +- .../v1/ListScanRunsRequestOrBuilder.java | 39 +- .../v1/ListScanRunsResponse.java | 464 +- .../v1/ListScanRunsResponseOrBuilder.java | 45 +- .../v1/OutdatedLibrary.java | 504 +- .../v1/OutdatedLibraryOrBuilder.java | 54 +- .../websecurityscanner/v1/ScanConfig.java | 5166 ++++++----------- .../v1/ScanConfigError.java | 769 +-- .../v1/ScanConfigErrorOrBuilder.java | 33 +- .../v1/ScanConfigErrorProto.java | 93 + .../v1/ScanConfigOrBuilder.java | 129 +- .../v1/ScanConfigProto.java | 173 + .../cloud/websecurityscanner/v1/ScanRun.java | 1264 ++-- .../v1/ScanRunErrorTrace.java | 551 +- .../v1/ScanRunErrorTraceOrBuilder.java | 35 +- .../v1/ScanRunErrorTraceProto.java | 68 + .../websecurityscanner/v1/ScanRunLog.java | 1400 +++++ .../v1/ScanRunLogOrBuilder.java | 120 + .../v1/ScanRunLogProto.java | 70 + .../v1/ScanRunOrBuilder.java | 105 +- .../websecurityscanner/v1/ScanRunProto.java | 82 + .../v1/ScanRunWarningTrace.java | 389 +- .../v1/ScanRunWarningTraceOrBuilder.java | 24 +- .../v1/ScanRunWarningTraceProto.java | 61 + .../v1/StartScanRunRequest.java | 314 +- .../v1/StartScanRunRequestOrBuilder.java | 27 +- .../v1/StopScanRunRequest.java | 314 +- .../v1/StopScanRunRequestOrBuilder.java | 27 +- .../v1/UpdateScanConfigRequest.java | 451 +- .../v1/UpdateScanConfigRequestOrBuilder.java | 34 +- .../v1/ViolatingResource.java | 393 +- .../v1/ViolatingResourceOrBuilder.java | 36 +- .../v1/VulnerableHeaders.java | 1167 ++-- .../v1/VulnerableHeadersOrBuilder.java | 71 +- .../v1/VulnerableParameters.java | 346 +- .../v1/VulnerableParametersOrBuilder.java | 36 +- .../v1/WebSecurityScannerProto.java | 376 ++ .../cloud/websecurityscanner/v1/Xss.java | 718 +-- .../websecurityscanner/v1/XssOrBuilder.java | 60 +- .../websecurityscanner/v1/crawled_url.proto | 0 .../cloud/websecurityscanner/v1/finding.proto | 0 .../websecurityscanner/v1/finding_addon.proto | 0 .../v1/finding_type_stats.proto | 0 .../websecurityscanner/v1/scan_config.proto | 0 .../v1/scan_config_error.proto | 0 .../websecurityscanner/v1/scan_run.proto | 0 .../v1/scan_run_error_trace.proto | 0 .../websecurityscanner/v1/scan_run_log.proto | 55 + .../v1/scan_run_warning_trace.proto | 0 .../v1/web_security_scanner.proto | 0 .../SyncCreateScanConfig.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateScanConfig.java | 0 .../SyncCreateScanConfig.java | 0 .../AsyncDeleteScanConfig.java | 0 .../SyncDeleteScanConfig.java | 0 .../getfinding/AsyncGetFinding.java | 0 .../getfinding/SyncGetFinding.java | 0 .../getscanconfig/AsyncGetScanConfig.java | 0 .../getscanconfig/SyncGetScanConfig.java | 0 .../getscanrun/AsyncGetScanRun.java | 0 .../getscanrun/SyncGetScanRun.java | 0 .../listcrawledurls/AsyncListCrawledUrls.java | 0 .../AsyncListCrawledUrlsPaged.java | 0 .../listcrawledurls/SyncListCrawledUrls.java | 0 .../listfindings/AsyncListFindings.java | 0 .../listfindings/AsyncListFindingsPaged.java | 0 .../listfindings/SyncListFindings.java | 0 .../AsyncListFindingTypeStats.java | 0 .../SyncListFindingTypeStats.java | 0 .../listscanconfigs/AsyncListScanConfigs.java | 0 .../AsyncListScanConfigsPaged.java | 0 .../listscanconfigs/SyncListScanConfigs.java | 0 .../listscanruns/AsyncListScanRuns.java | 0 .../listscanruns/AsyncListScanRunsPaged.java | 0 .../listscanruns/SyncListScanRuns.java | 0 .../startscanrun/AsyncStartScanRun.java | 0 .../startscanrun/SyncStartScanRun.java | 0 .../stopscanrun/AsyncStopScanRun.java | 0 .../stopscanrun/SyncStopScanRun.java | 0 .../AsyncUpdateScanConfig.java | 0 .../SyncUpdateScanConfig.java | 0 .../SyncCreateScanConfig.java | 0 .../v1alpha/WebSecurityScannerClient.java | 46 +- .../v1alpha/WebSecurityScannerSettings.java | 7 +- .../v1alpha/gapic_metadata.json | 0 .../v1alpha/package-info.java | 0 ...GrpcWebSecurityScannerCallableFactory.java | 0 .../stub/GrpcWebSecurityScannerStub.java | 1 + ...JsonWebSecurityScannerCallableFactory.java | 0 .../stub/HttpJsonWebSecurityScannerStub.java | 0 .../v1alpha/stub/WebSecurityScannerStub.java | 0 .../stub/WebSecurityScannerStubSettings.java | 6 +- .../v1alpha/MockWebSecurityScanner.java | 0 .../v1alpha/MockWebSecurityScannerImpl.java | 0 .../WebSecurityScannerClientHttpJsonTest.java | 0 .../v1alpha/WebSecurityScannerClientTest.java | 0 .../v1alpha/WebSecurityScannerGrpc.java | 1349 +++++ .../v1alpha/CrawledUrl.java | 472 +- .../v1alpha/CrawledUrlOrBuilder.java | 45 +- .../v1alpha/CrawledUrlProto.java | 54 + .../v1alpha/CreateScanConfigRequest.java | 525 +- .../CreateScanConfigRequestOrBuilder.java | 58 + .../v1alpha/DeleteScanConfigRequest.java | 375 +- .../DeleteScanConfigRequestOrBuilder.java | 31 + .../websecurityscanner/v1alpha/Finding.java | 1843 +++--- .../v1alpha/FindingAddonProto.java | 119 + .../v1alpha/FindingName.java | 0 .../v1alpha/FindingOrBuilder.java | 184 +- .../v1alpha/FindingProto.java | 91 + .../v1alpha/FindingTypeStats.java | 351 +- .../v1alpha/FindingTypeStatsOrBuilder.java | 27 +- .../v1alpha/FindingTypeStatsProto.java | 59 + .../v1alpha/GetFindingRequest.java | 350 +- .../v1alpha/GetFindingRequestOrBuilder.java | 33 + .../v1alpha/GetScanConfigRequest.java | 363 +- .../GetScanConfigRequestOrBuilder.java | 31 + .../v1alpha/GetScanRunRequest.java | 350 +- .../v1alpha/GetScanRunRequestOrBuilder.java | 33 + .../v1alpha/ListCrawledUrlsRequest.java | 488 +- .../ListCrawledUrlsRequestOrBuilder.java | 47 +- .../v1alpha/ListCrawledUrlsResponse.java | 492 +- .../ListCrawledUrlsResponseOrBuilder.java | 42 +- .../v1alpha/ListFindingTypeStatsRequest.java | 385 +- .../ListFindingTypeStatsRequestOrBuilder.java | 33 + .../v1alpha/ListFindingTypeStatsResponse.java | 556 +- ...ListFindingTypeStatsResponseOrBuilder.java | 53 + .../v1alpha/ListFindingsRequest.java | 557 +- .../v1alpha/ListFindingsRequestOrBuilder.java | 56 +- .../v1alpha/ListFindingsResponse.java | 469 +- .../ListFindingsResponseOrBuilder.java | 45 +- .../v1alpha/ListScanConfigsRequest.java | 488 +- .../ListScanConfigsRequestOrBuilder.java | 47 +- .../v1alpha/ListScanConfigsResponse.java | 492 +- .../ListScanConfigsResponseOrBuilder.java | 42 +- .../v1alpha/ListScanRunsRequest.java | 476 +- .../v1alpha/ListScanRunsRequestOrBuilder.java | 47 +- .../v1alpha/ListScanRunsResponse.java | 469 +- .../ListScanRunsResponseOrBuilder.java | 45 +- .../v1alpha/OutdatedLibrary.java | 504 +- .../v1alpha/OutdatedLibraryOrBuilder.java | 54 +- .../v1alpha/ProjectName.java | 0 .../v1alpha/ScanConfig.java | 3939 +++++-------- .../v1alpha/ScanConfigName.java | 0 .../v1alpha/ScanConfigOrBuilder.java | 161 +- .../v1alpha/ScanConfigProto.java | 147 + .../websecurityscanner/v1alpha/ScanRun.java | 958 ++- .../v1alpha/ScanRunName.java | 0 .../v1alpha/ScanRunOrBuilder.java | 73 +- .../v1alpha/ScanRunProto.java | 80 + .../v1alpha/StartScanRunRequest.java | 363 +- .../v1alpha/StartScanRunRequestOrBuilder.java | 31 + .../v1alpha/StopScanRunRequest.java | 360 +- .../v1alpha/StopScanRunRequestOrBuilder.java | 33 + .../v1alpha/UpdateScanConfigRequest.java | 553 +- .../UpdateScanConfigRequestOrBuilder.java | 55 +- .../v1alpha/ViolatingResource.java | 401 +- .../v1alpha/ViolatingResourceOrBuilder.java | 36 +- .../v1alpha/VulnerableHeaders.java | 1223 ++-- .../v1alpha/VulnerableHeadersOrBuilder.java | 87 +- .../v1alpha/VulnerableParameters.java | 367 +- .../VulnerableParametersOrBuilder.java | 36 +- .../v1alpha/WebSecurityScannerProto.java | 408 ++ .../cloud/websecurityscanner/v1alpha/Xss.java | 415 +- .../v1alpha/XssOrBuilder.java | 45 +- .../v1alpha/crawled_url.proto | 0 .../websecurityscanner/v1alpha/finding.proto | 0 .../v1alpha/finding_addon.proto | 0 .../v1alpha/finding_type_stats.proto | 0 .../v1alpha/scan_config.proto | 0 .../websecurityscanner/v1alpha/scan_run.proto | 0 .../v1alpha/web_security_scanner.proto | 0 .../SyncCreateScanConfig.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateScanConfig.java | 0 .../SyncCreateScanConfig.java | 0 ...CreateScanConfigProjectnameScanconfig.java | 0 .../SyncCreateScanConfigStringScanconfig.java | 0 .../AsyncDeleteScanConfig.java | 0 .../SyncDeleteScanConfig.java | 0 .../SyncDeleteScanConfigScanconfigname.java | 0 .../SyncDeleteScanConfigString.java | 0 .../getfinding/AsyncGetFinding.java | 0 .../getfinding/SyncGetFinding.java | 0 .../getfinding/SyncGetFindingFindingname.java | 0 .../getfinding/SyncGetFindingString.java | 0 .../getscanconfig/AsyncGetScanConfig.java | 0 .../getscanconfig/SyncGetScanConfig.java | 0 .../SyncGetScanConfigScanconfigname.java | 0 .../SyncGetScanConfigString.java | 0 .../getscanrun/AsyncGetScanRun.java | 0 .../getscanrun/SyncGetScanRun.java | 0 .../getscanrun/SyncGetScanRunScanrunname.java | 0 .../getscanrun/SyncGetScanRunString.java | 0 .../listcrawledurls/AsyncListCrawledUrls.java | 0 .../AsyncListCrawledUrlsPaged.java | 0 .../listcrawledurls/SyncListCrawledUrls.java | 0 .../SyncListCrawledUrlsScanrunname.java | 0 .../SyncListCrawledUrlsString.java | 0 .../listfindings/AsyncListFindings.java | 0 .../listfindings/AsyncListFindingsPaged.java | 0 .../listfindings/SyncListFindings.java | 0 .../SyncListFindingsScanrunnameString.java | 0 .../SyncListFindingsStringString.java | 0 .../AsyncListFindingTypeStats.java | 0 .../SyncListFindingTypeStats.java | 0 .../SyncListFindingTypeStatsScanrunname.java | 0 .../SyncListFindingTypeStatsString.java | 0 .../listscanconfigs/AsyncListScanConfigs.java | 0 .../AsyncListScanConfigsPaged.java | 0 .../listscanconfigs/SyncListScanConfigs.java | 0 .../SyncListScanConfigsProjectname.java | 0 .../SyncListScanConfigsString.java | 0 .../listscanruns/AsyncListScanRuns.java | 0 .../listscanruns/AsyncListScanRunsPaged.java | 0 .../listscanruns/SyncListScanRuns.java | 0 .../SyncListScanRunsScanconfigname.java | 0 .../listscanruns/SyncListScanRunsString.java | 0 .../startscanrun/AsyncStartScanRun.java | 0 .../startscanrun/SyncStartScanRun.java | 0 .../SyncStartScanRunScanconfigname.java | 0 .../startscanrun/SyncStartScanRunString.java | 0 .../stopscanrun/AsyncStopScanRun.java | 0 .../stopscanrun/SyncStopScanRun.java | 0 .../SyncStopScanRunScanrunname.java | 0 .../stopscanrun/SyncStopScanRunString.java | 0 .../AsyncUpdateScanConfig.java | 0 .../SyncUpdateScanConfig.java | 0 ...ncUpdateScanConfigScanconfigFieldmask.java | 0 .../SyncCreateScanConfig.java | 0 .../v1beta/WebSecurityScannerClient.java | 46 +- .../v1beta/WebSecurityScannerSettings.java | 7 +- .../v1beta/gapic_metadata.json | 0 .../v1beta/package-info.java | 0 ...GrpcWebSecurityScannerCallableFactory.java | 0 .../stub/GrpcWebSecurityScannerStub.java | 1 + ...JsonWebSecurityScannerCallableFactory.java | 0 .../stub/HttpJsonWebSecurityScannerStub.java | 0 .../v1beta/stub/WebSecurityScannerStub.java | 0 .../stub/WebSecurityScannerStubSettings.java | 6 +- .../v1beta/MockWebSecurityScanner.java | 0 .../v1beta/MockWebSecurityScannerImpl.java | 0 .../WebSecurityScannerClientHttpJsonTest.java | 0 .../v1beta/WebSecurityScannerClientTest.java | 0 .../v1beta/WebSecurityScannerGrpc.java | 1349 +++++ .../websecurityscanner/v1beta/CrawledUrl.java | 472 +- .../v1beta/CrawledUrlOrBuilder.java | 45 +- .../v1beta/CrawledUrlProto.java | 57 + .../v1beta/CreateScanConfigRequest.java | 522 +- .../CreateScanConfigRequestOrBuilder.java | 58 + .../v1beta/DeleteScanConfigRequest.java | 375 +- .../DeleteScanConfigRequestOrBuilder.java | 31 + .../websecurityscanner/v1beta/Finding.java | 1795 +++--- .../v1beta/FindingAddonProto.java | 134 + .../v1beta/FindingName.java | 0 .../v1beta/FindingOrBuilder.java | 174 +- .../v1beta/FindingProto.java | 86 + .../v1beta/FindingTypeStats.java | 348 +- .../v1beta/FindingTypeStatsOrBuilder.java | 30 +- .../v1beta/FindingTypeStatsProto.java | 57 + .../cloud/websecurityscanner/v1beta/Form.java | 415 +- .../v1beta/FormOrBuilder.java | 45 +- .../v1beta/GetFindingRequest.java | 349 +- .../v1beta/GetFindingRequestOrBuilder.java | 33 + .../v1beta/GetScanConfigRequest.java | 363 +- .../v1beta/GetScanConfigRequestOrBuilder.java | 31 + .../v1beta/GetScanRunRequest.java | 349 +- .../v1beta/GetScanRunRequestOrBuilder.java | 33 + .../v1beta/ListCrawledUrlsRequest.java | 484 +- .../ListCrawledUrlsRequestOrBuilder.java | 47 +- .../v1beta/ListCrawledUrlsResponse.java | 492 +- .../ListCrawledUrlsResponseOrBuilder.java | 45 +- .../v1beta/ListFindingTypeStatsRequest.java | 378 +- .../ListFindingTypeStatsRequestOrBuilder.java | 33 + .../v1beta/ListFindingTypeStatsResponse.java | 548 +- ...ListFindingTypeStatsResponseOrBuilder.java | 47 +- .../v1beta/ListFindingsRequest.java | 554 +- .../v1beta/ListFindingsRequestOrBuilder.java | 56 +- .../v1beta/ListFindingsResponse.java | 469 +- .../v1beta/ListFindingsResponseOrBuilder.java | 45 +- .../v1beta/ListScanConfigsRequest.java | 484 +- .../ListScanConfigsRequestOrBuilder.java | 47 +- .../v1beta/ListScanConfigsResponse.java | 492 +- .../ListScanConfigsResponseOrBuilder.java | 45 +- .../v1beta/ListScanRunsRequest.java | 473 +- .../v1beta/ListScanRunsRequestOrBuilder.java | 47 +- .../v1beta/ListScanRunsResponse.java | 469 +- .../v1beta/ListScanRunsResponseOrBuilder.java | 45 +- .../v1beta/OutdatedLibrary.java | 504 +- .../v1beta/OutdatedLibraryOrBuilder.java | 54 +- .../v1beta/ProjectName.java | 0 .../websecurityscanner/v1beta/ScanConfig.java | 4236 +++++--------- .../v1beta/ScanConfigError.java | 769 +-- .../v1beta/ScanConfigErrorOrBuilder.java | 33 +- .../v1beta/ScanConfigErrorProto.java | 93 + .../v1beta/ScanConfigName.java | 0 .../v1beta/ScanConfigOrBuilder.java | 184 +- .../v1beta/ScanConfigProto.java | 160 + .../websecurityscanner/v1beta/ScanRun.java | 1343 ++--- .../v1beta/ScanRunErrorTrace.java | 562 +- .../v1beta/ScanRunErrorTraceOrBuilder.java | 35 +- .../v1beta/ScanRunErrorTraceProto.java | 69 + .../v1beta/ScanRunName.java | 0 .../v1beta/ScanRunOrBuilder.java | 110 +- .../v1beta/ScanRunProto.java | 94 + .../v1beta/ScanRunWarningTrace.java | 410 +- .../v1beta/ScanRunWarningTraceOrBuilder.java | 24 +- .../v1beta/ScanRunWarningTraceProto.java | 62 + .../v1beta/StartScanRunRequest.java | 360 +- .../v1beta/StartScanRunRequestOrBuilder.java | 31 + .../v1beta/StopScanRunRequest.java | 350 +- .../v1beta/StopScanRunRequestOrBuilder.java | 33 + .../v1beta/UpdateScanConfigRequest.java | 550 +- .../UpdateScanConfigRequestOrBuilder.java | 55 +- .../v1beta/ViolatingResource.java | 400 +- .../v1beta/ViolatingResourceOrBuilder.java | 36 +- .../v1beta/VulnerableHeaders.java | 1216 ++-- .../v1beta/VulnerableHeadersOrBuilder.java | 87 +- .../v1beta/VulnerableParameters.java | 367 +- .../v1beta/VulnerableParametersOrBuilder.java | 36 +- .../v1beta/WebSecurityScannerProto.java | 410 ++ .../cloud/websecurityscanner/v1beta/Xss.java | 412 +- .../v1beta/XssOrBuilder.java | 45 +- .../v1beta/crawled_url.proto | 0 .../websecurityscanner/v1beta/finding.proto | 0 .../v1beta/finding_addon.proto | 0 .../v1beta/finding_type_stats.proto | 0 .../v1beta/scan_config.proto | 0 .../v1beta/scan_config_error.proto | 0 .../websecurityscanner/v1beta/scan_run.proto | 0 .../v1beta/scan_run_error_trace.proto | 0 .../v1beta/scan_run_warning_trace.proto | 0 .../v1beta/web_security_scanner.proto | 0 .../SyncCreateScanConfig.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateScanConfig.java | 0 .../SyncCreateScanConfig.java | 0 ...CreateScanConfigProjectnameScanconfig.java | 0 .../SyncCreateScanConfigStringScanconfig.java | 0 .../AsyncDeleteScanConfig.java | 0 .../SyncDeleteScanConfig.java | 0 .../SyncDeleteScanConfigScanconfigname.java | 0 .../SyncDeleteScanConfigString.java | 0 .../getfinding/AsyncGetFinding.java | 0 .../getfinding/SyncGetFinding.java | 0 .../getfinding/SyncGetFindingFindingname.java | 0 .../getfinding/SyncGetFindingString.java | 0 .../getscanconfig/AsyncGetScanConfig.java | 0 .../getscanconfig/SyncGetScanConfig.java | 0 .../SyncGetScanConfigScanconfigname.java | 0 .../SyncGetScanConfigString.java | 0 .../getscanrun/AsyncGetScanRun.java | 0 .../getscanrun/SyncGetScanRun.java | 0 .../getscanrun/SyncGetScanRunScanrunname.java | 0 .../getscanrun/SyncGetScanRunString.java | 0 .../listcrawledurls/AsyncListCrawledUrls.java | 0 .../AsyncListCrawledUrlsPaged.java | 0 .../listcrawledurls/SyncListCrawledUrls.java | 0 .../SyncListCrawledUrlsScanrunname.java | 0 .../SyncListCrawledUrlsString.java | 0 .../listfindings/AsyncListFindings.java | 0 .../listfindings/AsyncListFindingsPaged.java | 0 .../listfindings/SyncListFindings.java | 0 .../SyncListFindingsScanrunnameString.java | 0 .../SyncListFindingsStringString.java | 0 .../AsyncListFindingTypeStats.java | 0 .../SyncListFindingTypeStats.java | 0 .../SyncListFindingTypeStatsScanrunname.java | 0 .../SyncListFindingTypeStatsString.java | 0 .../listscanconfigs/AsyncListScanConfigs.java | 0 .../AsyncListScanConfigsPaged.java | 0 .../listscanconfigs/SyncListScanConfigs.java | 0 .../SyncListScanConfigsProjectname.java | 0 .../SyncListScanConfigsString.java | 0 .../listscanruns/AsyncListScanRuns.java | 0 .../listscanruns/AsyncListScanRunsPaged.java | 0 .../listscanruns/SyncListScanRuns.java | 0 .../SyncListScanRunsScanconfigname.java | 0 .../listscanruns/SyncListScanRunsString.java | 0 .../startscanrun/AsyncStartScanRun.java | 0 .../startscanrun/SyncStartScanRun.java | 0 .../SyncStartScanRunScanconfigname.java | 0 .../startscanrun/SyncStartScanRunString.java | 0 .../stopscanrun/AsyncStopScanRun.java | 0 .../stopscanrun/SyncStopScanRun.java | 0 .../SyncStopScanRunScanrunname.java | 0 .../stopscanrun/SyncStopScanRunString.java | 0 .../AsyncUpdateScanConfig.java | 0 .../SyncUpdateScanConfig.java | 0 ...ncUpdateScanConfigScanconfigFieldmask.java | 0 .../SyncCreateScanConfig.java | 0 .../v1/CrawledUrlProto.java | 69 - .../v1/FindingAddonProto.java | 165 - .../websecurityscanner/v1/FindingProto.java | 124 - .../v1/FindingTypeStatsProto.java | 69 - .../v1/ScanConfigErrorProto.java | 106 - .../v1/ScanConfigProto.java | 217 - .../v1/ScanRunErrorTraceProto.java | 83 - .../websecurityscanner/v1/ScanRunProto.java | 107 - .../v1/ScanRunWarningTraceProto.java | 74 - .../v1/WebSecurityScannerProto.java | 408 -- .../v1alpha/CrawledUrlProto.java | 67 - .../CreateScanConfigRequestOrBuilder.java | 97 - .../DeleteScanConfigRequestOrBuilder.java | 56 - .../v1alpha/FindingAddonProto.java | 139 - .../v1alpha/FindingProto.java | 120 - .../v1alpha/FindingTypeStatsProto.java | 74 - .../v1alpha/GetFindingRequestOrBuilder.java | 58 - .../GetScanConfigRequestOrBuilder.java | 56 - .../v1alpha/GetScanRunRequestOrBuilder.java | 58 - .../ListFindingTypeStatsRequestOrBuilder.java | 58 - ...ListFindingTypeStatsResponseOrBuilder.java | 89 - .../v1alpha/ScanConfigProto.java | 183 - .../v1alpha/ScanRunProto.java | 103 - .../v1alpha/StartScanRunRequestOrBuilder.java | 56 - .../v1alpha/StopScanRunRequestOrBuilder.java | 58 - .../v1alpha/WebSecurityScannerProto.java | 440 -- .../v1beta/CrawledUrlProto.java | 70 - .../CreateScanConfigRequestOrBuilder.java | 97 - .../DeleteScanConfigRequestOrBuilder.java | 56 - .../v1beta/FindingAddonProto.java | 155 - .../v1beta/FindingProto.java | 116 - .../v1beta/FindingTypeStatsProto.java | 70 - .../v1beta/GetFindingRequestOrBuilder.java | 58 - .../v1beta/GetScanConfigRequestOrBuilder.java | 56 - .../v1beta/GetScanRunRequestOrBuilder.java | 58 - .../ListFindingTypeStatsRequestOrBuilder.java | 58 - .../v1beta/ScanConfigErrorProto.java | 106 - .../v1beta/ScanConfigProto.java | 198 - .../v1beta/ScanRunErrorTraceProto.java | 84 - .../v1beta/ScanRunProto.java | 119 - .../v1beta/ScanRunWarningTraceProto.java | 75 - .../v1beta/StartScanRunRequestOrBuilder.java | 56 - .../v1beta/StopScanRunRequestOrBuilder.java | 58 - .../v1beta/WebSecurityScannerProto.java | 442 -- 497 files changed, 33568 insertions(+), 52599 deletions(-) delete mode 100644 grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java delete mode 100644 grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java delete mode 100644 grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java rename {google-cloud-websecurityscanner => owl-bot-staging/v1/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java (97%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java (97%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java (93%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java (99%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java (99%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1/google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1/google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1/google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1/google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java (71%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java (62%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java (69%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java (67%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java (68%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java (54%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java (73%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java (83%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java (70%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java (55%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java (72%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java (64%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java (70%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java (56%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java (69%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java (54%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java (70%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java (55%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java (72%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java (69%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java (73%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java (69%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java (66%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java (56%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java (67%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java (59%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java (74%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java (73%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java (73%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java (69%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java (72%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java (68%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java (73%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java (69%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java (73%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java (68%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java (73%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java (69%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java (72%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java (67%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java (65%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java (75%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java (81%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java (75%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java (74%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java (77%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java (85%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java (71%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java (55%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java (70%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java (54%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java (70%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java (55%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java (72%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java (78%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java (70%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java (55%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java (67%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java (60%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java (71%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java (59%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/Xss.java (74%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java (72%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto (100%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto (100%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto (100%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto (100%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto (100%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto (100%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto (100%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto (100%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto (100%) rename {proto-google-cloud-websecurityscanner-v1 => owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java (100%) rename {samples => owl-bot-staging/v1/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1alpha/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java (98%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1alpha/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java (97%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1alpha/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1alpha/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1alpha/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1alpha/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java (99%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1alpha/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1alpha/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1alpha/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1alpha/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java (99%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1alpha/google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1alpha/google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1alpha/google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1alpha/google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java (100%) create mode 100644 owl-bot-staging/v1alpha/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java (71%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java (62%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java (61%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java (63%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java (72%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java (100%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java (80%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java (68%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java (61%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java (66%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java (64%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java (66%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java (67%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java (62%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java (72%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java (71%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java (62%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java (60%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java (70%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java (68%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java (73%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java (69%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java (67%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java (61%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java (72%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java (71%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java (68%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java (61%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java (73%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java (69%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java (72%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java (67%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java (100%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java (66%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java (100%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java (78%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java (74%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java (100%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java (83%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java (64%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java (65%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java (66%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java (64%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java (70%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java (55%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java (66%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java (51%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java (69%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java (60%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java (72%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java (65%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto (100%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto (100%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto (100%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto (100%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto (100%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto (100%) rename {proto-google-cloud-websecurityscanner-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha}/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java (100%) rename {samples => owl-bot-staging/v1alpha/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1beta/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java (98%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1beta/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java (97%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1beta/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1beta/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1beta/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1beta/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java (99%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1beta/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1beta/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1beta/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1beta/google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java (99%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1beta/google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1beta/google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1beta/google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java (100%) rename {google-cloud-websecurityscanner => owl-bot-staging/v1beta/google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java (100%) create mode 100644 owl-bot-staging/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java (71%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java (61%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java (61%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java (63%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java (72%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java (100%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java (84%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java (70%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java (54%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java (72%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java (64%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java (66%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java (64%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java (66%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java (68%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java (62%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java (72%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java (69%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java (63%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java (62%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java (60%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java (71%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java (68%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java (73%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java (69%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java (67%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java (61%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java (72%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java (69%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java (69%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java (61%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java (73%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java (69%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java (72%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java (67%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java (100%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java (66%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java (75%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java (68%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java (100%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java (77%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java (72%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java (72%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java (77%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java (100%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java (84%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java (68%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java (55%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java (64%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java (66%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java (66%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java (64%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java (69%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java (55%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java (65%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java (51%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java (68%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java (60%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java (72%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java (65%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto (100%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto (100%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto (100%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto (100%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto (100%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto (100%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto (100%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto (100%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto (100%) rename {proto-google-cloud-websecurityscanner-v1beta => owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java (100%) rename {samples => owl-bot-staging/v1beta/samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java (100%) delete mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java delete mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java delete mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java delete mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java delete mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java delete mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java delete mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java delete mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java diff --git a/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java b/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java deleted file mode 100644 index ce8eb5ce..00000000 --- a/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java +++ /dev/null @@ -1,1825 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.websecurityscanner.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Web Security Scanner Service identifies security vulnerabilities in web
- * applications hosted on Google Cloud. It crawls your application, and
- * attempts to exercise as many user inputs and event handlers as possible.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/websecurityscanner/v1/web_security_scanner.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WebSecurityScannerGrpc { - - private WebSecurityScannerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.websecurityscanner.v1.WebSecurityScanner"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getCreateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getCreateScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getCreateScanConfigMethod; - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getCreateScanConfigMethod = - getCreateScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) - .build(); - } - } - } - return getCreateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, com.google.protobuf.Empty> - getDeleteScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", - requestType = com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, com.google.protobuf.Empty> - getDeleteScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, - com.google.protobuf.Empty> - getDeleteScanConfigMethod; - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getDeleteScanConfigMethod = - getDeleteScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) - .build(); - } - } - } - return getDeleteScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getGetScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", - requestType = com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getGetScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getGetScanConfigMethod; - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - WebSecurityScannerGrpc.getGetScanConfigMethod = - getGetScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) - .build(); - } - } - } - return getGetScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse> - getListScanConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", - requestType = com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse> - getListScanConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse> - getListScanConfigsMethod; - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - WebSecurityScannerGrpc.getListScanConfigsMethod = - getListScanConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) - .build(); - } - } - } - return getListScanConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getUpdateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getUpdateScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig> - getUpdateScanConfigMethod; - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getUpdateScanConfigMethod = - getUpdateScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) - .build(); - } - } - } - return getUpdateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getStartScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartScanRun", - requestType = com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getStartScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getStartScanRunMethod; - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - WebSecurityScannerGrpc.getStartScanRunMethod = - getStartScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) - .build(); - } - } - } - return getStartScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getGetScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanRun", - requestType = com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getGetScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getGetScanRunMethod; - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - WebSecurityScannerGrpc.getGetScanRunMethod = - getGetScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) - .build(); - } - } - } - return getGetScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse> - getListScanRunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", - requestType = com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse> - getListScanRunsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse> - getListScanRunsMethod; - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - WebSecurityScannerGrpc.getListScanRunsMethod = - getListScanRunsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) - .build(); - } - } - } - return getListScanRunsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getStopScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopScanRun", - requestType = com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getStopScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun> - getStopScanRunMethod; - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - WebSecurityScannerGrpc.getStopScanRunMethod = - getStopScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) - .build(); - } - } - } - return getStopScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse> - getListCrawledUrlsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", - requestType = com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse> - getListCrawledUrlsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse> - getListCrawledUrlsMethod; - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - WebSecurityScannerGrpc.getListCrawledUrlsMethod = - getListCrawledUrlsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) - .build(); - } - } - } - return getListCrawledUrlsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetFindingRequest, - com.google.cloud.websecurityscanner.v1.Finding> - getGetFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFinding", - requestType = com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetFindingRequest, - com.google.cloud.websecurityscanner.v1.Finding> - getGetFindingMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.GetFindingRequest, - com.google.cloud.websecurityscanner.v1.Finding> - getGetFindingMethod; - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - WebSecurityScannerGrpc.getGetFindingMethod = - getGetFindingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.GetFindingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) - .build(); - } - } - } - return getGetFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingsResponse> - getListFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindings", - requestType = com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingsResponse> - getListFindingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingsResponse> - getListFindingsMethod; - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - WebSecurityScannerGrpc.getListFindingsMethod = - getListFindingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListFindingsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) - .build(); - } - } - } - return getListFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", - requestType = com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod; - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) - == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) - == null) { - WebSecurityScannerGrpc.getListFindingTypeStatsMethod = - getListFindingTypeStatsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) - .build(); - } - } - } - return getListFindingTypeStatsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - }; - return WebSecurityScannerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WebSecurityScannerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - }; - return WebSecurityScannerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static WebSecurityScannerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - }; - return WebSecurityScannerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public abstract static class WebSecurityScannerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListScanConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListScanRunsMethod(), responseObserver); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStopScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCrawledUrlsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1.GetFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingsMethod(), responseObserver); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingTypeStatsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig>( - this, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_SCAN_CONFIG))) - .addMethod( - getGetScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig>( - this, METHODID_GET_SCAN_CONFIG))) - .addMethod( - getListScanConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse>( - this, METHODID_LIST_SCAN_CONFIGS))) - .addMethod( - getUpdateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig>( - this, METHODID_UPDATE_SCAN_CONFIG))) - .addMethod( - getStartScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun>( - this, METHODID_START_SCAN_RUN))) - .addMethod( - getGetScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun>(this, METHODID_GET_SCAN_RUN))) - .addMethod( - getListScanRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse>( - this, METHODID_LIST_SCAN_RUNS))) - .addMethod( - getStopScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun>( - this, METHODID_STOP_SCAN_RUN))) - .addMethod( - getListCrawledUrlsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse>( - this, METHODID_LIST_CRAWLED_URLS))) - .addMethod( - getGetFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.GetFindingRequest, - com.google.cloud.websecurityscanner.v1.Finding>(this, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse>( - this, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - } - - /** - * - * - *
-   * Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerStub - extends io.grpc.stub.AbstractAsyncStub { - private WebSecurityScannerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1.GetFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private WebSecurityScannerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanConfig createScanConfig( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.protobuf.Empty deleteScanConfig( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse listScanConfigs( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanConfig updateScanConfig( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanRun startScanRun( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanRun getScanRun( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse listScanRuns( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanRunsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanRun stopScanRun( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse listCrawledUrls( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.Finding getFinding( - com.google.cloud.websecurityscanner.v1.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFindingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ListFindingsResponse listFindings( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse listFindingTypeStats( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private WebSecurityScannerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanConfig> - createScanConfig(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteScanConfig(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanConfig> - getScanConfig(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse> - listScanConfigs(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanConfig> - updateScanConfig(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanRun> - startScanRun(com.google.cloud.websecurityscanner.v1.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanRun> - getScanRun(com.google.cloud.websecurityscanner.v1.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse> - listScanRuns(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ScanRun> - stopScanRun(com.google.cloud.websecurityscanner.v1.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse> - listCrawledUrls(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.Finding> - getFinding(com.google.cloud.websecurityscanner.v1.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ListFindingsResponse> - listFindings(com.google.cloud.websecurityscanner.v1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> - listFindingTypeStats( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SCAN_CONFIG = 0; - private static final int METHODID_DELETE_SCAN_CONFIG = 1; - private static final int METHODID_GET_SCAN_CONFIG = 2; - private static final int METHODID_LIST_SCAN_CONFIGS = 3; - private static final int METHODID_UPDATE_SCAN_CONFIG = 4; - private static final int METHODID_START_SCAN_RUN = 5; - private static final int METHODID_GET_SCAN_RUN = 6; - private static final int METHODID_LIST_SCAN_RUNS = 7; - private static final int METHODID_STOP_SCAN_RUN = 8; - private static final int METHODID_LIST_CRAWLED_URLS = 9; - private static final int METHODID_GET_FINDING = 10; - private static final int METHODID_LIST_FINDINGS = 11; - private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final WebSecurityScannerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_SCAN_CONFIG: - serviceImpl.createScanConfig( - (com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_SCAN_CONFIG: - serviceImpl.deleteScanConfig( - (com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SCAN_CONFIG: - serviceImpl.getScanConfig( - (com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SCAN_CONFIGS: - serviceImpl.listScanConfigs( - (com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse>) - responseObserver); - break; - case METHODID_UPDATE_SCAN_CONFIG: - serviceImpl.updateScanConfig( - (com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_START_SCAN_RUN: - serviceImpl.startScanRun( - (com.google.cloud.websecurityscanner.v1.StartScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_SCAN_RUN: - serviceImpl.getScanRun( - (com.google.cloud.websecurityscanner.v1.GetScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SCAN_RUNS: - serviceImpl.listScanRuns( - (com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse>) - responseObserver); - break; - case METHODID_STOP_SCAN_RUN: - serviceImpl.stopScanRun( - (com.google.cloud.websecurityscanner.v1.StopScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CRAWLED_URLS: - serviceImpl.listCrawledUrls( - (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse>) - responseObserver); - break; - case METHODID_GET_FINDING: - serviceImpl.getFinding( - (com.google.cloud.websecurityscanner.v1.GetFindingRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_FINDINGS: - serviceImpl.listFindings( - (com.google.cloud.websecurityscanner.v1.ListFindingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1.ListFindingsResponse>) - responseObserver); - break; - case METHODID_LIST_FINDING_TYPE_STATS: - serviceImpl.listFindingTypeStats( - (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WebSecurityScannerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("WebSecurityScanner"); - } - } - - private static final class WebSecurityScannerFileDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier { - WebSecurityScannerFileDescriptorSupplier() {} - } - - private static final class WebSecurityScannerMethodDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - WebSecurityScannerMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (WebSecurityScannerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) - .addMethod(getCreateScanConfigMethod()) - .addMethod(getDeleteScanConfigMethod()) - .addMethod(getGetScanConfigMethod()) - .addMethod(getListScanConfigsMethod()) - .addMethod(getUpdateScanConfigMethod()) - .addMethod(getStartScanRunMethod()) - .addMethod(getGetScanRunMethod()) - .addMethod(getListScanRunsMethod()) - .addMethod(getStopScanRunMethod()) - .addMethod(getListCrawledUrlsMethod()) - .addMethod(getGetFindingMethod()) - .addMethod(getListFindingsMethod()) - .addMethod(getListFindingTypeStatsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java b/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java deleted file mode 100644 index bd372ac9..00000000 --- a/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java +++ /dev/null @@ -1,1848 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.websecurityscanner.v1alpha; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Cloud Web Security Scanner Service identifies security vulnerabilities in web
- * applications hosted on Google Cloud Platform. It crawls your application, and
- * attempts to exercise as many user inputs and event handlers as possible.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WebSecurityScannerGrpc { - - private WebSecurityScannerGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getCreateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getCreateScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getCreateScanConfigMethod; - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getCreateScanConfigMethod = - getCreateScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) - .build(); - } - } - } - return getCreateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, - com.google.protobuf.Empty> - getDeleteScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", - requestType = com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, - com.google.protobuf.Empty> - getDeleteScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, - com.google.protobuf.Empty> - getDeleteScanConfigMethod; - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getDeleteScanConfigMethod = - getDeleteScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) - .build(); - } - } - } - return getDeleteScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getGetScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", - requestType = com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getGetScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getGetScanConfigMethod; - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - WebSecurityScannerGrpc.getGetScanConfigMethod = - getGetScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) - .build(); - } - } - } - return getGetScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> - getListScanConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", - requestType = com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> - getListScanConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> - getListScanConfigsMethod; - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - WebSecurityScannerGrpc.getListScanConfigsMethod = - getListScanConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) - .build(); - } - } - } - return getListScanConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getUpdateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getUpdateScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getUpdateScanConfigMethod; - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getUpdateScanConfigMethod = - getUpdateScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) - .build(); - } - } - } - return getUpdateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getStartScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartScanRun", - requestType = com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getStartScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getStartScanRunMethod; - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - WebSecurityScannerGrpc.getStartScanRunMethod = - getStartScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanRun - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) - .build(); - } - } - } - return getStartScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getGetScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanRun", - requestType = com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getGetScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getGetScanRunMethod; - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - WebSecurityScannerGrpc.getGetScanRunMethod = - getGetScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanRun - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) - .build(); - } - } - } - return getGetScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> - getListScanRunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", - requestType = com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> - getListScanRunsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> - getListScanRunsMethod; - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - WebSecurityScannerGrpc.getListScanRunsMethod = - getListScanRunsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) - .build(); - } - } - } - return getListScanRunsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getStopScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopScanRun", - requestType = com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getStopScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getStopScanRunMethod; - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - WebSecurityScannerGrpc.getStopScanRunMethod = - getStopScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanRun - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) - .build(); - } - } - } - return getStopScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> - getListCrawledUrlsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", - requestType = com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> - getListCrawledUrlsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> - getListCrawledUrlsMethod; - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - WebSecurityScannerGrpc.getListCrawledUrlsMethod = - getListCrawledUrlsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) - .build(); - } - } - } - return getListCrawledUrlsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest, - com.google.cloud.websecurityscanner.v1alpha.Finding> - getGetFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFinding", - requestType = com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest, - com.google.cloud.websecurityscanner.v1alpha.Finding> - getGetFindingMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest, - com.google.cloud.websecurityscanner.v1alpha.Finding> - getGetFindingMethod; - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - WebSecurityScannerGrpc.getGetFindingMethod = - getGetFindingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.Finding - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) - .build(); - } - } - } - return getGetFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> - getListFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindings", - requestType = com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> - getListFindingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> - getListFindingsMethod; - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - WebSecurityScannerGrpc.getListFindingsMethod = - getListFindingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) - .build(); - } - } - } - return getListFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", - requestType = com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod; - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) - == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) - == null) { - WebSecurityScannerGrpc.getListFindingTypeStatsMethod = - getListFindingTypeStatsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha - .ListFindingTypeStatsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha - .ListFindingTypeStatsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) - .build(); - } - } - } - return getListFindingTypeStatsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - }; - return WebSecurityScannerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WebSecurityScannerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - }; - return WebSecurityScannerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static WebSecurityScannerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - }; - return WebSecurityScannerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public abstract static class WebSecurityScannerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListScanConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListScanRunsMethod(), responseObserver); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStopScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCrawledUrlsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingsMethod(), responseObserver); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingTypeStatsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( - this, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_SCAN_CONFIG))) - .addMethod( - getGetScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( - this, METHODID_GET_SCAN_CONFIG))) - .addMethod( - getListScanConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse>( - this, METHODID_LIST_SCAN_CONFIGS))) - .addMethod( - getUpdateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( - this, METHODID_UPDATE_SCAN_CONFIG))) - .addMethod( - getStartScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun>( - this, METHODID_START_SCAN_RUN))) - .addMethod( - getGetScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun>( - this, METHODID_GET_SCAN_RUN))) - .addMethod( - getListScanRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse>( - this, METHODID_LIST_SCAN_RUNS))) - .addMethod( - getStopScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun>( - this, METHODID_STOP_SCAN_RUN))) - .addMethod( - getListCrawledUrlsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse>( - this, METHODID_LIST_CRAWLED_URLS))) - .addMethod( - getGetFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest, - com.google.cloud.websecurityscanner.v1alpha.Finding>( - this, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse>( - this, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - } - - /** - * - * - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerStub - extends io.grpc.stub.AbstractAsyncStub { - private WebSecurityScannerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private WebSecurityScannerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig createScanConfig( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.protobuf.Empty deleteScanConfig( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse listScanConfigs( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig updateScanConfig( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanRun startScanRun( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRun( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse listScanRuns( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanRunsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanRun stopScanRun( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse listCrawledUrls( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.Finding getFinding( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFindingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse listFindings( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - listFindingTypeStats( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private WebSecurityScannerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - createScanConfig( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteScanConfig( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - getScanConfig(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> - listScanConfigs( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig> - updateScanConfig( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - startScanRun(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - getScanRun(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> - listScanRuns(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ScanRun> - stopScanRun(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> - listCrawledUrls( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.Finding> - getFinding(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> - listFindings(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> - listFindingTypeStats( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SCAN_CONFIG = 0; - private static final int METHODID_DELETE_SCAN_CONFIG = 1; - private static final int METHODID_GET_SCAN_CONFIG = 2; - private static final int METHODID_LIST_SCAN_CONFIGS = 3; - private static final int METHODID_UPDATE_SCAN_CONFIG = 4; - private static final int METHODID_START_SCAN_RUN = 5; - private static final int METHODID_GET_SCAN_RUN = 6; - private static final int METHODID_LIST_SCAN_RUNS = 7; - private static final int METHODID_STOP_SCAN_RUN = 8; - private static final int METHODID_LIST_CRAWLED_URLS = 9; - private static final int METHODID_GET_FINDING = 10; - private static final int METHODID_LIST_FINDINGS = 11; - private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final WebSecurityScannerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_SCAN_CONFIG: - serviceImpl.createScanConfig( - (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_SCAN_CONFIG: - serviceImpl.deleteScanConfig( - (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SCAN_CONFIG: - serviceImpl.getScanConfig( - (com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SCAN_CONFIGS: - serviceImpl.listScanConfigs( - (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse>) - responseObserver); - break; - case METHODID_UPDATE_SCAN_CONFIG: - serviceImpl.updateScanConfig( - (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_START_SCAN_RUN: - serviceImpl.startScanRun( - (com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_SCAN_RUN: - serviceImpl.getScanRun( - (com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SCAN_RUNS: - serviceImpl.listScanRuns( - (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse>) - responseObserver); - break; - case METHODID_STOP_SCAN_RUN: - serviceImpl.stopScanRun( - (com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CRAWLED_URLS: - serviceImpl.listCrawledUrls( - (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse>) - responseObserver); - break; - case METHODID_GET_FINDING: - serviceImpl.getFinding( - (com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_FINDINGS: - serviceImpl.listFindings( - (com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse>) - responseObserver); - break; - case METHODID_LIST_FINDING_TYPE_STATS: - serviceImpl.listFindingTypeStats( - (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WebSecurityScannerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("WebSecurityScanner"); - } - } - - private static final class WebSecurityScannerFileDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier { - WebSecurityScannerFileDescriptorSupplier() {} - } - - private static final class WebSecurityScannerMethodDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - WebSecurityScannerMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (WebSecurityScannerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) - .addMethod(getCreateScanConfigMethod()) - .addMethod(getDeleteScanConfigMethod()) - .addMethod(getGetScanConfigMethod()) - .addMethod(getListScanConfigsMethod()) - .addMethod(getUpdateScanConfigMethod()) - .addMethod(getStartScanRunMethod()) - .addMethod(getGetScanRunMethod()) - .addMethod(getListScanRunsMethod()) - .addMethod(getStopScanRunMethod()) - .addMethod(getListCrawledUrlsMethod()) - .addMethod(getGetFindingMethod()) - .addMethod(getListFindingsMethod()) - .addMethod(getListFindingTypeStatsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java b/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java deleted file mode 100644 index 2e13b836..00000000 --- a/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java +++ /dev/null @@ -1,1842 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.websecurityscanner.v1beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Cloud Web Security Scanner Service identifies security vulnerabilities in web
- * applications hosted on Google Cloud Platform. It crawls your application, and
- * attempts to exercise as many user inputs and event handlers as possible.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WebSecurityScannerGrpc { - - private WebSecurityScannerGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.websecurityscanner.v1beta.WebSecurityScanner"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getCreateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getCreateScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getCreateScanConfigMethod; - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getCreateScanConfigMethod = - getCreateScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) - .build(); - } - } - } - return getCreateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, - com.google.protobuf.Empty> - getDeleteScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", - requestType = com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, - com.google.protobuf.Empty> - getDeleteScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, - com.google.protobuf.Empty> - getDeleteScanConfigMethod; - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getDeleteScanConfigMethod = - getDeleteScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) - .build(); - } - } - } - return getDeleteScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getGetScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", - requestType = com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getGetScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getGetScanConfigMethod; - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - WebSecurityScannerGrpc.getGetScanConfigMethod = - getGetScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) - .build(); - } - } - } - return getGetScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> - getListScanConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", - requestType = com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> - getListScanConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> - getListScanConfigsMethod; - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - WebSecurityScannerGrpc.getListScanConfigsMethod = - getListScanConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) - .build(); - } - } - } - return getListScanConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getUpdateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getUpdateScanConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getUpdateScanConfigMethod; - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) - == null) { - WebSecurityScannerGrpc.getUpdateScanConfigMethod = - getUpdateScanConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) - .build(); - } - } - } - return getUpdateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getStartScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartScanRun", - requestType = com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getStartScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getStartScanRunMethod; - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - WebSecurityScannerGrpc.getStartScanRunMethod = - getStartScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanRun - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) - .build(); - } - } - } - return getStartScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getGetScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanRun", - requestType = com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getGetScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getGetScanRunMethod; - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - WebSecurityScannerGrpc.getGetScanRunMethod = - getGetScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanRun - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) - .build(); - } - } - } - return getGetScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse> - getListScanRunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", - requestType = com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse> - getListScanRunsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse> - getListScanRunsMethod; - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - WebSecurityScannerGrpc.getListScanRunsMethod = - getListScanRunsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) - .build(); - } - } - } - return getListScanRunsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getStopScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopScanRun", - requestType = com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getStopScanRunMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getStopScanRunMethod; - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - WebSecurityScannerGrpc.getStopScanRunMethod = - getStopScanRunMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanRun - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) - .build(); - } - } - } - return getStopScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> - getListCrawledUrlsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", - requestType = com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> - getListCrawledUrlsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> - getListCrawledUrlsMethod; - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - WebSecurityScannerGrpc.getListCrawledUrlsMethod = - getListCrawledUrlsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) - .build(); - } - } - } - return getListCrawledUrlsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest, - com.google.cloud.websecurityscanner.v1beta.Finding> - getGetFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFinding", - requestType = com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest, - com.google.cloud.websecurityscanner.v1beta.Finding> - getGetFindingMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest, - com.google.cloud.websecurityscanner.v1beta.Finding> - getGetFindingMethod; - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - WebSecurityScannerGrpc.getGetFindingMethod = - getGetFindingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.Finding - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) - .build(); - } - } - } - return getGetFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse> - getListFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindings", - requestType = com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse> - getListFindingsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse> - getListFindingsMethod; - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - WebSecurityScannerGrpc.getListFindingsMethod = - getListFindingsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) - .build(); - } - } - } - return getListFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", - requestType = com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> - getListFindingTypeStatsMethod; - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) - == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) - == null) { - WebSecurityScannerGrpc.getListFindingTypeStatsMethod = - getListFindingTypeStatsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta - .ListFindingTypeStatsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) - .build(); - } - } - } - return getListFindingTypeStatsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - }; - return WebSecurityScannerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WebSecurityScannerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - }; - return WebSecurityScannerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static WebSecurityScannerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - }; - return WebSecurityScannerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public abstract static class WebSecurityScannerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListScanConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListScanRunsMethod(), responseObserver); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStopScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCrawledUrlsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingsMethod(), responseObserver); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFindingTypeStatsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig>( - this, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_SCAN_CONFIG))) - .addMethod( - getGetScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig>( - this, METHODID_GET_SCAN_CONFIG))) - .addMethod( - getListScanConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse>( - this, METHODID_LIST_SCAN_CONFIGS))) - .addMethod( - getUpdateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig>( - this, METHODID_UPDATE_SCAN_CONFIG))) - .addMethod( - getStartScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun>( - this, METHODID_START_SCAN_RUN))) - .addMethod( - getGetScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun>( - this, METHODID_GET_SCAN_RUN))) - .addMethod( - getListScanRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse>( - this, METHODID_LIST_SCAN_RUNS))) - .addMethod( - getStopScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun>( - this, METHODID_STOP_SCAN_RUN))) - .addMethod( - getListCrawledUrlsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse>( - this, METHODID_LIST_CRAWLED_URLS))) - .addMethod( - getGetFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest, - com.google.cloud.websecurityscanner.v1beta.Finding>( - this, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse>( - this, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - } - - /** - * - * - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerStub - extends io.grpc.stub.AbstractAsyncStub { - private WebSecurityScannerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private WebSecurityScannerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig createScanConfig( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.protobuf.Empty deleteScanConfig( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse listScanConfigs( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig updateScanConfig( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanRun startScanRun( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRun( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse listScanRuns( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanRunsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanRun stopScanRun( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopScanRunMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse listCrawledUrls( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.Finding getFinding( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFindingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse listFindings( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - listFindingTypeStats( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private WebSecurityScannerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - createScanConfig( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteScanConfig( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - getScanConfig(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> - listScanConfigs(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanConfig> - updateScanConfig( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanRun> - startScanRun(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanRun> - getScanRun(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse> - listScanRuns(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ScanRun> - stopScanRun(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> - listCrawledUrls(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.Finding> - getFinding(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse> - listFindings(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> - listFindingTypeStats( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SCAN_CONFIG = 0; - private static final int METHODID_DELETE_SCAN_CONFIG = 1; - private static final int METHODID_GET_SCAN_CONFIG = 2; - private static final int METHODID_LIST_SCAN_CONFIGS = 3; - private static final int METHODID_UPDATE_SCAN_CONFIG = 4; - private static final int METHODID_START_SCAN_RUN = 5; - private static final int METHODID_GET_SCAN_RUN = 6; - private static final int METHODID_LIST_SCAN_RUNS = 7; - private static final int METHODID_STOP_SCAN_RUN = 8; - private static final int METHODID_LIST_CRAWLED_URLS = 9; - private static final int METHODID_GET_FINDING = 10; - private static final int METHODID_LIST_FINDINGS = 11; - private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final WebSecurityScannerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_SCAN_CONFIG: - serviceImpl.createScanConfig( - (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_SCAN_CONFIG: - serviceImpl.deleteScanConfig( - (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SCAN_CONFIG: - serviceImpl.getScanConfig( - (com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SCAN_CONFIGS: - serviceImpl.listScanConfigs( - (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse>) - responseObserver); - break; - case METHODID_UPDATE_SCAN_CONFIG: - serviceImpl.updateScanConfig( - (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_START_SCAN_RUN: - serviceImpl.startScanRun( - (com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_SCAN_RUN: - serviceImpl.getScanRun( - (com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_SCAN_RUNS: - serviceImpl.listScanRuns( - (com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse>) - responseObserver); - break; - case METHODID_STOP_SCAN_RUN: - serviceImpl.stopScanRun( - (com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CRAWLED_URLS: - serviceImpl.listCrawledUrls( - (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse>) - responseObserver); - break; - case METHODID_GET_FINDING: - serviceImpl.getFinding( - (com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_FINDINGS: - serviceImpl.listFindings( - (com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse>) - responseObserver); - break; - case METHODID_LIST_FINDING_TYPE_STATS: - serviceImpl.listFindingTypeStats( - (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WebSecurityScannerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("WebSecurityScanner"); - } - } - - private static final class WebSecurityScannerFileDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier { - WebSecurityScannerFileDescriptorSupplier() {} - } - - private static final class WebSecurityScannerMethodDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - WebSecurityScannerMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (WebSecurityScannerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) - .addMethod(getCreateScanConfigMethod()) - .addMethod(getDeleteScanConfigMethod()) - .addMethod(getGetScanConfigMethod()) - .addMethod(getListScanConfigsMethod()) - .addMethod(getUpdateScanConfigMethod()) - .addMethod(getStartScanRunMethod()) - .addMethod(getGetScanRunMethod()) - .addMethod(getListScanRunsMethod()) - .addMethod(getStopScanRunMethod()) - .addMethod(getListCrawledUrlsMethod()) - .addMethod(getGetFindingMethod()) - .addMethod(getListFindingsMethod()) - .addMethod(getListFindingTypeStatsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java similarity index 97% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java index d05e5287..43094053 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java +++ b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java @@ -63,13 +63,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1009,10 +1009,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListScanConfigsPagedResponse extends AbstractPagedListResponse< - ListScanConfigsRequest, - ListScanConfigsResponse, - ScanConfig, - ListScanConfigsPage, + ListScanConfigsRequest, ListScanConfigsResponse, ScanConfig, ListScanConfigsPage, ListScanConfigsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1062,10 +1059,7 @@ public ApiFuture createPageAsync( public static class ListScanConfigsFixedSizeCollection extends AbstractFixedSizeCollection< - ListScanConfigsRequest, - ListScanConfigsResponse, - ScanConfig, - ListScanConfigsPage, + ListScanConfigsRequest, ListScanConfigsResponse, ScanConfig, ListScanConfigsPage, ListScanConfigsFixedSizeCollection> { private ListScanConfigsFixedSizeCollection( @@ -1086,10 +1080,7 @@ protected ListScanConfigsFixedSizeCollection createCollection( public static class ListScanRunsPagedResponse extends AbstractPagedListResponse< - ListScanRunsRequest, - ListScanRunsResponse, - ScanRun, - ListScanRunsPage, + ListScanRunsRequest, ListScanRunsResponse, ScanRun, ListScanRunsPage, ListScanRunsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1138,10 +1129,7 @@ public ApiFuture createPageAsync( public static class ListScanRunsFixedSizeCollection extends AbstractFixedSizeCollection< - ListScanRunsRequest, - ListScanRunsResponse, - ScanRun, - ListScanRunsPage, + ListScanRunsRequest, ListScanRunsResponse, ScanRun, ListScanRunsPage, ListScanRunsFixedSizeCollection> { private ListScanRunsFixedSizeCollection(List pages, int collectionSize) { @@ -1161,10 +1149,7 @@ protected ListScanRunsFixedSizeCollection createCollection( public static class ListCrawledUrlsPagedResponse extends AbstractPagedListResponse< - ListCrawledUrlsRequest, - ListCrawledUrlsResponse, - CrawledUrl, - ListCrawledUrlsPage, + ListCrawledUrlsRequest, ListCrawledUrlsResponse, CrawledUrl, ListCrawledUrlsPage, ListCrawledUrlsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1214,10 +1199,7 @@ public ApiFuture createPageAsync( public static class ListCrawledUrlsFixedSizeCollection extends AbstractFixedSizeCollection< - ListCrawledUrlsRequest, - ListCrawledUrlsResponse, - CrawledUrl, - ListCrawledUrlsPage, + ListCrawledUrlsRequest, ListCrawledUrlsResponse, CrawledUrl, ListCrawledUrlsPage, ListCrawledUrlsFixedSizeCollection> { private ListCrawledUrlsFixedSizeCollection( @@ -1238,10 +1220,7 @@ protected ListCrawledUrlsFixedSizeCollection createCollection( public static class ListFindingsPagedResponse extends AbstractPagedListResponse< - ListFindingsRequest, - ListFindingsResponse, - Finding, - ListFindingsPage, + ListFindingsRequest, ListFindingsResponse, Finding, ListFindingsPage, ListFindingsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1290,10 +1269,7 @@ public ApiFuture createPageAsync( public static class ListFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFindingsRequest, - ListFindingsResponse, - Finding, - ListFindingsPage, + ListFindingsRequest, ListFindingsResponse, Finding, ListFindingsPage, ListFindingsFixedSizeCollection> { private ListFindingsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java similarity index 97% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java index 838d6101..4808c31f 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java +++ b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java @@ -31,6 +31,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.websecurityscanner.v1.stub.WebSecurityScannerStubSettings; @@ -46,10 +47,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are + *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java similarity index 93% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java index c33cd767..d6a90363 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java +++ b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to Web Security Scanner API + * + *

The interfaces provided are listed below, along with usage samples. * *

======================= WebSecurityScannerClient ======================= * diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java similarity index 99% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java index 06ac8e88..708f4c8c 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java +++ b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java @@ -54,6 +54,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java similarity index 99% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java index 863dfae8..aee163d6 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java @@ -85,10 +85,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are + *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java similarity index 100% rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java similarity index 100% rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java similarity index 100% rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java b/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java similarity index 100% rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java rename to owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java new file mode 100644 index 00000000..90f5d7df --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java @@ -0,0 +1,1349 @@ +package com.google.cloud.websecurityscanner.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Web Security Scanner Service identifies security vulnerabilities in web
+ * applications hosted on Google Cloud. It crawls your application, and
+ * attempts to exercise as many user inputs and event handlers as possible.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/websecurityscanner/v1/web_security_scanner.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WebSecurityScannerGrpc { + + private WebSecurityScannerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.websecurityscanner.v1.WebSecurityScanner"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateScanConfigMethod() { + io.grpc.MethodDescriptor getCreateScanConfigMethod; + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { + WebSecurityScannerGrpc.getCreateScanConfigMethod = getCreateScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) + .build(); + } + } + } + return getCreateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", + requestType = com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteScanConfigMethod() { + io.grpc.MethodDescriptor getDeleteScanConfigMethod; + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { + WebSecurityScannerGrpc.getDeleteScanConfigMethod = getDeleteScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) + .build(); + } + } + } + return getDeleteScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", + requestType = com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetScanConfigMethod() { + io.grpc.MethodDescriptor getGetScanConfigMethod; + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + WebSecurityScannerGrpc.getGetScanConfigMethod = getGetScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) + .build(); + } + } + } + return getGetScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getListScanConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", + requestType = com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListScanConfigsMethod() { + io.grpc.MethodDescriptor getListScanConfigsMethod; + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + WebSecurityScannerGrpc.getListScanConfigsMethod = getListScanConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) + .build(); + } + } + } + return getListScanConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateScanConfigMethod() { + io.grpc.MethodDescriptor getUpdateScanConfigMethod; + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { + WebSecurityScannerGrpc.getUpdateScanConfigMethod = getUpdateScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) + .build(); + } + } + } + return getUpdateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartScanRun", + requestType = com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartScanRunMethod() { + io.grpc.MethodDescriptor getStartScanRunMethod; + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + WebSecurityScannerGrpc.getStartScanRunMethod = getStartScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.StartScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) + .build(); + } + } + } + return getStartScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanRun", + requestType = com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetScanRunMethod() { + io.grpc.MethodDescriptor getGetScanRunMethod; + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + WebSecurityScannerGrpc.getGetScanRunMethod = getGetScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.GetScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) + .build(); + } + } + } + return getGetScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListScanRunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", + requestType = com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListScanRunsMethod() { + io.grpc.MethodDescriptor getListScanRunsMethod; + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + WebSecurityScannerGrpc.getListScanRunsMethod = getListScanRunsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) + .build(); + } + } + } + return getListScanRunsMethod; + } + + private static volatile io.grpc.MethodDescriptor getStopScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopScanRun", + requestType = com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStopScanRunMethod() { + io.grpc.MethodDescriptor getStopScanRunMethod; + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + WebSecurityScannerGrpc.getStopScanRunMethod = getStopScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.StopScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) + .build(); + } + } + } + return getStopScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCrawledUrlsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", + requestType = com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCrawledUrlsMethod() { + io.grpc.MethodDescriptor getListCrawledUrlsMethod; + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + WebSecurityScannerGrpc.getListCrawledUrlsMethod = getListCrawledUrlsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) + .build(); + } + } + } + return getListCrawledUrlsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFinding", + requestType = com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFindingMethod() { + io.grpc.MethodDescriptor getGetFindingMethod; + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + WebSecurityScannerGrpc.getGetFindingMethod = getGetFindingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.GetFindingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) + .build(); + } + } + } + return getGetFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindings", + requestType = com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFindingsMethod() { + io.grpc.MethodDescriptor getListFindingsMethod; + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + WebSecurityScannerGrpc.getListFindingsMethod = getListFindingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListFindingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListFindingsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) + .build(); + } + } + } + return getListFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFindingTypeStatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", + requestType = com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFindingTypeStatsMethod() { + io.grpc.MethodDescriptor getListFindingTypeStatsMethod; + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { + WebSecurityScannerGrpc.getListFindingTypeStatsMethod = getListFindingTypeStatsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) + .build(); + } + } + } + return getListFindingTypeStatsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + }; + return WebSecurityScannerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WebSecurityScannerBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + }; + return WebSecurityScannerBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static WebSecurityScannerFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + }; + return WebSecurityScannerFutureStub.newStub(factory, channel); + } + + /** + *
+   * Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static abstract class WebSecurityScannerImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateScanConfigMethod(), responseObserver); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteScanConfigMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanConfigMethod(), responseObserver); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanConfigsMethod(), responseObserver); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateScanConfigMethod(), responseObserver); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun(com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartScanRunMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun(com.google.cloud.websecurityscanner.v1.GetScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanRunsMethod(), responseObserver); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun(com.google.cloud.websecurityscanner.v1.StopScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopScanRunMethod(), responseObserver); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCrawledUrlsMethod(), responseObserver); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding(com.google.cloud.websecurityscanner.v1.GetFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings(com.google.cloud.websecurityscanner.v1.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingsMethod(), responseObserver); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingTypeStatsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig>( + this, METHODID_CREATE_SCAN_CONFIG))) + .addMethod( + getDeleteScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SCAN_CONFIG))) + .addMethod( + getGetScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig>( + this, METHODID_GET_SCAN_CONFIG))) + .addMethod( + getListScanConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse>( + this, METHODID_LIST_SCAN_CONFIGS))) + .addMethod( + getUpdateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig>( + this, METHODID_UPDATE_SCAN_CONFIG))) + .addMethod( + getStartScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun>( + this, METHODID_START_SCAN_RUN))) + .addMethod( + getGetScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun>( + this, METHODID_GET_SCAN_RUN))) + .addMethod( + getListScanRunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse>( + this, METHODID_LIST_SCAN_RUNS))) + .addMethod( + getStopScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun>( + this, METHODID_STOP_SCAN_RUN))) + .addMethod( + getListCrawledUrlsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse>( + this, METHODID_LIST_CRAWLED_URLS))) + .addMethod( + getGetFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.GetFindingRequest, + com.google.cloud.websecurityscanner.v1.Finding>( + this, METHODID_GET_FINDING))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1.ListFindingsResponse>( + this, METHODID_LIST_FINDINGS))) + .addMethod( + getListFindingTypeStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse>( + this, METHODID_LIST_FINDING_TYPE_STATS))) + .build(); + } + } + + /** + *
+   * Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerStub extends io.grpc.stub.AbstractAsyncStub { + private WebSecurityScannerStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun(com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun(com.google.cloud.websecurityscanner.v1.GetScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun(com.google.cloud.websecurityscanner.v1.StopScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding(com.google.cloud.websecurityscanner.v1.GetFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings(com.google.cloud.websecurityscanner.v1.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private WebSecurityScannerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanConfig createScanConfig(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.protobuf.Empty deleteScanConfig(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse listScanConfigs(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanConfig updateScanConfig(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanRun startScanRun(com.google.cloud.websecurityscanner.v1.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanRun getScanRun(com.google.cloud.websecurityscanner.v1.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse listScanRuns(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanRunsMethod(), getCallOptions(), request); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanRun stopScanRun(com.google.cloud.websecurityscanner.v1.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse listCrawledUrls(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.Finding getFinding(com.google.cloud.websecurityscanner.v1.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFindingMethod(), getCallOptions(), request); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ListFindingsResponse listFindings(com.google.cloud.websecurityscanner.v1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingsMethod(), getCallOptions(), request); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse listFindingTypeStats(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerFutureStub extends io.grpc.stub.AbstractFutureStub { + private WebSecurityScannerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createScanConfig( + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteScanConfig( + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getScanConfig( + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listScanConfigs( + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateScanConfig( + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startScanRun( + com.google.cloud.websecurityscanner.v1.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getScanRun( + com.google.cloud.websecurityscanner.v1.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listScanRuns( + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture stopScanRun( + com.google.cloud.websecurityscanner.v1.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCrawledUrls( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getFinding( + com.google.cloud.websecurityscanner.v1.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFindings( + com.google.cloud.websecurityscanner.v1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFindingTypeStats( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SCAN_CONFIG = 0; + private static final int METHODID_DELETE_SCAN_CONFIG = 1; + private static final int METHODID_GET_SCAN_CONFIG = 2; + private static final int METHODID_LIST_SCAN_CONFIGS = 3; + private static final int METHODID_UPDATE_SCAN_CONFIG = 4; + private static final int METHODID_START_SCAN_RUN = 5; + private static final int METHODID_GET_SCAN_RUN = 6; + private static final int METHODID_LIST_SCAN_RUNS = 7; + private static final int METHODID_STOP_SCAN_RUN = 8; + private static final int METHODID_LIST_CRAWLED_URLS = 9; + private static final int METHODID_GET_FINDING = 10; + private static final int METHODID_LIST_FINDINGS = 11; + private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final WebSecurityScannerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SCAN_CONFIG: + serviceImpl.createScanConfig((com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCAN_CONFIG: + serviceImpl.deleteScanConfig((com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCAN_CONFIG: + serviceImpl.getScanConfig((com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCAN_CONFIGS: + serviceImpl.listScanConfigs((com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SCAN_CONFIG: + serviceImpl.updateScanConfig((com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_SCAN_RUN: + serviceImpl.startScanRun((com.google.cloud.websecurityscanner.v1.StartScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCAN_RUN: + serviceImpl.getScanRun((com.google.cloud.websecurityscanner.v1.GetScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCAN_RUNS: + serviceImpl.listScanRuns((com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_SCAN_RUN: + serviceImpl.stopScanRun((com.google.cloud.websecurityscanner.v1.StopScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CRAWLED_URLS: + serviceImpl.listCrawledUrls((com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FINDING: + serviceImpl.getFinding((com.google.cloud.websecurityscanner.v1.GetFindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FINDINGS: + serviceImpl.listFindings((com.google.cloud.websecurityscanner.v1.ListFindingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FINDING_TYPE_STATS: + serviceImpl.listFindingTypeStats((com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WebSecurityScannerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("WebSecurityScanner"); + } + } + + private static final class WebSecurityScannerFileDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier { + WebSecurityScannerFileDescriptorSupplier() {} + } + + private static final class WebSecurityScannerMethodDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + WebSecurityScannerMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (WebSecurityScannerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) + .addMethod(getCreateScanConfigMethod()) + .addMethod(getDeleteScanConfigMethod()) + .addMethod(getGetScanConfigMethod()) + .addMethod(getListScanConfigsMethod()) + .addMethod(getUpdateScanConfigMethod()) + .addMethod(getStartScanRunMethod()) + .addMethod(getGetScanRunMethod()) + .addMethod(getListScanRunsMethod()) + .addMethod(getStopScanRunMethod()) + .addMethod(getListCrawledUrlsMethod()) + .addMethod(getGetFindingMethod()) + .addMethod(getListFindingsMethod()) + .addMethod(getListFindingTypeStatsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java similarity index 71% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java index 366a26a4..905cbc09 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/crawled_url.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
  * Security Scanner Service crawls the web applications, following all links
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.CrawledUrl}
  */
-public final class CrawledUrl extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CrawledUrl extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.CrawledUrl)
     CrawledUrlOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CrawledUrl.newBuilder() to construct.
   private CrawledUrl(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CrawledUrl() {
     httpMethod_ = "";
     url_ = "";
@@ -47,15 +29,16 @@ private CrawledUrl() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CrawledUrl();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CrawledUrl(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,34 +57,31 @@ private CrawledUrl(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              httpMethod_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            httpMethod_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              url_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            url_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              body_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            body_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -109,40 +89,35 @@ private CrawledUrl(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.CrawledUrlProto
-        .internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.CrawledUrlProto
-        .internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.CrawledUrl.class,
-            com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder.class);
+            com.google.cloud.websecurityscanner.v1.CrawledUrl.class, com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder.class);
   }
 
   public static final int HTTP_METHOD_FIELD_NUMBER = 1;
   private volatile java.lang.Object httpMethod_;
   /**
-   *
-   *
    * 
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The httpMethod. */ @java.lang.Override @@ -151,30 +126,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** - * - * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -185,14 +160,11 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { public static final int URL_FIELD_NUMBER = 2; private volatile java.lang.Object url_; /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The url. */ @java.lang.Override @@ -201,29 +173,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -234,14 +206,11 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int BODY_FIELD_NUMBER = 3; private volatile java.lang.Object body_; /** - * - * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The body. */ @java.lang.Override @@ -250,29 +219,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** - * - * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -281,7 +250,6 @@ public com.google.protobuf.ByteString getBodyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpMethod_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpMethod_); } @@ -329,17 +298,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.CrawledUrl)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.CrawledUrl other = - (com.google.cloud.websecurityscanner.v1.CrawledUrl) obj; + com.google.cloud.websecurityscanner.v1.CrawledUrl other = (com.google.cloud.websecurityscanner.v1.CrawledUrl) obj; - if (!getHttpMethod().equals(other.getHttpMethod())) return false; - if (!getUrl().equals(other.getUrl())) return false; - if (!getBody().equals(other.getBody())) return false; + if (!getHttpMethod() + .equals(other.getHttpMethod())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; + if (!getBody() + .equals(other.getBody())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -363,103 +334,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.CrawledUrl prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
    * Security Scanner Service crawls the web applications, following all links
@@ -468,23 +432,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.CrawledUrl}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.CrawledUrl)
       com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.CrawledUrl.class,
-              com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder.class);
+              com.google.cloud.websecurityscanner.v1.CrawledUrl.class, com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.CrawledUrl.newBuilder()
@@ -492,15 +454,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -514,9 +477,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
@@ -535,8 +498,7 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.CrawledUrl buildPartial() {
-      com.google.cloud.websecurityscanner.v1.CrawledUrl result =
-          new com.google.cloud.websecurityscanner.v1.CrawledUrl(this);
+      com.google.cloud.websecurityscanner.v1.CrawledUrl result = new com.google.cloud.websecurityscanner.v1.CrawledUrl(this);
       result.httpMethod_ = httpMethod_;
       result.url_ = url_;
       result.body_ = body_;
@@ -548,39 +510,38 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.CrawledUrl) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.CrawledUrl) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.CrawledUrl)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -588,8 +549,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.CrawledUrl other) {
-      if (other == com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance()) return this;
       if (!other.getHttpMethod().isEmpty()) {
         httpMethod_ = other.httpMethod_;
         onChanged();
@@ -621,8 +581,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1.CrawledUrl) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1.CrawledUrl) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -634,21 +593,19 @@ public Builder mergeFrom(
 
     private java.lang.Object httpMethod_ = "";
     /**
-     *
-     *
      * 
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -657,22 +614,21 @@ public java.lang.String getHttpMethod() { } } /** - * - * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -680,64 +636,57 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } } /** - * - * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod(java.lang.String value) { + public Builder setHttpMethod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** - * - * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -745,20 +694,18 @@ public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { private java.lang.Object url_ = ""; /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -767,21 +714,20 @@ public java.lang.String getUrl() { } } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -789,61 +735,54 @@ public com.google.protobuf.ByteString getUrlBytes() { } } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; @@ -851,20 +790,18 @@ public Builder setUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object body_ = ""; /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -873,21 +810,20 @@ public java.lang.String getBody() { } } /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return The bytes for body. */ - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -895,68 +831,61 @@ public com.google.protobuf.ByteString getBodyBytes() { } } /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody(java.lang.String value) { + public Builder setBody( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes(com.google.protobuf.ByteString value) { + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -966,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.CrawledUrl) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.CrawledUrl) private static final com.google.cloud.websecurityscanner.v1.CrawledUrl DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.CrawledUrl(); } @@ -980,16 +909,16 @@ public static com.google.cloud.websecurityscanner.v1.CrawledUrl getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CrawledUrl parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CrawledUrl(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CrawledUrl parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CrawledUrl(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1004,4 +933,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.CrawledUrl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java similarity index 62% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java index b72ebfe7..1ded75ef 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java @@ -1,102 +1,71 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/crawled_url.proto package com.google.cloud.websecurityscanner.v1; -public interface CrawledUrlOrBuilder - extends +public interface CrawledUrlOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.CrawledUrl) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** - * - * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString getHttpMethodBytes(); + com.google.protobuf.ByteString + getHttpMethodBytes(); /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The url. */ java.lang.String getUrl(); /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The body. */ java.lang.String getBody(); /** - * - * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The bytes for body. */ - com.google.protobuf.ByteString getBodyBytes(); + com.google.protobuf.ByteString + getBodyBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java new file mode 100644 index 00000000..d47d640b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/crawled_url.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class CrawledUrlProto { + private CrawledUrlProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/websecurityscanner/v1/cra" + + "wled_url.proto\022\"google.cloud.websecurity" + + "scanner.v1\"<\n\nCrawledUrl\022\023\n\013http_method\030" + + "\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001(\tB\203\002\n&com" + + ".google.cloud.websecurityscanner.v1B\017Cra" + + "wledUrlProtoP\001ZTgoogle.golang.org/genpro" + + "to/googleapis/cloud/websecurityscanner/v" + + "1;websecurityscanner\252\002\"Google.Cloud.WebS" + + "ecurityScanner.V1\312\002\"Google\\Cloud\\WebSecu" + + "rityScanner\\V1\352\002%Google::Cloud::WebSecur" + + "ityScanner::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor, + new java.lang.String[] { "HttpMethod", "Url", "Body", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java index ee5a13c4..423a5f40 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `CreateScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.CreateScanConfigRequest} */ -public final class CreateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.CreateScanConfigRequest) CreateScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateScanConfigRequest.newBuilder() to construct. private CreateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateScanConfigRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,37 +53,32 @@ private CreateScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.websecurityscanner.v1.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); } - case 18: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } - - break; + scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,40 +86,35 @@ private CreateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -150,30 +123,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,14 +157,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1.ScanConfig scanConfig_; /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -199,25 +169,18 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig() { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_; } /** - * - * *
    * Required. The ScanConfig to be created.
    * 
@@ -230,7 +193,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -262,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (scanConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getScanConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -272,18 +236,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasScanConfig() != other.hasScanConfig()) return false; if (hasScanConfig()) { - if (!getScanConfig().equals(other.getScanConfig())) return false; + if (!getScanConfig() + .equals(other.getScanConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -308,127 +273,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `CreateScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.CreateScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.CreateScanConfigRequest) com.google.cloud.websecurityscanner.v1.CreateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.newBuilder() @@ -436,15 +391,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -460,14 +416,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.getDefaultInstance(); } @@ -482,8 +437,7 @@ public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest(this); result.parent_ = parent_; if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; @@ -498,39 +452,38 @@ public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -538,9 +491,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -567,9 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -581,21 +530,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -604,22 +551,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -627,64 +573,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -692,47 +631,34 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> - scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> scanConfigBuilder_; /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -753,8 +679,6 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig v return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -773,8 +697,6 @@ public Builder setScanConfig( return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -785,9 +707,7 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig if (scanConfigBuilder_ == null) { if (scanConfig_ != null) { scanConfig_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.newBuilder(scanConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial(); } else { scanConfig_ = value; } @@ -799,8 +719,6 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -819,8 +737,6 @@ public Builder clearScanConfig() { return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -828,13 +744,11 @@ public Builder clearScanConfig() { * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigBuilder() { - + onChanged(); return getScanConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -845,14 +759,11 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO if (scanConfigBuilder_ != null) { return scanConfigBuilder_.getMessageOrBuilder(); } else { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? + com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_; } } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -860,24 +771,21 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> getScanConfigFieldBuilder() { if (scanConfigBuilder_ == null) { - scanConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>( - getScanConfig(), getParentForChildren(), isClean()); + scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>( + getScanConfig(), + getParentForChildren(), + isClean()); scanConfig_ = null; } return scanConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -887,32 +795,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.CreateScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.CreateScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -924,8 +830,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java index 65bbadbe..ea34e72e 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java @@ -1,82 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface CreateScanConfigRequestOrBuilder - extends +public interface CreateScanConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.CreateScanConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return Whether the scanConfig field is set. */ boolean hasScanConfig(); /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return The scanConfig. */ com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig(); /** - * - * *
    * Required. The ScanConfig to be created.
    * 
diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java index 8e4e92cc..5e0ac59b 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `DeleteScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.DeleteScanConfigRequest} */ -public final class DeleteScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) DeleteScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteScanConfigRequest.newBuilder() to construct. private DeleteScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private DeleteScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest other = (com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `DeleteScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.DeleteScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.newBuilder() @@ -357,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.getDefaultInstance(); } @@ -397,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest result = new com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -408,39 +374,38 @@ public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -448,9 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -511,22 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -534,71 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -608,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -645,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java index 06f88c17..ddf41703 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface DeleteScanConfigRequestOrBuilder - extends +public interface DeleteScanConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java index 958b1bc5..4075757e 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * A Finding resource represents a vulnerability instance identified during a
  * ScanRun.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.Finding}
  */
-public final class Finding extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Finding extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.Finding)
     FindingOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Finding.newBuilder() to construct.
   private Finding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Finding() {
     name_ = "";
     findingType_ = "";
@@ -54,15 +36,16 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Finding();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Finding(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -81,190 +64,157 @@ private Finding(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              findingType_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            findingType_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              httpMethod_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            httpMethod_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              fuzzedUrl_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            fuzzedUrl_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              body_ = s;
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            body_ = s;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            description_ = s;
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              reproductionUrl_ = s;
-              break;
-            }
-          case 66:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            reproductionUrl_ = s;
+            break;
+          }
+          case 66: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              frameUrl_ = s;
-              break;
-            }
-          case 74:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            frameUrl_ = s;
+            break;
+          }
+          case 74: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              finalUrl_ = s;
-              break;
+            finalUrl_ = s;
+            break;
+          }
+          case 82: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            trackingId_ = s;
+            break;
+          }
+          case 90: {
+            com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder subBuilder = null;
+            if (outdatedLibrary_ != null) {
+              subBuilder = outdatedLibrary_.toBuilder();
+            }
+            outdatedLibrary_ = input.readMessage(com.google.cloud.websecurityscanner.v1.OutdatedLibrary.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outdatedLibrary_);
+              outdatedLibrary_ = subBuilder.buildPartial();
             }
-          case 82:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              trackingId_ = s;
-              break;
+            break;
+          }
+          case 98: {
+            com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder subBuilder = null;
+            if (violatingResource_ != null) {
+              subBuilder = violatingResource_.toBuilder();
             }
-          case 90:
-            {
-              com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder subBuilder = null;
-              if (outdatedLibrary_ != null) {
-                subBuilder = outdatedLibrary_.toBuilder();
-              }
-              outdatedLibrary_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.OutdatedLibrary.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outdatedLibrary_);
-                outdatedLibrary_ = subBuilder.buildPartial();
-              }
-
-              break;
+            violatingResource_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ViolatingResource.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(violatingResource_);
+              violatingResource_ = subBuilder.buildPartial();
             }
-          case 98:
-            {
-              com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder subBuilder = null;
-              if (violatingResource_ != null) {
-                subBuilder = violatingResource_.toBuilder();
-              }
-              violatingResource_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.ViolatingResource.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(violatingResource_);
-                violatingResource_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 106: {
+            com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder subBuilder = null;
+            if (vulnerableParameters_ != null) {
+              subBuilder = vulnerableParameters_.toBuilder();
+            }
+            vulnerableParameters_ = input.readMessage(com.google.cloud.websecurityscanner.v1.VulnerableParameters.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(vulnerableParameters_);
+              vulnerableParameters_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder subBuilder = null;
-              if (vulnerableParameters_ != null) {
-                subBuilder = vulnerableParameters_.toBuilder();
-              }
-              vulnerableParameters_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.VulnerableParameters.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(vulnerableParameters_);
-                vulnerableParameters_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 114: {
+            com.google.cloud.websecurityscanner.v1.Xss.Builder subBuilder = null;
+            if (xss_ != null) {
+              subBuilder = xss_.toBuilder();
             }
-          case 114:
-            {
-              com.google.cloud.websecurityscanner.v1.Xss.Builder subBuilder = null;
-              if (xss_ != null) {
-                subBuilder = xss_.toBuilder();
-              }
-              xss_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.Xss.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(xss_);
-                xss_ = subBuilder.buildPartial();
-              }
-
-              break;
+            xss_ = input.readMessage(com.google.cloud.websecurityscanner.v1.Xss.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(xss_);
+              xss_ = subBuilder.buildPartial();
             }
-          case 122:
-            {
-              com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder subBuilder = null;
-              if (vulnerableHeaders_ != null) {
-                subBuilder = vulnerableHeaders_.toBuilder();
-              }
-              vulnerableHeaders_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.VulnerableHeaders.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(vulnerableHeaders_);
-                vulnerableHeaders_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 122: {
+            com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder subBuilder = null;
+            if (vulnerableHeaders_ != null) {
+              subBuilder = vulnerableHeaders_.toBuilder();
             }
-          case 130:
-            {
-              com.google.cloud.websecurityscanner.v1.Form.Builder subBuilder = null;
-              if (form_ != null) {
-                subBuilder = form_.toBuilder();
-              }
-              form_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.Form.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(form_);
-                form_ = subBuilder.buildPartial();
-              }
-
-              break;
+            vulnerableHeaders_ = input.readMessage(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(vulnerableHeaders_);
+              vulnerableHeaders_ = subBuilder.buildPartial();
             }
-          case 136:
-            {
-              int rawValue = input.readEnum();
 
-              severity_ = rawValue;
-              break;
+            break;
+          }
+          case 130: {
+            com.google.cloud.websecurityscanner.v1.Form.Builder subBuilder = null;
+            if (form_ != null) {
+              subBuilder = form_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            form_ = input.readMessage(com.google.cloud.websecurityscanner.v1.Form.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(form_);
+              form_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          case 136: {
+            int rawValue = input.readEnum();
+
+            severity_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -272,41 +222,36 @@ private Finding(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.FindingProto
-        .internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.FindingProto.internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.FindingProto
-        .internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.FindingProto.internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.Finding.class,
-            com.google.cloud.websecurityscanner.v1.Finding.Builder.class);
+            com.google.cloud.websecurityscanner.v1.Finding.class, com.google.cloud.websecurityscanner.v1.Finding.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The severity level of a vulnerability.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.Finding.Severity} */ - public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + public enum Severity + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * No severity specified. The default value.
      * 
@@ -315,8 +260,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ SEVERITY_UNSPECIFIED(0), /** - * - * *
      * Critical severity.
      * 
@@ -325,8 +268,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ CRITICAL(1), /** - * - * *
      * High severity.
      * 
@@ -335,8 +276,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ HIGH(2), /** - * - * *
      * Medium severity.
      * 
@@ -345,8 +284,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ MEDIUM(3), /** - * - * *
      * Low severity.
      * 
@@ -358,8 +295,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * No severity specified. The default value.
      * 
@@ -368,8 +303,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Critical severity.
      * 
@@ -378,8 +311,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CRITICAL_VALUE = 1; /** - * - * *
      * High severity.
      * 
@@ -388,8 +319,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HIGH_VALUE = 2; /** - * - * *
      * Medium severity.
      * 
@@ -398,8 +327,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MEDIUM_VALUE = 3; /** - * - * *
      * Low severity.
      * 
@@ -408,6 +335,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOW_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -432,53 +360,51 @@ public static Severity valueOf(int value) { */ public static Severity forNumber(int value) { switch (value) { - case 0: - return SEVERITY_UNSPECIFIED; - case 1: - return CRITICAL; - case 2: - return HIGH; - case 3: - return MEDIUM; - case 4: - return LOW; - default: - return null; + case 0: return SEVERITY_UNSPECIFIED; + case 1: return CRITICAL; + case 2: return HIGH; + case 3: return MEDIUM; + case 4: return LOW; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Severity> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Severity findValueByNumber(int number) { - return Severity.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.websecurityscanner.v1.Finding.getDescriptor().getEnumTypes().get(0); } private static final Severity[] VALUES = values(); - public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Severity valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -498,8 +424,6 @@ private Severity(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -507,7 +431,6 @@ private Severity(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -516,15 +439,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -532,15 +454,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -551,8 +474,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FINDING_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object findingType_; /** - * - * *
    * Output only. The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -560,7 +481,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string finding_type = 2; - * * @return The findingType. */ @java.lang.Override @@ -569,15 +489,14 @@ public java.lang.String getFindingType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; } } /** - * - * *
    * Output only. The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -585,15 +504,16 @@ public java.lang.String getFindingType() {
    * 
* * string finding_type = 2; - * * @return The bytes for findingType. */ @java.lang.Override - public com.google.protobuf.ByteString getFindingTypeBytes() { + public com.google.protobuf.ByteString + getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingType_ = b; return b; } else { @@ -604,57 +524,39 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { public static final int SEVERITY_FIELD_NUMBER = 17; private int severity_; /** - * - * *
    * Output only. The severity level of the reported vulnerability.
    * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
    * Output only. The severity level of the reported vulnerability.
    * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The severity. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.Finding.Severity getSeverity() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.Finding.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.Finding.Severity result = - com.google.cloud.websecurityscanner.v1.Finding.Severity.valueOf(severity_); - return result == null - ? com.google.cloud.websecurityscanner.v1.Finding.Severity.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.Finding.Severity result = com.google.cloud.websecurityscanner.v1.Finding.Severity.valueOf(severity_); + return result == null ? com.google.cloud.websecurityscanner.v1.Finding.Severity.UNRECOGNIZED : result; } public static final int HTTP_METHOD_FIELD_NUMBER = 3; private volatile java.lang.Object httpMethod_; /** - * - * *
    * Output only. The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The httpMethod. */ @java.lang.Override @@ -663,30 +565,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** - * - * *
    * Output only. The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -697,15 +599,12 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { public static final int FUZZED_URL_FIELD_NUMBER = 4; private volatile java.lang.Object fuzzedUrl_; /** - * - * *
    * Output only. The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ @java.lang.Override @@ -714,30 +613,30 @@ public java.lang.String getFuzzedUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; } } /** - * - * *
    * Output only. The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFuzzedUrlBytes() { + public com.google.protobuf.ByteString + getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -748,14 +647,11 @@ public com.google.protobuf.ByteString getFuzzedUrlBytes() { public static final int BODY_FIELD_NUMBER = 5; private volatile java.lang.Object body_; /** - * - * *
    * Output only. The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The body. */ @java.lang.Override @@ -764,29 +660,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** - * - * *
    * Output only. The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -797,14 +693,11 @@ public com.google.protobuf.ByteString getBodyBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** - * - * *
    * Output only. The description of the vulnerability.
    * 
* * string description = 6; - * * @return The description. */ @java.lang.Override @@ -813,29 +706,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Output only. The description of the vulnerability.
    * 
* * string description = 6; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -846,15 +739,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int REPRODUCTION_URL_FIELD_NUMBER = 7; private volatile java.lang.Object reproductionUrl_; /** - * - * *
    * Output only. The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ @java.lang.Override @@ -863,30 +753,30 @@ public java.lang.String getReproductionUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; } } /** - * - * *
    * Output only. The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getReproductionUrlBytes() { + public com.google.protobuf.ByteString + getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -897,15 +787,12 @@ public com.google.protobuf.ByteString getReproductionUrlBytes() { public static final int FRAME_URL_FIELD_NUMBER = 8; private volatile java.lang.Object frameUrl_; /** - * - * *
    * Output only. If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The frameUrl. */ @java.lang.Override @@ -914,30 +801,30 @@ public java.lang.String getFrameUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; } } /** - * - * *
    * Output only. If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFrameUrlBytes() { + public com.google.protobuf.ByteString + getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -948,14 +835,11 @@ public com.google.protobuf.ByteString getFrameUrlBytes() { public static final int FINAL_URL_FIELD_NUMBER = 9; private volatile java.lang.Object finalUrl_; /** - * - * *
    * Output only. The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The finalUrl. */ @java.lang.Override @@ -964,29 +848,29 @@ public java.lang.String getFinalUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; } } /** - * - * *
    * Output only. The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFinalUrlBytes() { + public com.google.protobuf.ByteString + getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -997,15 +881,12 @@ public com.google.protobuf.ByteString getFinalUrlBytes() { public static final int TRACKING_ID_FIELD_NUMBER = 10; private volatile java.lang.Object trackingId_; /** - * - * *
    * Output only. The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The trackingId. */ @java.lang.Override @@ -1014,30 +895,30 @@ public java.lang.String getTrackingId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; } } /** - * - * *
    * Output only. The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ @java.lang.Override - public com.google.protobuf.ByteString getTrackingIdBytes() { + public com.google.protobuf.ByteString + getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trackingId_ = b; return b; } else { @@ -1048,15 +929,12 @@ public com.google.protobuf.ByteString getTrackingIdBytes() { public static final int FORM_FIELD_NUMBER = 16; private com.google.cloud.websecurityscanner.v1.Form form_; /** - * - * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; - * * @return Whether the form field is set. */ @java.lang.Override @@ -1064,15 +942,12 @@ public boolean hasForm() { return form_ != null; } /** - * - * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; - * * @return The form. */ @java.lang.Override @@ -1080,8 +955,6 @@ public com.google.cloud.websecurityscanner.v1.Form getForm() { return form_ == null ? com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance() : form_; } /** - * - * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
@@ -1097,14 +970,11 @@ public com.google.cloud.websecurityscanner.v1.FormOrBuilder getFormOrBuilder() {
   public static final int OUTDATED_LIBRARY_FIELD_NUMBER = 11;
   private com.google.cloud.websecurityscanner.v1.OutdatedLibrary outdatedLibrary_;
   /**
-   *
-   *
    * 
    * Output only. An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ @java.lang.Override @@ -1112,25 +982,18 @@ public boolean hasOutdatedLibrary() { return outdatedLibrary_ != null; } /** - * - * *
    * Output only. An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.OutdatedLibrary getOutdatedLibrary() { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } /** - * - * *
    * Output only. An addon containing information about outdated libraries.
    * 
@@ -1138,23 +1001,19 @@ public com.google.cloud.websecurityscanner.v1.OutdatedLibrary getOutdatedLibrary * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder - getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { return getOutdatedLibrary(); } public static final int VIOLATING_RESOURCE_FIELD_NUMBER = 12; private com.google.cloud.websecurityscanner.v1.ViolatingResource violatingResource_; /** - * - * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; - * * @return Whether the violatingResource field is set. */ @java.lang.Override @@ -1162,26 +1021,19 @@ public boolean hasViolatingResource() { return violatingResource_ != null; } /** - * - * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; - * * @return The violatingResource. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ViolatingResource getViolatingResource() { - return violatingResource_ == null - ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance() - : violatingResource_; + return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance() : violatingResource_; } /** - * - * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -1190,22 +1042,18 @@ public com.google.cloud.websecurityscanner.v1.ViolatingResource getViolatingReso
    * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder
-      getViolatingResourceOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() {
     return getViolatingResource();
   }
 
   public static final int VULNERABLE_HEADERS_FIELD_NUMBER = 15;
   private com.google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerableHeaders_;
   /**
-   *
-   *
    * 
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; - * * @return Whether the vulnerableHeaders field is set. */ @java.lang.Override @@ -1213,25 +1061,18 @@ public boolean hasVulnerableHeaders() { return vulnerableHeaders_ != null; } /** - * - * *
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; - * * @return The vulnerableHeaders. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.VulnerableHeaders getVulnerableHeaders() { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } /** - * - * *
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
@@ -1239,24 +1080,19 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders getVulnerableHea * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder - getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { return getVulnerableHeaders(); } public static final int VULNERABLE_PARAMETERS_FIELD_NUMBER = 13; private com.google.cloud.websecurityscanner.v1.VulnerableParameters vulnerableParameters_; /** - * - * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ @java.lang.Override @@ -1264,52 +1100,39 @@ public boolean hasVulnerableParameters() { return vulnerableParameters_ != null; } /** - * - * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.VulnerableParameters getVulnerableParameters() { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } /** - * - * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { return getVulnerableParameters(); } public static final int XSS_FIELD_NUMBER = 14; private com.google.cloud.websecurityscanner.v1.Xss xss_; /** - * - * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; - * * @return Whether the xss field is set. */ @java.lang.Override @@ -1317,14 +1140,11 @@ public boolean hasXss() { return xss_ != null; } /** - * - * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; - * * @return The xss. */ @java.lang.Override @@ -1332,8 +1152,6 @@ public com.google.cloud.websecurityscanner.v1.Xss getXss() { return xss_ == null ? com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance() : xss_; } /** - * - * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
@@ -1346,7 +1164,6 @@ public com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1358,7 +1175,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1407,9 +1225,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (form_ != null) { output.writeMessage(16, getForm()); } - if (severity_ - != com.google.cloud.websecurityscanner.v1.Finding.Severity.SEVERITY_UNSPECIFIED - .getNumber()) { + if (severity_ != com.google.cloud.websecurityscanner.v1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { output.writeEnum(17, severity_); } unknownFields.writeTo(output); @@ -1452,28 +1268,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, trackingId_); } if (outdatedLibrary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getOutdatedLibrary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getOutdatedLibrary()); } if (violatingResource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getViolatingResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getViolatingResource()); } if (vulnerableParameters_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(13, getVulnerableParameters()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getVulnerableParameters()); } if (xss_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getXss()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getXss()); } if (vulnerableHeaders_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getVulnerableHeaders()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getVulnerableHeaders()); } if (form_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getForm()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getForm()); } - if (severity_ - != com.google.cloud.websecurityscanner.v1.Finding.Severity.SEVERITY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, severity_); + if (severity_ != com.google.cloud.websecurityscanner.v1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(17, severity_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1483,48 +1303,63 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.Finding)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.Finding other = - (com.google.cloud.websecurityscanner.v1.Finding) obj; + com.google.cloud.websecurityscanner.v1.Finding other = (com.google.cloud.websecurityscanner.v1.Finding) obj; - if (!getName().equals(other.getName())) return false; - if (!getFindingType().equals(other.getFindingType())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getFindingType() + .equals(other.getFindingType())) return false; if (severity_ != other.severity_) return false; - if (!getHttpMethod().equals(other.getHttpMethod())) return false; - if (!getFuzzedUrl().equals(other.getFuzzedUrl())) return false; - if (!getBody().equals(other.getBody())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getReproductionUrl().equals(other.getReproductionUrl())) return false; - if (!getFrameUrl().equals(other.getFrameUrl())) return false; - if (!getFinalUrl().equals(other.getFinalUrl())) return false; - if (!getTrackingId().equals(other.getTrackingId())) return false; + if (!getHttpMethod() + .equals(other.getHttpMethod())) return false; + if (!getFuzzedUrl() + .equals(other.getFuzzedUrl())) return false; + if (!getBody() + .equals(other.getBody())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getReproductionUrl() + .equals(other.getReproductionUrl())) return false; + if (!getFrameUrl() + .equals(other.getFrameUrl())) return false; + if (!getFinalUrl() + .equals(other.getFinalUrl())) return false; + if (!getTrackingId() + .equals(other.getTrackingId())) return false; if (hasForm() != other.hasForm()) return false; if (hasForm()) { - if (!getForm().equals(other.getForm())) return false; + if (!getForm() + .equals(other.getForm())) return false; } if (hasOutdatedLibrary() != other.hasOutdatedLibrary()) return false; if (hasOutdatedLibrary()) { - if (!getOutdatedLibrary().equals(other.getOutdatedLibrary())) return false; + if (!getOutdatedLibrary() + .equals(other.getOutdatedLibrary())) return false; } if (hasViolatingResource() != other.hasViolatingResource()) return false; if (hasViolatingResource()) { - if (!getViolatingResource().equals(other.getViolatingResource())) return false; + if (!getViolatingResource() + .equals(other.getViolatingResource())) return false; } if (hasVulnerableHeaders() != other.hasVulnerableHeaders()) return false; if (hasVulnerableHeaders()) { - if (!getVulnerableHeaders().equals(other.getVulnerableHeaders())) return false; + if (!getVulnerableHeaders() + .equals(other.getVulnerableHeaders())) return false; } if (hasVulnerableParameters() != other.hasVulnerableParameters()) return false; if (hasVulnerableParameters()) { - if (!getVulnerableParameters().equals(other.getVulnerableParameters())) return false; + if (!getVulnerableParameters() + .equals(other.getVulnerableParameters())) return false; } if (hasXss() != other.hasXss()) return false; if (hasXss()) { - if (!getXss().equals(other.getXss())) return false; + if (!getXss() + .equals(other.getXss())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1588,104 +1423,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.Finding parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.Finding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Finding parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.Finding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Finding resource represents a vulnerability instance identified during a
    * ScanRun.
@@ -1693,23 +1521,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.Finding}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.Finding)
       com.google.cloud.websecurityscanner.v1.FindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.FindingProto.internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.FindingProto.internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.Finding.class,
-              com.google.cloud.websecurityscanner.v1.Finding.Builder.class);
+              com.google.cloud.websecurityscanner.v1.Finding.class, com.google.cloud.websecurityscanner.v1.Finding.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.Finding.newBuilder()
@@ -1717,15 +1543,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1791,9 +1618,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.FindingProto.internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
     }
 
     @java.lang.Override
@@ -1812,8 +1639,7 @@ public com.google.cloud.websecurityscanner.v1.Finding build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.Finding buildPartial() {
-      com.google.cloud.websecurityscanner.v1.Finding result =
-          new com.google.cloud.websecurityscanner.v1.Finding(this);
+      com.google.cloud.websecurityscanner.v1.Finding result = new com.google.cloud.websecurityscanner.v1.Finding(this);
       result.name_ = name_;
       result.findingType_ = findingType_;
       result.severity_ = severity_;
@@ -1863,39 +1689,38 @@ public com.google.cloud.websecurityscanner.v1.Finding buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.Finding) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.Finding) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.Finding)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1996,8 +1821,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2005,13 +1828,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2020,8 +1843,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2029,14 +1850,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2044,8 +1866,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2053,22 +1873,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2076,18 +1894,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2095,16 +1910,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2112,8 +1927,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object findingType_ = ""; /** - * - * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -2121,13 +1934,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string finding_type = 2; - * * @return The findingType. */ public java.lang.String getFindingType() { java.lang.Object ref = findingType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; @@ -2136,8 +1949,6 @@ public java.lang.String getFindingType() { } } /** - * - * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -2145,14 +1956,15 @@ public java.lang.String getFindingType() {
      * 
* * string finding_type = 2; - * * @return The bytes for findingType. */ - public com.google.protobuf.ByteString getFindingTypeBytes() { + public com.google.protobuf.ByteString + getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingType_ = b; return b; } else { @@ -2160,8 +1972,6 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { } } /** - * - * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -2169,22 +1979,20 @@ public com.google.protobuf.ByteString getFindingTypeBytes() {
      * 
* * string finding_type = 2; - * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType(java.lang.String value) { + public Builder setFindingType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingType_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -2192,18 +2000,15 @@ public Builder setFindingType(java.lang.String value) {
      * 
* * string finding_type = 2; - * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = getDefaultInstance().getFindingType(); onChanged(); return this; } /** - * - * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -2211,16 +2016,16 @@ public Builder clearFindingType() {
      * 
* * string finding_type = 2; - * * @param value The bytes for findingType to set. * @return This builder for chaining. */ - public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { + public Builder setFindingTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingType_ = value; onChanged(); return this; @@ -2228,75 +2033,51 @@ public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { private int severity_ = 0; /** - * - * *
      * Output only. The severity level of the reported vulnerability.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for severity. */ - @java.lang.Override - public int getSeverityValue() { + @java.lang.Override public int getSeverityValue() { return severity_; } /** - * - * *
      * Output only. The severity level of the reported vulnerability.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ public Builder setSeverityValue(int value) { - + severity_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The severity level of the reported vulnerability.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The severity. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.Finding.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.Finding.Severity result = - com.google.cloud.websecurityscanner.v1.Finding.Severity.valueOf(severity_); - return result == null - ? com.google.cloud.websecurityscanner.v1.Finding.Severity.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.Finding.Severity result = com.google.cloud.websecurityscanner.v1.Finding.Severity.valueOf(severity_); + return result == null ? com.google.cloud.websecurityscanner.v1.Finding.Severity.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The severity level of the reported vulnerability.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The severity to set. * @return This builder for chaining. */ @@ -2304,26 +2085,21 @@ public Builder setSeverity(com.google.cloud.websecurityscanner.v1.Finding.Severi if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The severity level of the reported vulnerability.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearSeverity() { - + severity_ = 0; onChanged(); return this; @@ -2331,21 +2107,19 @@ public Builder clearSeverity() { private java.lang.Object httpMethod_ = ""; /** - * - * *
      * Output only. The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -2354,22 +2128,21 @@ public java.lang.String getHttpMethod() { } } /** - * - * *
      * Output only. The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -2377,64 +2150,57 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } } /** - * - * *
      * Output only. The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod(java.lang.String value) { + public Builder setHttpMethod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** - * - * *
      * Output only. The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -2442,21 +2208,19 @@ public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { private java.lang.Object fuzzedUrl_ = ""; /** - * - * *
      * Output only. The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ public java.lang.String getFuzzedUrl() { java.lang.Object ref = fuzzedUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; @@ -2465,22 +2229,21 @@ public java.lang.String getFuzzedUrl() { } } /** - * - * *
      * Output only. The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ - public com.google.protobuf.ByteString getFuzzedUrlBytes() { + public com.google.protobuf.ByteString + getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -2488,64 +2251,57 @@ public com.google.protobuf.ByteString getFuzzedUrlBytes() { } } /** - * - * *
      * Output only. The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @param value The fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrl(java.lang.String value) { + public Builder setFuzzedUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fuzzedUrl_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return This builder for chaining. */ public Builder clearFuzzedUrl() { - + fuzzedUrl_ = getDefaultInstance().getFuzzedUrl(); onChanged(); return this; } /** - * - * *
      * Output only. The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @param value The bytes for fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFuzzedUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fuzzedUrl_ = value; onChanged(); return this; @@ -2553,20 +2309,18 @@ public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object body_ = ""; /** - * - * *
      * Output only. The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -2575,21 +2329,20 @@ public java.lang.String getBody() { } } /** - * - * *
      * Output only. The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return The bytes for body. */ - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -2597,61 +2350,54 @@ public com.google.protobuf.ByteString getBodyBytes() { } } /** - * - * *
      * Output only. The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody(java.lang.String value) { + public Builder setBody( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** - * - * *
      * Output only. The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes(com.google.protobuf.ByteString value) { + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; @@ -2659,20 +2405,18 @@ public Builder setBodyBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Output only. The description of the vulnerability.
      * 
* * string description = 6; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2681,21 +2425,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Output only. The description of the vulnerability.
      * 
* * string description = 6; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2703,61 +2446,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Output only. The description of the vulnerability.
      * 
* * string description = 6; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The description of the vulnerability.
      * 
* * string description = 6; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Output only. The description of the vulnerability.
      * 
* * string description = 6; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2765,21 +2501,19 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object reproductionUrl_ = ""; /** - * - * *
      * Output only. The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ public java.lang.String getReproductionUrl() { java.lang.Object ref = reproductionUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; @@ -2788,22 +2522,21 @@ public java.lang.String getReproductionUrl() { } } /** - * - * *
      * Output only. The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ - public com.google.protobuf.ByteString getReproductionUrlBytes() { + public com.google.protobuf.ByteString + getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -2811,64 +2544,57 @@ public com.google.protobuf.ByteString getReproductionUrlBytes() { } } /** - * - * *
      * Output only. The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @param value The reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrl(java.lang.String value) { + public Builder setReproductionUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reproductionUrl_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return This builder for chaining. */ public Builder clearReproductionUrl() { - + reproductionUrl_ = getDefaultInstance().getReproductionUrl(); onChanged(); return this; } /** - * - * *
      * Output only. The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @param value The bytes for reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { + public Builder setReproductionUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reproductionUrl_ = value; onChanged(); return this; @@ -2876,21 +2602,19 @@ public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object frameUrl_ = ""; /** - * - * *
      * Output only. If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return The frameUrl. */ public java.lang.String getFrameUrl() { java.lang.Object ref = frameUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; @@ -2899,22 +2623,21 @@ public java.lang.String getFrameUrl() { } } /** - * - * *
      * Output only. If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ - public com.google.protobuf.ByteString getFrameUrlBytes() { + public com.google.protobuf.ByteString + getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -2922,64 +2645,57 @@ public com.google.protobuf.ByteString getFrameUrlBytes() { } } /** - * - * *
      * Output only. If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @param value The frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrl(java.lang.String value) { + public Builder setFrameUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + frameUrl_ = value; onChanged(); return this; } /** - * - * *
      * Output only. If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return This builder for chaining. */ public Builder clearFrameUrl() { - + frameUrl_ = getDefaultInstance().getFrameUrl(); onChanged(); return this; } /** - * - * *
      * Output only. If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @param value The bytes for frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFrameUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + frameUrl_ = value; onChanged(); return this; @@ -2987,20 +2703,18 @@ public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object finalUrl_ = ""; /** - * - * *
      * Output only. The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return The finalUrl. */ public java.lang.String getFinalUrl() { java.lang.Object ref = finalUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; @@ -3009,21 +2723,20 @@ public java.lang.String getFinalUrl() { } } /** - * - * *
      * Output only. The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ - public com.google.protobuf.ByteString getFinalUrlBytes() { + public com.google.protobuf.ByteString + getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -3031,61 +2744,54 @@ public com.google.protobuf.ByteString getFinalUrlBytes() { } } /** - * - * *
      * Output only. The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @param value The finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrl(java.lang.String value) { + public Builder setFinalUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + finalUrl_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return This builder for chaining. */ public Builder clearFinalUrl() { - + finalUrl_ = getDefaultInstance().getFinalUrl(); onChanged(); return this; } /** - * - * *
      * Output only. The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @param value The bytes for finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFinalUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + finalUrl_ = value; onChanged(); return this; @@ -3093,21 +2799,19 @@ public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object trackingId_ = ""; /** - * - * *
      * Output only. The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return The trackingId. */ public java.lang.String getTrackingId() { java.lang.Object ref = trackingId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; @@ -3116,22 +2820,21 @@ public java.lang.String getTrackingId() { } } /** - * - * *
      * Output only. The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ - public com.google.protobuf.ByteString getTrackingIdBytes() { + public com.google.protobuf.ByteString + getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trackingId_ = b; return b; } else { @@ -3139,64 +2842,57 @@ public com.google.protobuf.ByteString getTrackingIdBytes() { } } /** - * - * *
      * Output only. The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @param value The trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingId(java.lang.String value) { + public Builder setTrackingId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trackingId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return This builder for chaining. */ public Builder clearTrackingId() { - + trackingId_ = getDefaultInstance().getTrackingId(); onChanged(); return this; } /** - * - * *
      * Output only. The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @param value The bytes for trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { + public Builder setTrackingIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trackingId_ = value; onChanged(); return this; @@ -3204,49 +2900,36 @@ public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1.Form form_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Form, - com.google.cloud.websecurityscanner.v1.Form.Builder, - com.google.cloud.websecurityscanner.v1.FormOrBuilder> - formBuilder_; + com.google.cloud.websecurityscanner.v1.Form, com.google.cloud.websecurityscanner.v1.Form.Builder, com.google.cloud.websecurityscanner.v1.FormOrBuilder> formBuilder_; /** - * - * *
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; - * * @return Whether the form field is set. */ public boolean hasForm() { return formBuilder_ != null || form_ != null; } /** - * - * *
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; - * * @return The form. */ public com.google.cloud.websecurityscanner.v1.Form getForm() { if (formBuilder_ == null) { - return form_ == null - ? com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance() - : form_; + return form_ == null ? com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance() : form_; } else { return formBuilder_.getMessage(); } } /** - * - * *
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3268,8 +2951,6 @@ public Builder setForm(com.google.cloud.websecurityscanner.v1.Form value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3277,7 +2958,8 @@ public Builder setForm(com.google.cloud.websecurityscanner.v1.Form value) {
      *
      * .google.cloud.websecurityscanner.v1.Form form = 16;
      */
-    public Builder setForm(com.google.cloud.websecurityscanner.v1.Form.Builder builderForValue) {
+    public Builder setForm(
+        com.google.cloud.websecurityscanner.v1.Form.Builder builderForValue) {
       if (formBuilder_ == null) {
         form_ = builderForValue.build();
         onChanged();
@@ -3288,8 +2970,6 @@ public Builder setForm(com.google.cloud.websecurityscanner.v1.Form.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3301,9 +2981,7 @@ public Builder mergeForm(com.google.cloud.websecurityscanner.v1.Form value) {
       if (formBuilder_ == null) {
         if (form_ != null) {
           form_ =
-              com.google.cloud.websecurityscanner.v1.Form.newBuilder(form_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.websecurityscanner.v1.Form.newBuilder(form_).mergeFrom(value).buildPartial();
         } else {
           form_ = value;
         }
@@ -3315,8 +2993,6 @@ public Builder mergeForm(com.google.cloud.websecurityscanner.v1.Form value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3336,8 +3012,6 @@ public Builder clearForm() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3346,13 +3020,11 @@ public Builder clearForm() {
      * .google.cloud.websecurityscanner.v1.Form form = 16;
      */
     public com.google.cloud.websecurityscanner.v1.Form.Builder getFormBuilder() {
-
+      
       onChanged();
       return getFormFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3364,14 +3036,11 @@ public com.google.cloud.websecurityscanner.v1.FormOrBuilder getFormOrBuilder() {
       if (formBuilder_ != null) {
         return formBuilder_.getMessageOrBuilder();
       } else {
-        return form_ == null
-            ? com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance()
-            : form_;
+        return form_ == null ?
+            com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance() : form_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3380,17 +3049,14 @@ public com.google.cloud.websecurityscanner.v1.FormOrBuilder getFormOrBuilder() {
      * .google.cloud.websecurityscanner.v1.Form form = 16;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.Form,
-            com.google.cloud.websecurityscanner.v1.Form.Builder,
-            com.google.cloud.websecurityscanner.v1.FormOrBuilder>
+        com.google.cloud.websecurityscanner.v1.Form, com.google.cloud.websecurityscanner.v1.Form.Builder, com.google.cloud.websecurityscanner.v1.FormOrBuilder> 
         getFormFieldBuilder() {
       if (formBuilder_ == null) {
-        formBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.websecurityscanner.v1.Form,
-                com.google.cloud.websecurityscanner.v1.Form.Builder,
-                com.google.cloud.websecurityscanner.v1.FormOrBuilder>(
-                getForm(), getParentForChildren(), isClean());
+        formBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.websecurityscanner.v1.Form, com.google.cloud.websecurityscanner.v1.Form.Builder, com.google.cloud.websecurityscanner.v1.FormOrBuilder>(
+                getForm(),
+                getParentForChildren(),
+                isClean());
         form_ = null;
       }
       return formBuilder_;
@@ -3398,55 +3064,41 @@ public com.google.cloud.websecurityscanner.v1.FormOrBuilder getFormOrBuilder() {
 
     private com.google.cloud.websecurityscanner.v1.OutdatedLibrary outdatedLibrary_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.OutdatedLibrary,
-            com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder,
-            com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder>
-        outdatedLibraryBuilder_;
+        com.google.cloud.websecurityscanner.v1.OutdatedLibrary, com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder> outdatedLibraryBuilder_;
     /**
-     *
-     *
      * 
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ public boolean hasOutdatedLibrary() { return outdatedLibraryBuilder_ != null || outdatedLibrary_ != null; } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ public com.google.cloud.websecurityscanner.v1.OutdatedLibrary getOutdatedLibrary() { if (outdatedLibraryBuilder_ == null) { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } else { return outdatedLibraryBuilder_.getMessage(); } } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ - public Builder setOutdatedLibrary( - com.google.cloud.websecurityscanner.v1.OutdatedLibrary value) { + public Builder setOutdatedLibrary(com.google.cloud.websecurityscanner.v1.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3460,8 +3112,6 @@ public Builder setOutdatedLibrary( return this; } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
@@ -3480,22 +3130,17 @@ public Builder setOutdatedLibrary( return this; } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ - public Builder mergeOutdatedLibrary( - com.google.cloud.websecurityscanner.v1.OutdatedLibrary value) { + public Builder mergeOutdatedLibrary(com.google.cloud.websecurityscanner.v1.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (outdatedLibrary_ != null) { outdatedLibrary_ = - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.newBuilder(outdatedLibrary_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1.OutdatedLibrary.newBuilder(outdatedLibrary_).mergeFrom(value).buildPartial(); } else { outdatedLibrary_ = value; } @@ -3507,8 +3152,6 @@ public Builder mergeOutdatedLibrary( return this; } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
@@ -3527,42 +3170,33 @@ public Builder clearOutdatedLibrary() { return this; } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder - getOutdatedLibraryBuilder() { - + public com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder getOutdatedLibraryBuilder() { + onChanged(); return getOutdatedLibraryFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder - getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { if (outdatedLibraryBuilder_ != null) { return outdatedLibraryBuilder_.getMessageOrBuilder(); } else { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? + com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
@@ -3570,17 +3204,14 @@ public Builder clearOutdatedLibrary() { * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.OutdatedLibrary, - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder, - com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder> + com.google.cloud.websecurityscanner.v1.OutdatedLibrary, com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder> getOutdatedLibraryFieldBuilder() { if (outdatedLibraryBuilder_ == null) { - outdatedLibraryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.OutdatedLibrary, - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder, - com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder>( - getOutdatedLibrary(), getParentForChildren(), isClean()); + outdatedLibraryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.OutdatedLibrary, com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder>( + getOutdatedLibrary(), + getParentForChildren(), + isClean()); outdatedLibrary_ = null; } return outdatedLibraryBuilder_; @@ -3588,49 +3219,36 @@ public Builder clearOutdatedLibrary() { private com.google.cloud.websecurityscanner.v1.ViolatingResource violatingResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ViolatingResource, - com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder, - com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder> - violatingResourceBuilder_; + com.google.cloud.websecurityscanner.v1.ViolatingResource, com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder> violatingResourceBuilder_; /** - * - * *
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; - * * @return Whether the violatingResource field is set. */ public boolean hasViolatingResource() { return violatingResourceBuilder_ != null || violatingResource_ != null; } /** - * - * *
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; - * * @return The violatingResource. */ public com.google.cloud.websecurityscanner.v1.ViolatingResource getViolatingResource() { if (violatingResourceBuilder_ == null) { - return violatingResource_ == null - ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance() - : violatingResource_; + return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance() : violatingResource_; } else { return violatingResourceBuilder_.getMessage(); } } /** - * - * *
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3638,8 +3256,7 @@ public com.google.cloud.websecurityscanner.v1.ViolatingResource getViolatingReso
      *
      * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
      */
-    public Builder setViolatingResource(
-        com.google.cloud.websecurityscanner.v1.ViolatingResource value) {
+    public Builder setViolatingResource(com.google.cloud.websecurityscanner.v1.ViolatingResource value) {
       if (violatingResourceBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3653,8 +3270,6 @@ public Builder setViolatingResource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3674,8 +3289,6 @@ public Builder setViolatingResource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3683,15 +3296,11 @@ public Builder setViolatingResource(
      *
      * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
      */
-    public Builder mergeViolatingResource(
-        com.google.cloud.websecurityscanner.v1.ViolatingResource value) {
+    public Builder mergeViolatingResource(com.google.cloud.websecurityscanner.v1.ViolatingResource value) {
       if (violatingResourceBuilder_ == null) {
         if (violatingResource_ != null) {
           violatingResource_ =
-              com.google.cloud.websecurityscanner.v1.ViolatingResource.newBuilder(
-                      violatingResource_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.websecurityscanner.v1.ViolatingResource.newBuilder(violatingResource_).mergeFrom(value).buildPartial();
         } else {
           violatingResource_ = value;
         }
@@ -3703,8 +3312,6 @@ public Builder mergeViolatingResource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3724,8 +3331,6 @@ public Builder clearViolatingResource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3733,15 +3338,12 @@ public Builder clearViolatingResource() {
      *
      * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
      */
-    public com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder
-        getViolatingResourceBuilder() {
-
+    public com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder getViolatingResourceBuilder() {
+      
       onChanged();
       return getViolatingResourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3749,19 +3351,15 @@ public Builder clearViolatingResource() {
      *
      * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
      */
-    public com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder
-        getViolatingResourceOrBuilder() {
+    public com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() {
       if (violatingResourceBuilder_ != null) {
         return violatingResourceBuilder_.getMessageOrBuilder();
       } else {
-        return violatingResource_ == null
-            ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance()
-            : violatingResource_;
+        return violatingResource_ == null ?
+            com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance() : violatingResource_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3770,17 +3368,14 @@ public Builder clearViolatingResource() {
      * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.ViolatingResource,
-            com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder,
-            com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder>
+        com.google.cloud.websecurityscanner.v1.ViolatingResource, com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder> 
         getViolatingResourceFieldBuilder() {
       if (violatingResourceBuilder_ == null) {
-        violatingResourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.websecurityscanner.v1.ViolatingResource,
-                com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder,
-                com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder>(
-                getViolatingResource(), getParentForChildren(), isClean());
+        violatingResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.websecurityscanner.v1.ViolatingResource, com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder>(
+                getViolatingResource(),
+                getParentForChildren(),
+                isClean());
         violatingResource_ = null;
       }
       return violatingResourceBuilder_;
@@ -3788,55 +3383,41 @@ public Builder clearViolatingResource() {
 
     private com.google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerableHeaders_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.VulnerableHeaders,
-            com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder,
-            com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder>
-        vulnerableHeadersBuilder_;
+        com.google.cloud.websecurityscanner.v1.VulnerableHeaders, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder> vulnerableHeadersBuilder_;
     /**
-     *
-     *
      * 
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; - * * @return Whether the vulnerableHeaders field is set. */ public boolean hasVulnerableHeaders() { return vulnerableHeadersBuilder_ != null || vulnerableHeaders_ != null; } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; - * * @return The vulnerableHeaders. */ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders getVulnerableHeaders() { if (vulnerableHeadersBuilder_ == null) { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } else { return vulnerableHeadersBuilder_.getMessage(); } } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ - public Builder setVulnerableHeaders( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders value) { + public Builder setVulnerableHeaders(com.google.cloud.websecurityscanner.v1.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3850,8 +3431,6 @@ public Builder setVulnerableHeaders( return this; } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
@@ -3870,23 +3449,17 @@ public Builder setVulnerableHeaders( return this; } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ - public Builder mergeVulnerableHeaders( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders value) { + public Builder mergeVulnerableHeaders(com.google.cloud.websecurityscanner.v1.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (vulnerableHeaders_ != null) { vulnerableHeaders_ = - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.newBuilder( - vulnerableHeaders_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.newBuilder(vulnerableHeaders_).mergeFrom(value).buildPartial(); } else { vulnerableHeaders_ = value; } @@ -3898,8 +3471,6 @@ public Builder mergeVulnerableHeaders( return this; } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
@@ -3918,42 +3489,33 @@ public Builder clearVulnerableHeaders() { return this; } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder - getVulnerableHeadersBuilder() { - + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder getVulnerableHeadersBuilder() { + onChanged(); return getVulnerableHeadersFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder - getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { if (vulnerableHeadersBuilder_ != null) { return vulnerableHeadersBuilder_.getMessageOrBuilder(); } else { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
@@ -3961,17 +3523,14 @@ public Builder clearVulnerableHeaders() { * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder> + com.google.cloud.websecurityscanner.v1.VulnerableHeaders, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder> getVulnerableHeadersFieldBuilder() { if (vulnerableHeadersBuilder_ == null) { - vulnerableHeadersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder>( - getVulnerableHeaders(), getParentForChildren(), isClean()); + vulnerableHeadersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.VulnerableHeaders, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder>( + getVulnerableHeaders(), + getParentForChildren(), + isClean()); vulnerableHeaders_ = null; } return vulnerableHeadersBuilder_; @@ -3979,61 +3538,44 @@ public Builder clearVulnerableHeaders() { private com.google.cloud.websecurityscanner.v1.VulnerableParameters vulnerableParameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableParameters, - com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder> - vulnerableParametersBuilder_; + com.google.cloud.websecurityscanner.v1.VulnerableParameters, com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder> vulnerableParametersBuilder_; /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ public boolean hasVulnerableParameters() { return vulnerableParametersBuilder_ != null || vulnerableParameters_ != null; } /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ public com.google.cloud.websecurityscanner.v1.VulnerableParameters getVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } else { return vulnerableParametersBuilder_.getMessage(); } } /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ - public Builder setVulnerableParameters( - com.google.cloud.websecurityscanner.v1.VulnerableParameters value) { + public Builder setVulnerableParameters(com.google.cloud.websecurityscanner.v1.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4047,15 +3589,12 @@ public Builder setVulnerableParameters( return this; } /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ public Builder setVulnerableParameters( com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder builderForValue) { @@ -4069,25 +3608,18 @@ public Builder setVulnerableParameters( return this; } /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ - public Builder mergeVulnerableParameters( - com.google.cloud.websecurityscanner.v1.VulnerableParameters value) { + public Builder mergeVulnerableParameters(com.google.cloud.websecurityscanner.v1.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (vulnerableParameters_ != null) { vulnerableParameters_ = - com.google.cloud.websecurityscanner.v1.VulnerableParameters.newBuilder( - vulnerableParameters_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1.VulnerableParameters.newBuilder(vulnerableParameters_).mergeFrom(value).buildPartial(); } else { vulnerableParameters_ = value; } @@ -4099,15 +3631,12 @@ public Builder mergeVulnerableParameters( return this; } /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ public Builder clearVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { @@ -4121,66 +3650,51 @@ public Builder clearVulnerableParameters() { return this; } /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ - public com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder - getVulnerableParametersBuilder() { - + public com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder getVulnerableParametersBuilder() { + onChanged(); return getVulnerableParametersFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ - public com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { if (vulnerableParametersBuilder_ != null) { return vulnerableParametersBuilder_.getMessageOrBuilder(); } else { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + return vulnerableParameters_ == null ? + com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } } /** - * - * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableParameters, - com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder> + com.google.cloud.websecurityscanner.v1.VulnerableParameters, com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder> getVulnerableParametersFieldBuilder() { if (vulnerableParametersBuilder_ == null) { - vulnerableParametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableParameters, - com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder>( - getVulnerableParameters(), getParentForChildren(), isClean()); + vulnerableParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.VulnerableParameters, com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder>( + getVulnerableParameters(), + getParentForChildren(), + isClean()); vulnerableParameters_ = null; } return vulnerableParametersBuilder_; @@ -4188,47 +3702,34 @@ public Builder clearVulnerableParameters() { private com.google.cloud.websecurityscanner.v1.Xss xss_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Xss, - com.google.cloud.websecurityscanner.v1.Xss.Builder, - com.google.cloud.websecurityscanner.v1.XssOrBuilder> - xssBuilder_; + com.google.cloud.websecurityscanner.v1.Xss, com.google.cloud.websecurityscanner.v1.Xss.Builder, com.google.cloud.websecurityscanner.v1.XssOrBuilder> xssBuilder_; /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; - * * @return Whether the xss field is set. */ public boolean hasXss() { return xssBuilder_ != null || xss_ != null; } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; - * * @return The xss. */ public com.google.cloud.websecurityscanner.v1.Xss getXss() { if (xssBuilder_ == null) { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance() : xss_; } else { return xssBuilder_.getMessage(); } } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -4249,15 +3750,14 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1.Xss value) { return this; } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; */ - public Builder setXss(com.google.cloud.websecurityscanner.v1.Xss.Builder builderForValue) { + public Builder setXss( + com.google.cloud.websecurityscanner.v1.Xss.Builder builderForValue) { if (xssBuilder_ == null) { xss_ = builderForValue.build(); onChanged(); @@ -4268,8 +3768,6 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1.Xss.Builder builder return this; } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -4280,9 +3778,7 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1.Xss value) { if (xssBuilder_ == null) { if (xss_ != null) { xss_ = - com.google.cloud.websecurityscanner.v1.Xss.newBuilder(xss_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1.Xss.newBuilder(xss_).mergeFrom(value).buildPartial(); } else { xss_ = value; } @@ -4294,8 +3790,6 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1.Xss value) { return this; } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -4314,8 +3808,6 @@ public Builder clearXss() { return this; } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -4323,13 +3815,11 @@ public Builder clearXss() { * .google.cloud.websecurityscanner.v1.Xss xss = 14; */ public com.google.cloud.websecurityscanner.v1.Xss.Builder getXssBuilder() { - + onChanged(); return getXssFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -4340,14 +3830,11 @@ public com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder() { if (xssBuilder_ != null) { return xssBuilder_.getMessageOrBuilder(); } else { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? + com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance() : xss_; } } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -4355,24 +3842,21 @@ public com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder() { * .google.cloud.websecurityscanner.v1.Xss xss = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Xss, - com.google.cloud.websecurityscanner.v1.Xss.Builder, - com.google.cloud.websecurityscanner.v1.XssOrBuilder> + com.google.cloud.websecurityscanner.v1.Xss, com.google.cloud.websecurityscanner.v1.Xss.Builder, com.google.cloud.websecurityscanner.v1.XssOrBuilder> getXssFieldBuilder() { if (xssBuilder_ == null) { - xssBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Xss, - com.google.cloud.websecurityscanner.v1.Xss.Builder, - com.google.cloud.websecurityscanner.v1.XssOrBuilder>( - getXss(), getParentForChildren(), isClean()); + xssBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.Xss, com.google.cloud.websecurityscanner.v1.Xss.Builder, com.google.cloud.websecurityscanner.v1.XssOrBuilder>( + getXss(), + getParentForChildren(), + isClean()); xss_ = null; } return xssBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4382,12 +3866,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.Finding) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.Finding) private static final com.google.cloud.websecurityscanner.v1.Finding DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.Finding(); } @@ -4396,16 +3880,16 @@ public static com.google.cloud.websecurityscanner.v1.Finding getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Finding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Finding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Finding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4420,4 +3904,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java new file mode 100644 index 00000000..a100c440 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java @@ -0,0 +1,144 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/finding_addon.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class FindingAddonProto { + private FindingAddonProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/websecurityscanner/v1/fin" + + "ding_addon.proto\022\"google.cloud.websecuri" + + "tyscanner.v1\"*\n\004Form\022\022\n\naction_uri\030\001 \001(\t" + + "\022\016\n\006fields\030\002 \003(\t\"Q\n\017OutdatedLibrary\022\024\n\014l" + + "ibrary_name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\027\n\017le" + + "arn_more_urls\030\003 \003(\t\"?\n\021ViolatingResource" + + "\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resource_url\030\002" + + " \001(\t\"/\n\024VulnerableParameters\022\027\n\017paramete" + + "r_names\030\001 \003(\t\"\340\001\n\021VulnerableHeaders\022M\n\007h" + + "eaders\030\001 \003(\0132<.google.cloud.websecuritys" + + "canner.v1.VulnerableHeaders.Header\022U\n\017mi" + + "ssing_headers\030\002 \003(\0132<.google.cloud.webse" + + "curityscanner.v1.VulnerableHeaders.Heade" + + "r\032%\n\006Header\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + "\"\333\003\n\003Xss\022\024\n\014stack_traces\030\001 \003(\t\022\025\n\rerror_" + + "message\030\002 \001(\t\022K\n\rattack_vector\030\003 \001(\01624.g" + + "oogle.cloud.websecurityscanner.v1.Xss.At" + + "tackVector\022\036\n\026stored_xss_seeding_url\030\004 \001" + + "(\t\"\271\002\n\014AttackVector\022\035\n\031ATTACK_VECTOR_UNS" + + "PECIFIED\020\000\022\021\n\rLOCAL_STORAGE\020\001\022\023\n\017SESSION" + + "_STORAGE\020\002\022\017\n\013WINDOW_NAME\020\003\022\014\n\010REFERRER\020" + + "\004\022\016\n\nFORM_INPUT\020\005\022\n\n\006COOKIE\020\006\022\020\n\014POST_ME" + + "SSAGE\020\007\022\022\n\016GET_PARAMETERS\020\010\022\020\n\014URL_FRAGM" + + "ENT\020\t\022\020\n\014HTML_COMMENT\020\n\022\023\n\017POST_PARAMETE" + + "RS\020\013\022\014\n\010PROTOCOL\020\014\022\016\n\nSTORED_XSS\020\r\022\017\n\013SA" + + "ME_ORIGIN\020\016\022\031\n\025USER_CONTROLLABLE_URL\020\017B\205" + + "\002\n&com.google.cloud.websecurityscanner.v" + + "1B\021FindingAddonProtoP\001ZTgoogle.golang.or" + + "g/genproto/googleapis/cloud/websecuritys" + + "canner/v1;websecurityscanner\252\002\"Google.Cl" + + "oud.WebSecurityScanner.V1\312\002\"Google\\Cloud" + + "\\WebSecurityScanner\\V1\352\002%Google::Cloud::" + + "WebSecurityScanner::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1_Form_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_Form_descriptor, + new java.lang.String[] { "ActionUri", "Fields", }); + internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor, + new java.lang.String[] { "LibraryName", "Version", "LearnMoreUrls", }); + internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor, + new java.lang.String[] { "ContentType", "ResourceUrl", }); + internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor, + new java.lang.String[] { "ParameterNames", }); + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor, + new java.lang.String[] { "Headers", "MissingHeaders", }); + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor = + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor, + new java.lang.String[] { "StackTraces", "ErrorMessage", "AttackVector", "StoredXssSeedingUrl", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java similarity index 83% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java index 338bf2e8..f6a51533 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding.proto package com.google.cloud.websecurityscanner.v1; -public interface FindingOrBuilder - extends +public interface FindingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.Finding) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -33,13 +15,10 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -47,14 +26,12 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -62,13 +39,10 @@ public interface FindingOrBuilder
    * 
* * string finding_type = 2; - * * @return The findingType. */ java.lang.String getFindingType(); /** - * - * *
    * Output only. The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -76,279 +50,221 @@ public interface FindingOrBuilder
    * 
* * string finding_type = 2; - * * @return The bytes for findingType. */ - com.google.protobuf.ByteString getFindingTypeBytes(); + com.google.protobuf.ByteString + getFindingTypeBytes(); /** - * - * *
    * Output only. The severity level of the reported vulnerability.
    * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** - * - * *
    * Output only. The severity level of the reported vulnerability.
    * 
* - * - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The severity. */ com.google.cloud.websecurityscanner.v1.Finding.Severity getSeverity(); /** - * - * *
    * Output only. The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** - * - * *
    * Output only. The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString getHttpMethodBytes(); + com.google.protobuf.ByteString + getHttpMethodBytes(); /** - * - * *
    * Output only. The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ java.lang.String getFuzzedUrl(); /** - * - * *
    * Output only. The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ - com.google.protobuf.ByteString getFuzzedUrlBytes(); + com.google.protobuf.ByteString + getFuzzedUrlBytes(); /** - * - * *
    * Output only. The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The body. */ java.lang.String getBody(); /** - * - * *
    * Output only. The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The bytes for body. */ - com.google.protobuf.ByteString getBodyBytes(); + com.google.protobuf.ByteString + getBodyBytes(); /** - * - * *
    * Output only. The description of the vulnerability.
    * 
* * string description = 6; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Output only. The description of the vulnerability.
    * 
* * string description = 6; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ java.lang.String getReproductionUrl(); /** - * - * *
    * Output only. The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ - com.google.protobuf.ByteString getReproductionUrlBytes(); + com.google.protobuf.ByteString + getReproductionUrlBytes(); /** - * - * *
    * Output only. If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The frameUrl. */ java.lang.String getFrameUrl(); /** - * - * *
    * Output only. If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ - com.google.protobuf.ByteString getFrameUrlBytes(); + com.google.protobuf.ByteString + getFrameUrlBytes(); /** - * - * *
    * Output only. The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The finalUrl. */ java.lang.String getFinalUrl(); /** - * - * *
    * Output only. The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ - com.google.protobuf.ByteString getFinalUrlBytes(); + com.google.protobuf.ByteString + getFinalUrlBytes(); /** - * - * *
    * Output only. The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The trackingId. */ java.lang.String getTrackingId(); /** - * - * *
    * Output only. The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ - com.google.protobuf.ByteString getTrackingIdBytes(); + com.google.protobuf.ByteString + getTrackingIdBytes(); /** - * - * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; - * * @return Whether the form field is set. */ boolean hasForm(); /** - * - * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; - * * @return The form. */ com.google.cloud.websecurityscanner.v1.Form getForm(); /** - * - * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
@@ -359,32 +275,24 @@ public interface FindingOrBuilder
   com.google.cloud.websecurityscanner.v1.FormOrBuilder getFormOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ boolean hasOutdatedLibrary(); /** - * - * *
    * Output only. An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ com.google.cloud.websecurityscanner.v1.OutdatedLibrary getOutdatedLibrary(); /** - * - * *
    * Output only. An addon containing information about outdated libraries.
    * 
@@ -394,34 +302,26 @@ public interface FindingOrBuilder com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder(); /** - * - * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; - * * @return Whether the violatingResource field is set. */ boolean hasViolatingResource(); /** - * - * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; - * * @return The violatingResource. */ com.google.cloud.websecurityscanner.v1.ViolatingResource getViolatingResource(); /** - * - * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -432,32 +332,24 @@ public interface FindingOrBuilder
   com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder getViolatingResourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; - * * @return Whether the vulnerableHeaders field is set. */ boolean hasVulnerableHeaders(); /** - * - * *
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; - * * @return The vulnerableHeaders. */ com.google.cloud.websecurityscanner.v1.VulnerableHeaders getVulnerableHeaders(); /** - * - * *
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
@@ -467,74 +359,54 @@ public interface FindingOrBuilder com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder(); /** - * - * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ boolean hasVulnerableParameters(); /** - * - * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ com.google.cloud.websecurityscanner.v1.VulnerableParameters getVulnerableParameters(); /** - * - * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; */ - com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder(); + com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder(); /** - * - * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; - * * @return Whether the xss field is set. */ boolean hasXss(); /** - * - * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; - * * @return The xss. */ com.google.cloud.websecurityscanner.v1.Xss getXss(); /** - * - * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java new file mode 100644 index 00000000..35eb73d6 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/finding.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class FindingProto { + private FindingProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/websecurityscanner/v1/fin" + + "ding.proto\022\"google.cloud.websecurityscan" + + "ner.v1\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\0326google/cloud" + + "/websecurityscanner/v1/finding_addon.pro" + + "to\"\261\007\n\007Finding\022\014\n\004name\030\001 \001(\t\022\024\n\014finding_" + + "type\030\002 \001(\t\022K\n\010severity\030\021 \001(\01624.google.cl" + + "oud.websecurityscanner.v1.Finding.Severi" + + "tyB\003\340A\003\022\023\n\013http_method\030\003 \001(\t\022\022\n\nfuzzed_u" + + "rl\030\004 \001(\t\022\014\n\004body\030\005 \001(\t\022\023\n\013description\030\006 " + + "\001(\t\022\030\n\020reproduction_url\030\007 \001(\t\022\021\n\tframe_u" + + "rl\030\010 \001(\t\022\021\n\tfinal_url\030\t \001(\t\022\023\n\013tracking_" + + "id\030\n \001(\t\0226\n\004form\030\020 \001(\0132(.google.cloud.we" + + "bsecurityscanner.v1.Form\022M\n\020outdated_lib" + + "rary\030\013 \001(\01323.google.cloud.websecuritysca" + + "nner.v1.OutdatedLibrary\022Q\n\022violating_res" + + "ource\030\014 \001(\01325.google.cloud.websecuritysc" + + "anner.v1.ViolatingResource\022Q\n\022vulnerable" + + "_headers\030\017 \001(\01325.google.cloud.websecurit" + + "yscanner.v1.VulnerableHeaders\022W\n\025vulnera" + + "ble_parameters\030\r \001(\01328.google.cloud.webs" + + "ecurityscanner.v1.VulnerableParameters\0224" + + "\n\003xss\030\016 \001(\0132\'.google.cloud.websecuritysc" + + "anner.v1.Xss\"Q\n\010Severity\022\030\n\024SEVERITY_UNS" + + "PECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006ME" + + "DIUM\020\003\022\007\n\003LOW\020\004:\204\001\352A\200\001\n)websecurityscann" + + "er.googleapis.com/Finding\022Sprojects/{pro" + + "ject}/scanConfigs/{scan_config}/scanRuns" + + "/{scan_run}/findings/{finding}B\200\002\n&com.g" + + "oogle.cloud.websecurityscanner.v1B\014Findi" + + "ngProtoP\001ZTgoogle.golang.org/genproto/go" + + "ogleapis/cloud/websecurityscanner/v1;web" + + "securityscanner\252\002\"Google.Cloud.WebSecuri" + + "tyScanner.V1\312\002\"Google\\Cloud\\WebSecurityS" + + "canner\\V1\352\002%Google::Cloud::WebSecuritySc" + + "anner::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1.FindingAddonProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor, + new java.lang.String[] { "Name", "FindingType", "Severity", "HttpMethod", "FuzzedUrl", "Body", "Description", "ReproductionUrl", "FrameUrl", "FinalUrl", "TrackingId", "Form", "OutdatedLibrary", "ViolatingResource", "VulnerableHeaders", "VulnerableParameters", "Xss", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1.FindingAddonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java similarity index 70% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java index f9240cef..df1810f2 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * A FindingTypeStats resource represents stats regarding a specific FindingType
  * of Findings under a given ScanRun.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.FindingTypeStats}
  */
-public final class FindingTypeStats extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FindingTypeStats extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.FindingTypeStats)
     FindingTypeStatsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FindingTypeStats.newBuilder() to construct.
   private FindingTypeStats(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FindingTypeStats() {
     findingType_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FindingTypeStats();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FindingTypeStats(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,25 +54,24 @@ private FindingTypeStats(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              findingType_ = s;
-              break;
-            }
-          case 16:
-            {
-              findingCount_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            findingType_ = s;
+            break;
+          }
+          case 16: {
+
+            findingCount_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,39 +79,34 @@ private FindingTypeStats(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto
-        .internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto
-        .internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.FindingTypeStats.class,
-            com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder.class);
+            com.google.cloud.websecurityscanner.v1.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder.class);
   }
 
   public static final int FINDING_TYPE_FIELD_NUMBER = 1;
   private volatile java.lang.Object findingType_;
   /**
-   *
-   *
    * 
    * Output only. The finding type associated with the stats.
    * 
* * string finding_type = 1; - * * @return The findingType. */ @java.lang.Override @@ -138,29 +115,29 @@ public java.lang.String getFindingType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; } } /** - * - * *
    * Output only. The finding type associated with the stats.
    * 
* * string finding_type = 1; - * * @return The bytes for findingType. */ @java.lang.Override - public com.google.protobuf.ByteString getFindingTypeBytes() { + public com.google.protobuf.ByteString + getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingType_ = b; return b; } else { @@ -171,14 +148,11 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { public static final int FINDING_COUNT_FIELD_NUMBER = 2; private int findingCount_; /** - * - * *
    * Output only. The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; - * * @return The findingCount. */ @java.lang.Override @@ -187,7 +161,6 @@ public int getFindingCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(findingType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, findingType_); } @@ -219,7 +193,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, findingType_); } if (findingCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, findingCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, findingCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -229,16 +204,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.FindingTypeStats)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.FindingTypeStats other = - (com.google.cloud.websecurityscanner.v1.FindingTypeStats) obj; + com.google.cloud.websecurityscanner.v1.FindingTypeStats other = (com.google.cloud.websecurityscanner.v1.FindingTypeStats) obj; - if (!getFindingType().equals(other.getFindingType())) return false; - if (getFindingCount() != other.getFindingCount()) return false; + if (!getFindingType() + .equals(other.getFindingType())) return false; + if (getFindingCount() + != other.getFindingCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -260,104 +236,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.FindingTypeStats prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.FindingTypeStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A FindingTypeStats resource represents stats regarding a specific FindingType
    * of Findings under a given ScanRun.
@@ -365,23 +333,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.FindingTypeStats}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.FindingTypeStats)
       com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.FindingTypeStats.class,
-              com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder.class);
+              com.google.cloud.websecurityscanner.v1.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.FindingTypeStats.newBuilder()
@@ -389,15 +355,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -409,9 +376,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
@@ -430,8 +397,7 @@ public com.google.cloud.websecurityscanner.v1.FindingTypeStats build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.FindingTypeStats buildPartial() {
-      com.google.cloud.websecurityscanner.v1.FindingTypeStats result =
-          new com.google.cloud.websecurityscanner.v1.FindingTypeStats(this);
+      com.google.cloud.websecurityscanner.v1.FindingTypeStats result = new com.google.cloud.websecurityscanner.v1.FindingTypeStats(this);
       result.findingType_ = findingType_;
       result.findingCount_ = findingCount_;
       onBuilt();
@@ -442,39 +408,38 @@ public com.google.cloud.websecurityscanner.v1.FindingTypeStats buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.FindingTypeStats) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.FindingTypeStats) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.FindingTypeStats)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -482,8 +447,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.FindingTypeStats other) {
-      if (other == com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance()) return this;
       if (!other.getFindingType().isEmpty()) {
         findingType_ = other.findingType_;
         onChanged();
@@ -510,8 +474,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1.FindingTypeStats) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1.FindingTypeStats) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -523,20 +486,18 @@ public Builder mergeFrom(
 
     private java.lang.Object findingType_ = "";
     /**
-     *
-     *
      * 
      * Output only. The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @return The findingType. */ public java.lang.String getFindingType() { java.lang.Object ref = findingType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; @@ -545,21 +506,20 @@ public java.lang.String getFindingType() { } } /** - * - * *
      * Output only. The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @return The bytes for findingType. */ - public com.google.protobuf.ByteString getFindingTypeBytes() { + public com.google.protobuf.ByteString + getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingType_ = b; return b; } else { @@ -567,76 +527,66 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { } } /** - * - * *
      * Output only. The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType(java.lang.String value) { + public Builder setFindingType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingType_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = getDefaultInstance().getFindingType(); onChanged(); return this; } /** - * - * *
      * Output only. The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @param value The bytes for findingType to set. * @return This builder for chaining. */ - public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { + public Builder setFindingTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingType_ = value; onChanged(); return this; } - private int findingCount_; + private int findingCount_ ; /** - * - * *
      * Output only. The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @return The findingCount. */ @java.lang.Override @@ -644,43 +594,37 @@ public int getFindingCount() { return findingCount_; } /** - * - * *
      * Output only. The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @param value The findingCount to set. * @return This builder for chaining. */ public Builder setFindingCount(int value) { - + findingCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @return This builder for chaining. */ public Builder clearFindingCount() { - + findingCount_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -690,12 +634,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.FindingTypeStats) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.FindingTypeStats) private static final com.google.cloud.websecurityscanner.v1.FindingTypeStats DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.FindingTypeStats(); } @@ -704,16 +648,16 @@ public static com.google.cloud.websecurityscanner.v1.FindingTypeStats getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FindingTypeStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FindingTypeStats(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindingTypeStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FindingTypeStats(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -728,4 +672,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.FindingTypeStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java similarity index 55% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java index e64b9e99..23a22c05 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java @@ -1,62 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1; -public interface FindingTypeStatsOrBuilder - extends +public interface FindingTypeStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.FindingTypeStats) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The finding type associated with the stats.
    * 
* * string finding_type = 1; - * * @return The findingType. */ java.lang.String getFindingType(); /** - * - * *
    * Output only. The finding type associated with the stats.
    * 
* * string finding_type = 1; - * * @return The bytes for findingType. */ - com.google.protobuf.ByteString getFindingTypeBytes(); + com.google.protobuf.ByteString + getFindingTypeBytes(); /** - * - * *
    * Output only. The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; - * * @return The findingCount. */ int getFindingCount(); diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java new file mode 100644 index 00000000..deb9c663 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/finding_type_stats.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class FindingTypeStatsProto { + private FindingTypeStatsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n;google/cloud/websecurityscanner/v1/fin" + + "ding_type_stats.proto\022\"google.cloud.webs" + + "ecurityscanner.v1\"?\n\020FindingTypeStats\022\024\n" + + "\014finding_type\030\001 \001(\t\022\025\n\rfinding_count\030\002 \001" + + "(\005B\211\002\n&com.google.cloud.websecurityscann" + + "er.v1B\025FindingTypeStatsProtoP\001ZTgoogle.g" + + "olang.org/genproto/googleapis/cloud/webs" + + "ecurityscanner/v1;websecurityscanner\252\002\"G" + + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" + + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" + + ":Cloud::WebSecurityScanner::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor, + new java.lang.String[] { "FindingType", "FindingCount", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java index 82e5baad..8dc28fa3 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * ! Information about a vulnerability with an HTML.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.Form} */ -public final class Form extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Form extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.Form) FormOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Form.newBuilder() to construct. private Form(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Form() { actionUri_ = ""; fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,15 +26,16 @@ private Form() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Form(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Form( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private Form( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - actionUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - fields_.add(s); - break; + actionUri_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fields_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + fields_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private Form( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fields_ = fields_.getUnmodifiableView(); @@ -112,33 +94,27 @@ private Form( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.Form.class, - com.google.cloud.websecurityscanner.v1.Form.Builder.class); + com.google.cloud.websecurityscanner.v1.Form.class, com.google.cloud.websecurityscanner.v1.Form.Builder.class); } public static final int ACTION_URI_FIELD_NUMBER = 1; private volatile java.lang.Object actionUri_; /** - * - * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; - * * @return The actionUri. */ @java.lang.Override @@ -147,29 +123,29 @@ public java.lang.String getActionUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionUri_ = s; return s; } } /** - * - * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; - * * @return The bytes for actionUri. */ @java.lang.Override - public com.google.protobuf.ByteString getActionUriBytes() { + public com.google.protobuf.ByteString + getActionUriBytes() { java.lang.Object ref = actionUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); actionUri_ = b; return b; } else { @@ -180,42 +156,34 @@ public com.google.protobuf.ByteString getActionUriBytes() { public static final int FIELDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList fields_; /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @return A list containing the fields. */ - public com.google.protobuf.ProtocolStringList getFieldsList() { + public com.google.protobuf.ProtocolStringList + getFieldsList() { return fields_; } /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @return The count of fields. */ public int getFieldsCount() { return fields_.size(); } /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @param index The index of the element to return. * @return The fields at the given index. */ @@ -223,23 +191,20 @@ public java.lang.String getFields(int index) { return fields_.get(index); } /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - public com.google.protobuf.ByteString getFieldsBytes(int index) { + public com.google.protobuf.ByteString + getFieldsBytes(int index) { return fields_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +216,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actionUri_); } @@ -286,16 +252,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.Form)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.Form other = - (com.google.cloud.websecurityscanner.v1.Form) obj; + com.google.cloud.websecurityscanner.v1.Form other = (com.google.cloud.websecurityscanner.v1.Form) obj; - if (!getActionUri().equals(other.getActionUri())) return false; - if (!getFieldsList().equals(other.getFieldsList())) return false; + if (!getActionUri() + .equals(other.getActionUri())) return false; + if (!getFieldsList() + .equals(other.getFieldsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -318,127 +285,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1.Form parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.Form parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.Form parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Form parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.Form prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ! Information about a vulnerability with an HTML.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.Form} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.Form) com.google.cloud.websecurityscanner.v1.FormOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.Form.class, - com.google.cloud.websecurityscanner.v1.Form.Builder.class); + com.google.cloud.websecurityscanner.v1.Form.class, com.google.cloud.websecurityscanner.v1.Form.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.Form.newBuilder() @@ -446,15 +404,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -466,9 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; } @java.lang.Override @@ -487,8 +446,7 @@ public com.google.cloud.websecurityscanner.v1.Form build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.Form buildPartial() { - com.google.cloud.websecurityscanner.v1.Form result = - new com.google.cloud.websecurityscanner.v1.Form(this); + com.google.cloud.websecurityscanner.v1.Form result = new com.google.cloud.websecurityscanner.v1.Form(this); int from_bitField0_ = bitField0_; result.actionUri_ = actionUri_; if (((bitField0_ & 0x00000001) != 0)) { @@ -504,39 +462,38 @@ public com.google.cloud.websecurityscanner.v1.Form buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.Form) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.Form) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.Form)other); } else { super.mergeFrom(other); return this; @@ -587,25 +544,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object actionUri_ = ""; /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @return The actionUri. */ public java.lang.String getActionUri() { java.lang.Object ref = actionUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionUri_ = s; return s; @@ -614,21 +568,20 @@ public java.lang.String getActionUri() { } } /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @return The bytes for actionUri. */ - public com.google.protobuf.ByteString getActionUriBytes() { + public com.google.protobuf.ByteString + getActionUriBytes() { java.lang.Object ref = actionUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); actionUri_ = b; return b; } else { @@ -636,112 +589,95 @@ public com.google.protobuf.ByteString getActionUriBytes() { } } /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @param value The actionUri to set. * @return This builder for chaining. */ - public Builder setActionUri(java.lang.String value) { + public Builder setActionUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + actionUri_ = value; onChanged(); return this; } /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @return This builder for chaining. */ public Builder clearActionUri() { - + actionUri_ = getDefaultInstance().getActionUri(); onChanged(); return this; } /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @param value The bytes for actionUri to set. * @return This builder for chaining. */ - public Builder setActionUriBytes(com.google.protobuf.ByteString value) { + public Builder setActionUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + actionUri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList fields_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new com.google.protobuf.LazyStringArrayList(fields_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @return A list containing the fields. */ - public com.google.protobuf.ProtocolStringList getFieldsList() { + public com.google.protobuf.ProtocolStringList + getFieldsList() { return fields_.getUnmodifiableView(); } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @return The count of fields. */ public int getFieldsCount() { return fields_.size(); } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param index The index of the element to return. * @return The fields at the given index. */ @@ -749,90 +685,80 @@ public java.lang.String getFields(int index) { return fields_.get(index); } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - public com.google.protobuf.ByteString getFieldsBytes(int index) { + public com.google.protobuf.ByteString + getFieldsBytes(int index) { return fields_.getByteString(index); } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param index The index to set the value at. * @param value The fields to set. * @return This builder for chaining. */ - public Builder setFields(int index, java.lang.String value) { + public Builder setFields( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); + throw new NullPointerException(); + } + ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param value The fields to add. * @return This builder for chaining. */ - public Builder addFields(java.lang.String value) { + public Builder addFields( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); + throw new NullPointerException(); + } + ensureFieldsIsMutable(); fields_.add(value); onChanged(); return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param values The fields to add. * @return This builder for chaining. */ - public Builder addAllFields(java.lang.Iterable values) { + public Builder addAllFields( + java.lang.Iterable values) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fields_); onChanged(); return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @return This builder for chaining. */ public Builder clearFields() { @@ -842,30 +768,28 @@ public Builder clearFields() { return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param value The bytes of the fields to add. * @return This builder for chaining. */ - public Builder addFieldsBytes(com.google.protobuf.ByteString value) { + public Builder addFieldsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFieldsIsMutable(); fields_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -875,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.Form) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.Form) private static final com.google.cloud.websecurityscanner.v1.Form DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.Form(); } @@ -889,16 +813,16 @@ public static com.google.cloud.websecurityscanner.v1.Form getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser
PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Form parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Form(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Form parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Form(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -913,4 +837,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.Form getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java similarity index 64% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java index 33d3545a..07e70a5b 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java @@ -1,101 +1,70 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface FormOrBuilder - extends +public interface FormOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.Form) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; - * * @return The actionUri. */ java.lang.String getActionUri(); /** - * - * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; - * * @return The bytes for actionUri. */ - com.google.protobuf.ByteString getActionUriBytes(); + com.google.protobuf.ByteString + getActionUriBytes(); /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @return A list containing the fields. */ - java.util.List getFieldsList(); + java.util.List + getFieldsList(); /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @return The count of fields. */ int getFieldsCount(); /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @param index The index of the element to return. * @return The fields at the given index. */ java.lang.String getFields(int index); /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - com.google.protobuf.ByteString getFieldsBytes(int index); + com.google.protobuf.ByteString + getFieldsBytes(int index); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java similarity index 70% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java index e66da3df..82baafda 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `GetFinding` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetFindingRequest} */ -public final class GetFindingRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFindingRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.GetFindingRequest) GetFindingRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFindingRequest.newBuilder() to construct. private GetFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFindingRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetFindingRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private GetFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, - com.google.cloud.websecurityscanner.v1.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1.GetFindingRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
@@ -125,7 +103,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -134,15 +111,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
@@ -150,15 +126,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.GetFindingRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.GetFindingRequest other = - (com.google.cloud.websecurityscanner.v1.GetFindingRequest) obj; + com.google.cloud.websecurityscanner.v1.GetFindingRequest other = (com.google.cloud.websecurityscanner.v1.GetFindingRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.GetFindingRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.GetFindingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetFinding` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetFindingRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.GetFindingRequest) com.google.cloud.websecurityscanner.v1.GetFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, - com.google.cloud.websecurityscanner.v1.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1.GetFindingRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.GetFindingRequest.newBuilder() @@ -359,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; } @java.lang.Override @@ -398,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1.GetFindingRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.GetFindingRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.GetFindingRequest result = - new com.google.cloud.websecurityscanner.v1.GetFindingRequest(this); + com.google.cloud.websecurityscanner.v1.GetFindingRequest result = new com.google.cloud.websecurityscanner.v1.GetFindingRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1.GetFindingRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.GetFindingRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.GetFindingRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.GetFindingRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.GetFindingRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.GetFindingRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.GetFindingRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.GetFindingRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.GetFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -496,13 +458,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -511,8 +473,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -520,14 +480,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -535,8 +496,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -544,22 +503,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -567,18 +524,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -586,23 +540,23 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -612,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.GetFindingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.GetFindingRequest) private static final com.google.cloud.websecurityscanner.v1.GetFindingRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.GetFindingRequest(); } @@ -626,16 +580,16 @@ public static com.google.cloud.websecurityscanner.v1.GetFindingRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFindingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFindingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.GetFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java index cd73cc3a..0b92e26a 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface GetFindingRequestOrBuilder - extends +public interface GetFindingRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.GetFindingRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
@@ -33,13 +15,10 @@ public interface GetFindingRequestOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
@@ -47,8 +26,8 @@ public interface GetFindingRequestOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java index d5a7804d..43355e9f 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `GetScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetScanConfigRequest} */ -public final class GetScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.GetScanConfigRequest) GetScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetScanConfigRequest.newBuilder() to construct. private GetScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private GetScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.GetScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest other = (com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.GetScanConfigRequest) com.google.cloud.websecurityscanner.v1.GetScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.newBuilder() @@ -357,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; } @java.lang.Override @@ -396,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1.GetScanConfigRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.GetScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1.GetScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest result = new com.google.cloud.websecurityscanner.v1.GetScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -407,39 +374,38 @@ public com.google.cloud.websecurityscanner.v1.GetScanConfigRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.GetScanConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -447,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -472,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -508,22 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -531,71 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -605,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.GetScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.GetScanConfigRequest) private static final com.google.cloud.websecurityscanner.v1.GetScanConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.GetScanConfigRequest(); } @@ -619,16 +573,16 @@ public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.GetScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java index 39bbf9c2..eb1926cd 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface GetScanConfigRequestOrBuilder - extends +public interface GetScanConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.GetScanConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java similarity index 70% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java index 7e099644..3d147172 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `GetScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetScanRunRequest} */ -public final class GetScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.GetScanRunRequest) GetScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetScanRunRequest.newBuilder() to construct. private GetScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private GetScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, - com.google.cloud.websecurityscanner.v1.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1.GetScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
@@ -125,7 +103,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -134,15 +111,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
@@ -150,15 +126,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.GetScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.GetScanRunRequest other = - (com.google.cloud.websecurityscanner.v1.GetScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1.GetScanRunRequest other = (com.google.cloud.websecurityscanner.v1.GetScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.GetScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.GetScanRunRequest) com.google.cloud.websecurityscanner.v1.GetScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, - com.google.cloud.websecurityscanner.v1.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1.GetScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.GetScanRunRequest.newBuilder() @@ -359,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; } @java.lang.Override @@ -398,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1.GetScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.GetScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.GetScanRunRequest result = - new com.google.cloud.websecurityscanner.v1.GetScanRunRequest(this); + com.google.cloud.websecurityscanner.v1.GetScanRunRequest result = new com.google.cloud.websecurityscanner.v1.GetScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1.GetScanRunRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.GetScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.GetScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.GetScanRunRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.GetScanRunRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.GetScanRunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.GetScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.GetScanRunRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.GetScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -496,13 +458,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -511,8 +473,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -520,14 +480,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -535,8 +496,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -544,22 +503,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -567,18 +524,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -586,23 +540,23 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -612,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.GetScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.GetScanRunRequest) private static final com.google.cloud.websecurityscanner.v1.GetScanRunRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.GetScanRunRequest(); } @@ -626,16 +580,16 @@ public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.GetScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java index c338f298..46d95644 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface GetScanRunRequestOrBuilder - extends +public interface GetScanRunRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.GetScanRunRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
@@ -33,13 +15,10 @@ public interface GetScanRunRequestOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
@@ -47,8 +26,8 @@ public interface GetScanRunRequestOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java index bd693672..aadb3f56 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest} */ -public final class ListCrawledUrlsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCrawledUrlsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) ListCrawledUrlsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCrawledUrlsRequest.newBuilder() to construct. private ListCrawledUrlsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCrawledUrlsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListCrawledUrlsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListCrawledUrlsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,33 +85,29 @@ private ListCrawledUrlsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -138,7 +115,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -147,15 +123,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -163,15 +138,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -182,8 +158,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -191,7 +165,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -200,15 +173,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -216,15 +188,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -235,8 +208,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -244,7 +215,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -253,7 +223,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +234,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,7 +261,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -301,17 +272,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest other = - (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) obj; + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest other = (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -335,127 +308,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.newBuilder() @@ -463,15 +426,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -485,14 +449,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.getDefaultInstance(); } @@ -507,8 +470,7 @@ public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest result = - new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest(this); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest result = new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -520,39 +482,38 @@ public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest)other); } else { super.mergeFrom(other); return this; @@ -560,9 +521,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -593,9 +552,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -607,8 +564,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -616,13 +571,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -631,8 +586,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -640,14 +593,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -655,8 +609,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -664,22 +616,20 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -687,18 +637,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -706,16 +653,16 @@ public Builder clearParent() {
      * 
* * string parent = 1; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -723,8 +670,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -732,13 +677,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -747,8 +692,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -756,14 +699,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -771,8 +715,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -780,22 +722,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -803,18 +743,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -822,25 +759,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -848,7 +783,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -856,8 +790,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -865,19 +797,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -885,18 +814,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -906,13 +834,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) - private static final com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest(); } @@ -921,16 +848,16 @@ public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -945,4 +872,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java index 9b03c21d..f7e82ce1 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListCrawledUrlsRequestOrBuilder - extends +public interface ListCrawledUrlsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -33,13 +15,10 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -47,14 +26,12 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -62,13 +39,10 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -76,14 +50,12 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -91,7 +63,6 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java index 493adc82..965c2f5f 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Response for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse} */ -public final class ListCrawledUrlsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCrawledUrlsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) ListCrawledUrlsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCrawledUrlsResponse.newBuilder() to construct. private ListCrawledUrlsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCrawledUrlsResponse() { crawledUrls_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListCrawledUrlsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListCrawledUrlsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - crawledUrls_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.CrawledUrl.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + crawledUrls_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + crawledUrls_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1.CrawledUrl.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListCrawledUrlsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); @@ -115,27 +94,22 @@ private ListCrawledUrlsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.Builder.class); } public static final int CRAWLED_URLS_FIELD_NUMBER = 1; private java.util.List crawledUrls_; /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -147,8 +121,6 @@ public java.util.List getCraw return crawledUrls_; } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -156,13 +128,11 @@ public java.util.List getCraw * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCrawledUrlsOrBuilderList() { return crawledUrls_; } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -174,8 +144,6 @@ public int getCrawledUrlsCount() { return crawledUrls_.size(); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -187,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl getCrawledUrls(int inde return crawledUrls_.get(index); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -204,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrls public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -253,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < crawledUrls_.size(); i++) { output.writeMessage(1, crawledUrls_.get(i)); } @@ -282,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < crawledUrls_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, crawledUrls_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, crawledUrls_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -295,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse other = - (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) obj; + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse other = (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) obj; - if (!getCrawledUrlsList().equals(other.getCrawledUrlsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getCrawledUrlsList() + .equals(other.getCrawledUrlsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.newBuilder() @@ -456,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCrawledUrlsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.getDefaultInstance(); } @@ -504,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse result = - new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse(this); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse result = new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse(this); int from_bitField0_ = bitField0_; if (crawledUrlsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -525,39 +478,38 @@ public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse)other); } else { super.mergeFrom(other); return this; @@ -565,9 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.getDefaultInstance()) return this; if (crawledUrlsBuilder_ == null) { if (!other.crawledUrls_.isEmpty()) { if (crawledUrls_.isEmpty()) { @@ -586,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsR crawledUrlsBuilder_ = null; crawledUrls_ = other.crawledUrls_; bitField0_ = (bitField0_ & ~0x00000001); - crawledUrlsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCrawledUrlsFieldBuilder() - : null; + crawledUrlsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCrawledUrlsFieldBuilder() : null; } else { crawledUrlsBuilder_.addAllMessages(other.crawledUrls_); } @@ -618,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -629,30 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List crawledUrls_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCrawledUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = - new java.util.ArrayList( - crawledUrls_); + crawledUrls_ = new java.util.ArrayList(crawledUrls_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.CrawledUrl, - com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder> - crawledUrlsBuilder_; + com.google.cloud.websecurityscanner.v1.CrawledUrl, com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder> crawledUrlsBuilder_; /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -667,8 +605,6 @@ public java.util.List getCraw } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -683,8 +619,6 @@ public int getCrawledUrlsCount() { } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -699,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl getCrawledUrls(int inde } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -722,8 +654,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -742,8 +672,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -764,8 +692,6 @@ public Builder addCrawledUrls(com.google.cloud.websecurityscanner.v1.CrawledUrl return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -787,8 +713,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -807,8 +731,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -827,8 +749,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -839,7 +759,8 @@ public Builder addAllCrawledUrls( java.lang.Iterable values) { if (crawledUrlsBuilder_ == null) { ensureCrawledUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crawledUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, crawledUrls_); onChanged(); } else { crawledUrlsBuilder_.addAllMessages(values); @@ -847,8 +768,6 @@ public Builder addAllCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -866,8 +785,6 @@ public Builder clearCrawledUrls() { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -885,8 +802,6 @@ public Builder removeCrawledUrls(int index) { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -898,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder getCrawledUrlsB return getCrawledUrlsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -909,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder getCrawledUrlsB public com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrlsOrBuilder( int index) { if (crawledUrlsBuilder_ == null) { - return crawledUrls_.get(index); - } else { + return crawledUrls_.get(index); } else { return crawledUrlsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsOrBuilderList() { + public java.util.List + getCrawledUrlsOrBuilderList() { if (crawledUrlsBuilder_ != null) { return crawledUrlsBuilder_.getMessageOrBuilderList(); } else { @@ -932,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrls } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -941,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrls * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder addCrawledUrlsBuilder() { - return getCrawledUrlsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance()); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -955,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder addCrawledUrlsB */ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder addCrawledUrlsBuilder( int index) { - return getCrawledUrlsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance()); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsBuilderList() { + public java.util.List + getCrawledUrlsBuilderList() { return getCrawledUrlsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.CrawledUrl, - com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder> + com.google.cloud.websecurityscanner.v1.CrawledUrl, com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder> getCrawledUrlsFieldBuilder() { if (crawledUrlsBuilder_ == null) { - crawledUrlsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.CrawledUrl, - com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder>( - crawledUrls_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + crawledUrlsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.CrawledUrl, com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder>( + crawledUrls_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); crawledUrls_ = null; } return crawledUrlsBuilder_; @@ -992,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder addCrawledUrlsB private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1015,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1038,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) - private static final com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse(); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java index e59fc74d..f89e91b7 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListCrawledUrlsResponseOrBuilder - extends +public interface ListCrawledUrlsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ - java.util.List getCrawledUrlsList(); + java.util.List + getCrawledUrlsList(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -44,8 +25,6 @@ public interface ListCrawledUrlsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1.CrawledUrl getCrawledUrls(int index); /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -54,51 +33,43 @@ public interface ListCrawledUrlsResponseOrBuilder */ int getCrawledUrlsCount(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ - java.util.List + java.util.List getCrawledUrlsOrBuilderList(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ - com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrlsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrlsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java index 7b642cfe..e2d3160e 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest} */ -public final class ListFindingTypeStatsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingTypeStatsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) ListFindingTypeStatsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsRequest.newBuilder() to construct. private ListFindingTypeStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingTypeStatsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingTypeStatsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private ListFindingTypeStatsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private ListFindingTypeStatsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -125,7 +103,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -134,15 +111,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -150,15 +126,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -167,7 +144,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -203,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest other = - (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) obj; + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest other = (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,145 +208,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,16 +345,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.getDefaultInstance(); } @java.lang.Override @@ -402,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest result = - new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest(this); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest result = new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -413,51 +376,46 @@ public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -481,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -495,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -504,13 +458,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -519,8 +473,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -528,14 +480,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -543,8 +496,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -552,22 +503,20 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -575,18 +524,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -594,23 +540,23 @@ public Builder clearParent() {
      * 
* * string parent = 1; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -620,32 +566,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) - private static final com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest(); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,8 +601,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java index d75bddba..d00ea56d 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListFindingTypeStatsRequestOrBuilder - extends +public interface ListFindingTypeStatsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -33,13 +15,10 @@ public interface ListFindingTypeStatsRequestOrBuilder
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -47,8 +26,8 @@ public interface ListFindingTypeStatsRequestOrBuilder
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java index adda8b2d..11a5f4fa 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Response for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse} */ -public final class ListFindingTypeStatsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingTypeStatsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) ListFindingTypeStatsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsResponse.newBuilder() to construct. private ListFindingTypeStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingTypeStatsResponse() { findingTypeStats_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingTypeStatsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private ListFindingTypeStatsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1.FindingTypeStats>(); - mutable_bitField0_ |= 0x00000001; - } - findingTypeStats_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.FindingTypeStats.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findingTypeStats_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + findingTypeStats_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1.FindingTypeStats.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private ListFindingTypeStatsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); @@ -108,100 +87,80 @@ private ListFindingTypeStatsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.Builder.class); } public static final int FINDING_TYPE_STATS_FIELD_NUMBER = 1; private java.util.List findingTypeStats_; /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public java.util.List - getFindingTypeStatsList() { + public java.util.List getFindingTypeStatsList() { return findingTypeStats_; } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFindingTypeStatsOrBuilderList() { return findingTypeStats_; } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override public int getFindingTypeStatsCount() { return findingTypeStats_.size(); } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.FindingTypeStats getFindingTypeStats(int index) { return findingTypeStats_.get(index); } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder - getFindingTypeStatsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( + int index) { return findingTypeStats_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < findingTypeStats_.size(); i++) { output.writeMessage(1, findingTypeStats_.get(i)); } @@ -227,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findingTypeStats_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findingTypeStats_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, findingTypeStats_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -237,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse other = - (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) obj; + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse other = (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) obj; - if (!getFindingTypeStatsList().equals(other.getFindingTypeStatsList())) return false; + if (!getFindingTypeStatsList() + .equals(other.getFindingTypeStatsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,147 +228,135 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFindingTypeStatsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -421,16 +370,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.getDefaultInstance(); } @java.lang.Override @@ -444,8 +391,7 @@ public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse build @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse result = - new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse(this); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse result = new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse(this); int from_bitField0_ = bitField0_; if (findingTypeStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -464,51 +410,46 @@ public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.getDefaultInstance()) return this; if (findingTypeStatsBuilder_ == null) { if (!other.findingTypeStats_.isEmpty()) { if (findingTypeStats_.isEmpty()) { @@ -527,10 +468,9 @@ public Builder mergeFrom( findingTypeStatsBuilder_ = null; findingTypeStats_ = other.findingTypeStats_; bitField0_ = (bitField0_ & ~0x00000001); - findingTypeStatsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFindingTypeStatsFieldBuilder() - : null; + findingTypeStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFindingTypeStatsFieldBuilder() : null; } else { findingTypeStatsBuilder_.addAllMessages(other.findingTypeStats_); } @@ -555,9 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -566,39 +504,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - findingTypeStats_ = java.util.Collections.emptyList(); - + private java.util.List findingTypeStats_ = + java.util.Collections.emptyList(); private void ensureFindingTypeStatsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = - new java.util.ArrayList( - findingTypeStats_); + findingTypeStats_ = new java.util.ArrayList(findingTypeStats_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.FindingTypeStats, - com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder> - findingTypeStatsBuilder_; + com.google.cloud.websecurityscanner.v1.FindingTypeStats, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder> findingTypeStatsBuilder_; /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - public java.util.List - getFindingTypeStatsList() { + public java.util.List getFindingTypeStatsList() { if (findingTypeStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(findingTypeStats_); } else { @@ -606,14 +533,11 @@ private void ensureFindingTypeStatsIsMutable() { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public int getFindingTypeStatsCount() { if (findingTypeStatsBuilder_ == null) { @@ -623,14 +547,11 @@ public int getFindingTypeStatsCount() { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public com.google.cloud.websecurityscanner.v1.FindingTypeStats getFindingTypeStats(int index) { if (findingTypeStatsBuilder_ == null) { @@ -640,14 +561,11 @@ public com.google.cloud.websecurityscanner.v1.FindingTypeStats getFindingTypeSta } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public Builder setFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1.FindingTypeStats value) { @@ -664,18 +582,14 @@ public Builder setFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public Builder setFindingTypeStats( - int index, - com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.set(index, builderForValue.build()); @@ -686,17 +600,13 @@ public Builder setFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - public Builder addFindingTypeStats( - com.google.cloud.websecurityscanner.v1.FindingTypeStats value) { + public Builder addFindingTypeStats(com.google.cloud.websecurityscanner.v1.FindingTypeStats value) { if (findingTypeStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -710,14 +620,11 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1.FindingTypeStats value) { @@ -734,14 +641,11 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder builderForValue) { @@ -755,18 +659,14 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( - int index, - com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.add(index, builderForValue.build()); @@ -777,21 +677,18 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public Builder addAllFindingTypeStats( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findingTypeStats_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, findingTypeStats_); onChanged(); } else { findingTypeStatsBuilder_.addAllMessages(values); @@ -799,14 +696,11 @@ public Builder addAllFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public Builder clearFindingTypeStats() { if (findingTypeStatsBuilder_ == null) { @@ -819,14 +713,11 @@ public Builder clearFindingTypeStats() { return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ public Builder removeFindingTypeStats(int index) { if (findingTypeStatsBuilder_ == null) { @@ -839,50 +730,39 @@ public Builder removeFindingTypeStats(int index) { return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder - getFindingTypeStatsBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder getFindingTypeStatsBuilder( + int index) { return getFindingTypeStatsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder - getFindingTypeStatsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( + int index) { if (findingTypeStatsBuilder_ == null) { - return findingTypeStats_.get(index); - } else { + return findingTypeStats_.get(index); } else { return findingTypeStatsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder> - getFindingTypeStatsOrBuilderList() { + public java.util.List + getFindingTypeStatsOrBuilderList() { if (findingTypeStatsBuilder_ != null) { return findingTypeStatsBuilder_.getMessageOrBuilderList(); } else { @@ -890,62 +770,45 @@ public Builder removeFindingTypeStats(int index) { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder - addFindingTypeStatsBuilder() { - return getFindingTypeStatsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder addFindingTypeStatsBuilder() { + return getFindingTypeStatsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance()); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder - addFindingTypeStatsBuilder(int index) { - return getFindingTypeStatsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder addFindingTypeStatsBuilder( + int index) { + return getFindingTypeStatsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance()); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - public java.util.List - getFindingTypeStatsBuilderList() { + public java.util.List + getFindingTypeStatsBuilderList() { return getFindingTypeStatsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.FindingTypeStats, - com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder> + com.google.cloud.websecurityscanner.v1.FindingTypeStats, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder> getFindingTypeStatsFieldBuilder() { if (findingTypeStatsBuilder_ == null) { - findingTypeStatsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.FindingTypeStats, - com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder>( + findingTypeStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.FindingTypeStats, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder>( findingTypeStats_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -954,9 +817,9 @@ public Builder removeFindingTypeStats(int index) { } return findingTypeStatsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -966,32 +829,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) - private static final com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse(); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1003,8 +864,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java similarity index 59% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java index 26d4bdd6..7a7d5d41 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java @@ -1,82 +1,52 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListFindingTypeStatsResponseOrBuilder - extends +public interface ListFindingTypeStatsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - java.util.List getFindingTypeStatsList(); + java.util.List + getFindingTypeStatsList(); /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ com.google.cloud.websecurityscanner.v1.FindingTypeStats getFindingTypeStats(int index); /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ int getFindingTypeStatsCount(); /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ - java.util.List + java.util.List getFindingTypeStatsOrBuilderList(); /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; */ com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( int index); diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java similarity index 74% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java index 31fca16b..e494034d 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingsRequest} */ -public final class ListFindingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListFindingsRequest) ListFindingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsRequest.newBuilder() to construct. private ListFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListFindingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 32: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 32: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,33 +92,29 @@ private ListFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, - com.google.cloud.websecurityscanner.v1.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1.ListFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -146,7 +122,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -155,15 +130,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -171,15 +145,16 @@ public java.lang.String getParent() {
    * 
* * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -190,8 +165,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -200,7 +173,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -209,15 +181,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -226,15 +197,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -245,8 +217,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -254,7 +224,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -263,15 +232,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -279,15 +247,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -298,8 +267,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -307,7 +274,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -316,7 +282,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,7 +293,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -360,7 +326,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -370,18 +337,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListFindingsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListFindingsRequest other = - (com.google.cloud.websecurityscanner.v1.ListFindingsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + com.google.cloud.websecurityscanner.v1.ListFindingsRequest other = (com.google.cloud.websecurityscanner.v1.ListFindingsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -407,127 +377,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListFindingsRequest) com.google.cloud.websecurityscanner.v1.ListFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, - com.google.cloud.websecurityscanner.v1.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1.ListFindingsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListFindingsRequest.newBuilder() @@ -535,15 +495,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -559,9 +520,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; } @java.lang.Override @@ -580,8 +541,7 @@ public com.google.cloud.websecurityscanner.v1.ListFindingsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListFindingsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.ListFindingsRequest result = - new com.google.cloud.websecurityscanner.v1.ListFindingsRequest(this); + com.google.cloud.websecurityscanner.v1.ListFindingsRequest result = new com.google.cloud.websecurityscanner.v1.ListFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageToken_ = pageToken_; @@ -594,39 +554,38 @@ public com.google.cloud.websecurityscanner.v1.ListFindingsRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListFindingsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingsRequest)other); } else { super.mergeFrom(other); return this; @@ -634,8 +593,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.ListFindingsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ListFindingsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -670,8 +628,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListFindingsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -683,8 +640,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -692,13 +647,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -707,8 +662,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -716,14 +669,15 @@ public java.lang.String getParent() {
      * 
* * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -731,8 +685,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -740,22 +692,20 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -763,18 +713,15 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -782,16 +729,16 @@ public Builder clearParent() {
      * 
* * string parent = 1; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -799,8 +746,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -809,13 +754,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -824,8 +769,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -834,14 +777,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -849,8 +793,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -859,22 +801,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -883,18 +823,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -903,16 +840,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -920,8 +857,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -929,13 +864,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -944,8 +879,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -953,14 +886,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -968,8 +902,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -977,22 +909,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -1000,18 +930,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -1019,25 +946,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1045,7 +970,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -1053,8 +977,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1062,19 +984,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1082,18 +1001,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1103,12 +1021,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListFindingsRequest) private static final com.google.cloud.websecurityscanner.v1.ListFindingsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListFindingsRequest(); } @@ -1117,16 +1035,16 @@ public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1141,4 +1059,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java index c15c0164..7e5d643b 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListFindingsRequestOrBuilder - extends +public interface ListFindingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListFindingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -33,13 +15,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -47,14 +26,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -63,13 +40,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -78,14 +52,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -93,13 +65,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -107,14 +76,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -122,7 +89,6 @@ public interface ListFindingsRequestOrBuilder
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java index c21c582c..40fd04b2 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Response for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingsResponse} */ -public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListFindingsResponse) ListFindingsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsResponse.newBuilder() to construct. private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsResponse() { findings_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListFindingsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findings_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - findings_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.Finding.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findings_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + findings_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1.Finding.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -114,27 +94,22 @@ private ListFindingsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, - com.google.cloud.websecurityscanner.v1.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1.ListFindingsResponse.Builder.class); } public static final int FINDINGS_FIELD_NUMBER = 1; private java.util.List findings_; /** - * - * *
    * The list of Findings returned.
    * 
@@ -146,8 +121,6 @@ public java.util.List getFinding return findings_; } /** - * - * *
    * The list of Findings returned.
    * 
@@ -155,13 +128,11 @@ public java.util.List getFinding * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFindingsOrBuilderList() { return findings_; } /** - * - * *
    * The list of Findings returned.
    * 
@@ -173,8 +144,6 @@ public int getFindingsCount() { return findings_.size(); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1.Finding getFindings(int index) { return findings_.get(index); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -195,22 +162,20 @@ public com.google.cloud.websecurityscanner.v1.Finding getFindings(int index) { * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder( + int index) { return findings_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -219,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -251,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < findings_.size(); i++) { output.writeMessage(1, findings_.get(i)); } @@ -280,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findings_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, findings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -293,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListFindingsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListFindingsResponse other = - (com.google.cloud.websecurityscanner.v1.ListFindingsResponse) obj; + com.google.cloud.websecurityscanner.v1.ListFindingsResponse other = (com.google.cloud.websecurityscanner.v1.ListFindingsResponse) obj; - if (!getFindingsList().equals(other.getFindingsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getFindingsList() + .equals(other.getFindingsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListFindingsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListFindingsResponse) com.google.cloud.websecurityscanner.v1.ListFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, - com.google.cloud.websecurityscanner.v1.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1.ListFindingsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListFindingsResponse.newBuilder() @@ -454,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFindingsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; } @java.lang.Override @@ -501,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1.ListFindingsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListFindingsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1.ListFindingsResponse result = - new com.google.cloud.websecurityscanner.v1.ListFindingsResponse(this); + com.google.cloud.websecurityscanner.v1.ListFindingsResponse result = new com.google.cloud.websecurityscanner.v1.ListFindingsResponse(this); int from_bitField0_ = bitField0_; if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -522,39 +478,38 @@ public com.google.cloud.websecurityscanner.v1.ListFindingsResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListFindingsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingsResponse)other); } else { super.mergeFrom(other); return this; @@ -562,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1.ListFindingsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ListFindingsResponse.getDefaultInstance()) return this; if (findingsBuilder_ == null) { if (!other.findings_.isEmpty()) { if (findings_.isEmpty()) { @@ -582,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingsResp findingsBuilder_ = null; findings_ = other.findings_; bitField0_ = (bitField0_ & ~0x00000001); - findingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFindingsFieldBuilder() - : null; + findingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFindingsFieldBuilder() : null; } else { findingsBuilder_.addAllMessages(other.findings_); } @@ -614,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListFindingsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List findings_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFindingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findings_ = - new java.util.ArrayList(findings_); + findings_ = new java.util.ArrayList(findings_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Finding, - com.google.cloud.websecurityscanner.v1.Finding.Builder, - com.google.cloud.websecurityscanner.v1.FindingOrBuilder> - findingsBuilder_; + com.google.cloud.websecurityscanner.v1.Finding, com.google.cloud.websecurityscanner.v1.Finding.Builder, com.google.cloud.websecurityscanner.v1.FindingOrBuilder> findingsBuilder_; /** - * - * *
      * The list of Findings returned.
      * 
@@ -661,8 +605,6 @@ public java.util.List getFinding } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -677,8 +619,6 @@ public int getFindingsCount() { } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -693,15 +633,14 @@ public com.google.cloud.websecurityscanner.v1.Finding getFindings(int index) { } } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public Builder setFindings(int index, com.google.cloud.websecurityscanner.v1.Finding value) { + public Builder setFindings( + int index, com.google.cloud.websecurityscanner.v1.Finding value) { if (findingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -715,8 +654,6 @@ public Builder setFindings(int index, com.google.cloud.websecurityscanner.v1.Fin return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -735,8 +672,6 @@ public Builder setFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -757,15 +692,14 @@ public Builder addFindings(com.google.cloud.websecurityscanner.v1.Finding value) return this; } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public Builder addFindings(int index, com.google.cloud.websecurityscanner.v1.Finding value) { + public Builder addFindings( + int index, com.google.cloud.websecurityscanner.v1.Finding value) { if (findingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -779,8 +713,6 @@ public Builder addFindings(int index, com.google.cloud.websecurityscanner.v1.Fin return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -799,8 +731,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -819,8 +749,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -831,7 +759,8 @@ public Builder addAllFindings( java.lang.Iterable values) { if (findingsBuilder_ == null) { ensureFindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, findings_); onChanged(); } else { findingsBuilder_.addAllMessages(values); @@ -839,8 +768,6 @@ public Builder addAllFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -858,8 +785,6 @@ public Builder clearFindings() { return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -877,44 +802,39 @@ public Builder removeFindings(int index) { return this; } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public com.google.cloud.websecurityscanner.v1.Finding.Builder getFindingsBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.Finding.Builder getFindingsBuilder( + int index) { return getFindingsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder( + int index) { if (findingsBuilder_ == null) { - return findings_.get(index); - } else { + return findings_.get(index); } else { return findingsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public java.util.List - getFindingsOrBuilderList() { + public java.util.List + getFindingsOrBuilderList() { if (findingsBuilder_ != null) { return findingsBuilder_.getMessageOrBuilderList(); } else { @@ -922,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuil } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -931,48 +849,42 @@ public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuil * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ public com.google.cloud.websecurityscanner.v1.Finding.Builder addFindingsBuilder() { - return getFindingsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance()); + return getFindingsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance()); } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public com.google.cloud.websecurityscanner.v1.Finding.Builder addFindingsBuilder(int index) { - return getFindingsFieldBuilder() - .addBuilder(index, com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.Finding.Builder addFindingsBuilder( + int index) { + return getFindingsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance()); } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public java.util.List - getFindingsBuilderList() { + public java.util.List + getFindingsBuilderList() { return getFindingsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Finding, - com.google.cloud.websecurityscanner.v1.Finding.Builder, - com.google.cloud.websecurityscanner.v1.FindingOrBuilder> + com.google.cloud.websecurityscanner.v1.Finding, com.google.cloud.websecurityscanner.v1.Finding.Builder, com.google.cloud.websecurityscanner.v1.FindingOrBuilder> getFindingsFieldBuilder() { if (findingsBuilder_ == null) { - findingsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Finding, - com.google.cloud.websecurityscanner.v1.Finding.Builder, - com.google.cloud.websecurityscanner.v1.FindingOrBuilder>( - findings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + findingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.Finding, com.google.cloud.websecurityscanner.v1.Finding.Builder, com.google.cloud.websecurityscanner.v1.FindingOrBuilder>( + findings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); findings_ = null; } return findingsBuilder_; @@ -980,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1.Finding.Builder addFindingsBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1003,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1026,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListFindingsResponse) private static final com.google.cloud.websecurityscanner.v1.ListFindingsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListFindingsResponse(); } @@ -1114,16 +1016,16 @@ public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1138,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java index 84050db4..c01bc8a1 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListFindingsResponseOrBuilder - extends +public interface ListFindingsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListFindingsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - java.util.List getFindingsList(); + java.util.List + getFindingsList(); /** - * - * *
    * The list of Findings returned.
    * 
@@ -44,8 +25,6 @@ public interface ListFindingsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1.Finding getFindings(int index); /** - * - * *
    * The list of Findings returned.
    * 
@@ -54,51 +33,43 @@ public interface ListFindingsResponseOrBuilder */ int getFindingsCount(); /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - java.util.List + java.util.List getFindingsOrBuilderList(); /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java index af5313b8..e4e99721 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanConfigsRequest} */ -public final class ListScanConfigsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListScanConfigsRequest) ListScanConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanConfigsRequest.newBuilder() to construct. private ListScanConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanConfigsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListScanConfigsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,40 +85,35 @@ private ListScanConfigsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -146,30 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -180,8 +156,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -189,7 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -198,15 +171,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -214,15 +186,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -233,8 +206,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -242,7 +213,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -251,7 +221,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -289,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -299,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest other = - (com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) obj; + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest other = (com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,127 +306,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanConfigsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListScanConfigsRequest) com.google.cloud.websecurityscanner.v1.ListScanConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.newBuilder() @@ -461,15 +424,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,14 +447,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.getDefaultInstance(); } @@ -505,8 +468,7 @@ public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest result = - new com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest(this); + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest result = new com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -518,39 +480,38 @@ public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest)other); } else { super.mergeFrom(other); return this; @@ -558,9 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -591,9 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -605,21 +562,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -628,22 +583,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -651,64 +605,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* * string parent = 1; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -716,8 +663,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -725,13 +670,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -740,8 +685,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -749,14 +692,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -764,8 +708,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -773,22 +715,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -796,18 +736,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -815,25 +752,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -841,7 +776,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -849,8 +783,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -858,19 +790,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -878,18 +807,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -899,13 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListScanConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListScanConfigsRequest) - private static final com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest(); } @@ -914,16 +841,16 @@ public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -938,4 +865,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java index 5b17e58e..8f4b7503 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListScanConfigsRequestOrBuilder - extends +public interface ListScanConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListScanConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -60,13 +37,10 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -74,14 +48,12 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -89,7 +61,6 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java index 779fa701..2df50469 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Response for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanConfigsResponse} */ -public final class ListScanConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListScanConfigsResponse) ListScanConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanConfigsResponse.newBuilder() to construct. private ListScanConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanConfigsResponse() { scanConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanConfigsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListScanConfigsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - scanConfigs_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + scanConfigs_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListScanConfigsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); @@ -115,27 +94,22 @@ private ListScanConfigsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.Builder.class); } public static final int SCAN_CONFIGS_FIELD_NUMBER = 1; private java.util.List scanConfigs_; /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -147,8 +121,6 @@ public java.util.List getScan return scanConfigs_; } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -156,13 +128,11 @@ public java.util.List getScan * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanConfigsOrBuilderList() { return scanConfigs_; } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -174,8 +144,6 @@ public int getScanConfigsCount() { return scanConfigs_.size(); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -187,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfigs(int inde return scanConfigs_.get(index); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -204,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigs public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -253,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < scanConfigs_.size(); i++) { output.writeMessage(1, scanConfigs_.get(i)); } @@ -282,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, scanConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -295,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse other = - (com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) obj; + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse other = (com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) obj; - if (!getScanConfigsList().equals(other.getScanConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getScanConfigsList() + .equals(other.getScanConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanConfigsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListScanConfigsResponse) com.google.cloud.websecurityscanner.v1.ListScanConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.newBuilder() @@ -456,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getScanConfigsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.getDefaultInstance(); } @@ -504,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse result = - new com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse(this); + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse result = new com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse(this); int from_bitField0_ = bitField0_; if (scanConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -525,39 +478,38 @@ public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse)other); } else { super.mergeFrom(other); return this; @@ -565,9 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.getDefaultInstance()) return this; if (scanConfigsBuilder_ == null) { if (!other.scanConfigs_.isEmpty()) { if (scanConfigs_.isEmpty()) { @@ -586,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanConfigsR scanConfigsBuilder_ = null; scanConfigs_ = other.scanConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - scanConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getScanConfigsFieldBuilder() - : null; + scanConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getScanConfigsFieldBuilder() : null; } else { scanConfigsBuilder_.addAllMessages(other.scanConfigs_); } @@ -618,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -629,30 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List scanConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureScanConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = - new java.util.ArrayList( - scanConfigs_); + scanConfigs_ = new java.util.ArrayList(scanConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> - scanConfigsBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> scanConfigsBuilder_; /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -667,8 +605,6 @@ public java.util.List getScan } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -683,8 +619,6 @@ public int getScanConfigsCount() { } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -699,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfigs(int inde } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -722,8 +654,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -742,8 +672,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -764,8 +692,6 @@ public Builder addScanConfigs(com.google.cloud.websecurityscanner.v1.ScanConfig return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -787,8 +713,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -807,8 +731,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -827,8 +749,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -839,7 +759,8 @@ public Builder addAllScanConfigs( java.lang.Iterable values) { if (scanConfigsBuilder_ == null) { ensureScanConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scanConfigs_); onChanged(); } else { scanConfigsBuilder_.addAllMessages(values); @@ -847,8 +768,6 @@ public Builder addAllScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -866,8 +785,6 @@ public Builder clearScanConfigs() { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -885,8 +802,6 @@ public Builder removeScanConfigs(int index) { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -898,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigsB return getScanConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -909,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigsB public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigsOrBuilder( int index) { if (scanConfigsBuilder_ == null) { - return scanConfigs_.get(index); - } else { + return scanConfigs_.get(index); } else { return scanConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsOrBuilderList() { + public java.util.List + getScanConfigsOrBuilderList() { if (scanConfigsBuilder_ != null) { return scanConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -932,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigs } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -941,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigs * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder addScanConfigsBuilder() { - return getScanConfigsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -955,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder addScanConfigsB */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder addScanConfigsBuilder( int index) { - return getScanConfigsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsBuilderList() { + public java.util.List + getScanConfigsBuilderList() { return getScanConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> getScanConfigsFieldBuilder() { if (scanConfigsBuilder_ == null) { - scanConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>( - scanConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + scanConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>( + scanConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); scanConfigs_ = null; } return scanConfigsBuilder_; @@ -992,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder addScanConfigsB private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1015,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1038,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListScanConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListScanConfigsResponse) - private static final com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse(); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java index 37f677ab..8292317f 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListScanConfigsResponseOrBuilder - extends +public interface ListScanConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListScanConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ - java.util.List getScanConfigsList(); + java.util.List + getScanConfigsList(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -44,8 +25,6 @@ public interface ListScanConfigsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfigs(int index); /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -54,51 +33,43 @@ public interface ListScanConfigsResponseOrBuilder */ int getScanConfigsCount(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ - java.util.List + java.util.List getScanConfigsOrBuilderList(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ - com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java index f6629344..efd0dc93 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanRunsRequest} */ -public final class ListScanRunsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanRunsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListScanRunsRequest) ListScanRunsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanRunsRequest.newBuilder() to construct. private ListScanRunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanRunsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanRunsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListScanRunsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,40 +85,35 @@ private ListScanRunsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -146,30 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -180,8 +156,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -189,7 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -198,15 +171,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -214,15 +186,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -233,8 +206,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -242,7 +213,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -251,7 +221,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -289,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -299,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListScanRunsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest other = - (com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) obj; + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest other = (com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,127 +306,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanRunsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListScanRunsRequest) com.google.cloud.websecurityscanner.v1.ListScanRunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.newBuilder() @@ -461,15 +424,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,9 +447,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; } @java.lang.Override @@ -504,8 +468,7 @@ public com.google.cloud.websecurityscanner.v1.ListScanRunsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListScanRunsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest result = - new com.google.cloud.websecurityscanner.v1.ListScanRunsRequest(this); + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest result = new com.google.cloud.websecurityscanner.v1.ListScanRunsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -517,39 +480,38 @@ public com.google.cloud.websecurityscanner.v1.ListScanRunsRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanRunsRequest)other); } else { super.mergeFrom(other); return this; @@ -557,8 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -589,8 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -602,21 +562,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string parent = 1; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -625,22 +583,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -648,64 +605,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string parent = 1; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -713,8 +663,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -722,13 +670,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -737,8 +685,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -746,14 +692,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -761,8 +708,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -770,22 +715,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -793,18 +736,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -812,25 +752,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -838,7 +776,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -846,8 +783,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -855,19 +790,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -875,18 +807,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -896,12 +827,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListScanRunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListScanRunsRequest) private static final com.google.cloud.websecurityscanner.v1.ListScanRunsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListScanRunsRequest(); } @@ -910,16 +841,16 @@ public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -934,4 +865,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListScanRunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java index bc5e59d7..a460a3f6 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListScanRunsRequestOrBuilder - extends +public interface ListScanRunsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListScanRunsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -60,13 +37,10 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -74,14 +48,12 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -89,7 +61,6 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java index 2525eb9f..26db2ce2 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Response for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanRunsResponse} */ -public final class ListScanRunsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanRunsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListScanRunsResponse) ListScanRunsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanRunsResponse.newBuilder() to construct. private ListScanRunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanRunsResponse() { scanRuns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanRunsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListScanRunsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanRuns_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - scanRuns_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanRun.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanRuns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + scanRuns_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1.ScanRun.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListScanRunsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); @@ -114,27 +94,22 @@ private ListScanRunsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.Builder.class); } public static final int SCAN_RUNS_FIELD_NUMBER = 1; private java.util.List scanRuns_; /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -146,8 +121,6 @@ public java.util.List getScanRun return scanRuns_; } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -155,13 +128,11 @@ public java.util.List getScanRun * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanRunsOrBuilderList() { return scanRuns_; } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -173,8 +144,6 @@ public int getScanRunsCount() { return scanRuns_.size(); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1.ScanRun getScanRuns(int index) { return scanRuns_.get(index); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -195,22 +162,20 @@ public com.google.cloud.websecurityscanner.v1.ScanRun getScanRuns(int index) { * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder( + int index) { return scanRuns_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -219,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -251,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < scanRuns_.size(); i++) { output.writeMessage(1, scanRuns_.get(i)); } @@ -280,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanRuns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanRuns_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, scanRuns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -293,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListScanRunsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse other = - (com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) obj; + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse other = (com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) obj; - if (!getScanRunsList().equals(other.getScanRunsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getScanRunsList() + .equals(other.getScanRunsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListScanRunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanRunsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListScanRunsResponse) com.google.cloud.websecurityscanner.v1.ListScanRunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.newBuilder() @@ -454,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getScanRunsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; } @java.lang.Override @@ -501,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse result = - new com.google.cloud.websecurityscanner.v1.ListScanRunsResponse(this); + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse result = new com.google.cloud.websecurityscanner.v1.ListScanRunsResponse(this); int from_bitField0_ = bitField0_; if (scanRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -522,39 +478,38 @@ public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanRunsResponse)other); } else { super.mergeFrom(other); return this; @@ -562,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanRunsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.getDefaultInstance()) return this; if (scanRunsBuilder_ == null) { if (!other.scanRuns_.isEmpty()) { if (scanRuns_.isEmpty()) { @@ -582,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanRunsResp scanRunsBuilder_ = null; scanRuns_ = other.scanRuns_; bitField0_ = (bitField0_ & ~0x00000001); - scanRunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getScanRunsFieldBuilder() - : null; + scanRunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getScanRunsFieldBuilder() : null; } else { scanRunsBuilder_.addAllMessages(other.scanRuns_); } @@ -614,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List scanRuns_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureScanRunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanRuns_ = - new java.util.ArrayList(scanRuns_); + scanRuns_ = new java.util.ArrayList(scanRuns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRun, - com.google.cloud.websecurityscanner.v1.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder> - scanRunsBuilder_; + com.google.cloud.websecurityscanner.v1.ScanRun, com.google.cloud.websecurityscanner.v1.ScanRun.Builder, com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder> scanRunsBuilder_; /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -661,8 +605,6 @@ public java.util.List getScanRun } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -677,8 +619,6 @@ public int getScanRunsCount() { } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -693,15 +633,14 @@ public com.google.cloud.websecurityscanner.v1.ScanRun getScanRuns(int index) { } } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public Builder setScanRuns(int index, com.google.cloud.websecurityscanner.v1.ScanRun value) { + public Builder setScanRuns( + int index, com.google.cloud.websecurityscanner.v1.ScanRun value) { if (scanRunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -715,8 +654,6 @@ public Builder setScanRuns(int index, com.google.cloud.websecurityscanner.v1.Sca return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -735,8 +672,6 @@ public Builder setScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -757,15 +692,14 @@ public Builder addScanRuns(com.google.cloud.websecurityscanner.v1.ScanRun value) return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public Builder addScanRuns(int index, com.google.cloud.websecurityscanner.v1.ScanRun value) { + public Builder addScanRuns( + int index, com.google.cloud.websecurityscanner.v1.ScanRun value) { if (scanRunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -779,8 +713,6 @@ public Builder addScanRuns(int index, com.google.cloud.websecurityscanner.v1.Sca return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -799,8 +731,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -819,8 +749,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -831,7 +759,8 @@ public Builder addAllScanRuns( java.lang.Iterable values) { if (scanRunsBuilder_ == null) { ensureScanRunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanRuns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scanRuns_); onChanged(); } else { scanRunsBuilder_.addAllMessages(values); @@ -839,8 +768,6 @@ public Builder addAllScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -858,8 +785,6 @@ public Builder clearScanRuns() { return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -877,44 +802,39 @@ public Builder removeScanRuns(int index) { return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public com.google.cloud.websecurityscanner.v1.ScanRun.Builder getScanRunsBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.ScanRun.Builder getScanRunsBuilder( + int index) { return getScanRunsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder( + int index) { if (scanRunsBuilder_ == null) { - return scanRuns_.get(index); - } else { + return scanRuns_.get(index); } else { return scanRunsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsOrBuilderList() { + public java.util.List + getScanRunsOrBuilderList() { if (scanRunsBuilder_ != null) { return scanRunsBuilder_.getMessageOrBuilderList(); } else { @@ -922,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuil } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -931,48 +849,42 @@ public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuil * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ public com.google.cloud.websecurityscanner.v1.ScanRun.Builder addScanRunsBuilder() { - return getScanRunsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance()); + return getScanRunsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance()); } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public com.google.cloud.websecurityscanner.v1.ScanRun.Builder addScanRunsBuilder(int index) { - return getScanRunsFieldBuilder() - .addBuilder(index, com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.ScanRun.Builder addScanRunsBuilder( + int index) { + return getScanRunsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance()); } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsBuilderList() { + public java.util.List + getScanRunsBuilderList() { return getScanRunsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRun, - com.google.cloud.websecurityscanner.v1.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanRun, com.google.cloud.websecurityscanner.v1.ScanRun.Builder, com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder> getScanRunsFieldBuilder() { if (scanRunsBuilder_ == null) { - scanRunsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRun, - com.google.cloud.websecurityscanner.v1.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder>( - scanRuns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + scanRunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanRun, com.google.cloud.websecurityscanner.v1.ScanRun.Builder, com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder>( + scanRuns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); scanRuns_ = null; } return scanRunsBuilder_; @@ -980,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1.ScanRun.Builder addScanRunsBuilder private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1003,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1026,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListScanRunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListScanRunsResponse) private static final com.google.cloud.websecurityscanner.v1.ListScanRunsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListScanRunsResponse(); } @@ -1114,16 +1016,16 @@ public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1138,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java index d4e4c85b..d453492c 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListScanRunsResponseOrBuilder - extends +public interface ListScanRunsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListScanRunsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - java.util.List getScanRunsList(); + java.util.List + getScanRunsList(); /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -44,8 +25,6 @@ public interface ListScanRunsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1.ScanRun getScanRuns(int index); /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -54,51 +33,43 @@ public interface ListScanRunsResponseOrBuilder */ int getScanRunsCount(); /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - java.util.List + java.util.List getScanRunsOrBuilderList(); /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java index e0c24a29..4e919f8a 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Information reported for an outdated library.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.OutdatedLibrary} */ -public final class OutdatedLibrary extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutdatedLibrary extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.OutdatedLibrary) OutdatedLibraryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutdatedLibrary.newBuilder() to construct. private OutdatedLibrary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutdatedLibrary() { libraryName_ = ""; version_ = ""; @@ -45,15 +27,16 @@ private OutdatedLibrary() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutdatedLibrary(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OutdatedLibrary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,37 +56,34 @@ private OutdatedLibrary( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - libraryName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + libraryName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - learnMoreUrls_.add(s); - break; + version_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + learnMoreUrls_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,7 +91,8 @@ private OutdatedLibrary( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = learnMoreUrls_.getUnmodifiableView(); @@ -120,33 +101,27 @@ private OutdatedLibrary( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.class, - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder.class); } public static final int LIBRARY_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object libraryName_; /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The libraryName. */ @java.lang.Override @@ -155,29 +130,29 @@ public java.lang.String getLibraryName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; } } /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ @java.lang.Override - public com.google.protobuf.ByteString getLibraryNameBytes() { + public com.google.protobuf.ByteString + getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); libraryName_ = b; return b; } else { @@ -188,14 +163,11 @@ public com.google.protobuf.ByteString getLibraryNameBytes() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The version. */ @java.lang.Override @@ -204,29 +176,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -237,42 +209,34 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int LEARN_MORE_URLS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList learnMoreUrls_; /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList + getLearnMoreUrlsList() { return learnMoreUrls_; } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -280,23 +244,20 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,7 +269,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(libraryName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, libraryName_); } @@ -349,17 +311,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.OutdatedLibrary)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.OutdatedLibrary other = - (com.google.cloud.websecurityscanner.v1.OutdatedLibrary) obj; + com.google.cloud.websecurityscanner.v1.OutdatedLibrary other = (com.google.cloud.websecurityscanner.v1.OutdatedLibrary) obj; - if (!getLibraryName().equals(other.getLibraryName())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (!getLearnMoreUrlsList().equals(other.getLearnMoreUrlsList())) return false; + if (!getLibraryName() + .equals(other.getLibraryName())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getLearnMoreUrlsList() + .equals(other.getLearnMoreUrlsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -385,127 +349,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.OutdatedLibrary prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.OutdatedLibrary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information reported for an outdated library.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.OutdatedLibrary} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.OutdatedLibrary) com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.class, - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.OutdatedLibrary.newBuilder() @@ -513,15 +467,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -535,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; } @java.lang.Override @@ -556,8 +511,7 @@ public com.google.cloud.websecurityscanner.v1.OutdatedLibrary build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.OutdatedLibrary buildPartial() { - com.google.cloud.websecurityscanner.v1.OutdatedLibrary result = - new com.google.cloud.websecurityscanner.v1.OutdatedLibrary(this); + com.google.cloud.websecurityscanner.v1.OutdatedLibrary result = new com.google.cloud.websecurityscanner.v1.OutdatedLibrary(this); int from_bitField0_ = bitField0_; result.libraryName_ = libraryName_; result.version_ = version_; @@ -574,39 +528,38 @@ public com.google.cloud.websecurityscanner.v1.OutdatedLibrary buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.OutdatedLibrary) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.OutdatedLibrary) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.OutdatedLibrary)other); } else { super.mergeFrom(other); return this; @@ -614,8 +567,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.OutdatedLibrary other) { - if (other == com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance()) return this; if (!other.getLibraryName().isEmpty()) { libraryName_ = other.libraryName_; onChanged(); @@ -653,8 +605,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.OutdatedLibrary) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.OutdatedLibrary) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -663,25 +614,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object libraryName_ = ""; /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return The libraryName. */ public java.lang.String getLibraryName() { java.lang.Object ref = libraryName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; @@ -690,21 +638,20 @@ public java.lang.String getLibraryName() { } } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ - public com.google.protobuf.ByteString getLibraryNameBytes() { + public com.google.protobuf.ByteString + getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); libraryName_ = b; return b; } else { @@ -712,61 +659,54 @@ public com.google.protobuf.ByteString getLibraryNameBytes() { } } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @param value The libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryName(java.lang.String value) { + public Builder setLibraryName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + libraryName_ = value; onChanged(); return this; } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return This builder for chaining. */ public Builder clearLibraryName() { - + libraryName_ = getDefaultInstance().getLibraryName(); onChanged(); return this; } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @param value The bytes for libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { + public Builder setLibraryNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + libraryName_ = value; onChanged(); return this; @@ -774,20 +714,18 @@ public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object version_ = ""; /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -796,21 +734,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -818,112 +755,95 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList learnMoreUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLearnMoreUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(learnMoreUrls_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList + getLearnMoreUrlsList() { return learnMoreUrls_.getUnmodifiableView(); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -931,90 +851,80 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index to set the value at. * @param value The learnMoreUrls to set. * @return This builder for chaining. */ - public Builder setLearnMoreUrls(int index, java.lang.String value) { + public Builder setLearnMoreUrls( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.set(index, value); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param value The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrls(java.lang.String value) { + public Builder addLearnMoreUrls( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param values The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addAllLearnMoreUrls(java.lang.Iterable values) { + public Builder addAllLearnMoreUrls( + java.lang.Iterable values) { ensureLearnMoreUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, learnMoreUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, learnMoreUrls_); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return This builder for chaining. */ public Builder clearLearnMoreUrls() { @@ -1024,30 +934,28 @@ public Builder clearLearnMoreUrls() { return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param value The bytes of the learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrlsBytes(com.google.protobuf.ByteString value) { + public Builder addLearnMoreUrlsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1057,12 +965,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.OutdatedLibrary) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.OutdatedLibrary) private static final com.google.cloud.websecurityscanner.v1.OutdatedLibrary DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.OutdatedLibrary(); } @@ -1071,16 +979,16 @@ public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutdatedLibrary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutdatedLibrary(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutdatedLibrary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutdatedLibrary(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1095,4 +1003,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.OutdatedLibrary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java index 1cf40c09..cd49366c 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java @@ -1,126 +1,90 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface OutdatedLibraryOrBuilder - extends +public interface OutdatedLibraryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.OutdatedLibrary) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The libraryName. */ java.lang.String getLibraryName(); /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ - com.google.protobuf.ByteString getLibraryNameBytes(); + com.google.protobuf.ByteString + getLibraryNameBytes(); /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - java.util.List getLearnMoreUrlsList(); + java.util.List + getLearnMoreUrlsList(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ int getLearnMoreUrlsCount(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ java.lang.String getLearnMoreUrls(int index); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index); + com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java similarity index 65% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java index a7d9a82a..fa6af21f 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_config.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * A ScanConfig resource contains the configurations to launch a scan.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig} */ -public final class ScanConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ScanConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig) ScanConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ScanConfig.newBuilder() to construct. private ScanConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ScanConfig() { name_ = ""; displayName_ = ""; @@ -49,15 +31,16 @@ private ScanConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ScanConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ScanConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -77,118 +60,102 @@ private ScanConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; + displayName_ = s; + break; + } + case 24: { + + maxQps_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + startingUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 24: - { - maxQps_ = input.readInt32(); - break; + startingUrls_.add(s); + break; + } + case 42: { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder subBuilder = null; + if (authentication_ != null) { + subBuilder = authentication_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - startingUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - startingUrls_.add(s); - break; + authentication_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authentication_); + authentication_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder subBuilder = - null; - if (authentication_ != null) { - subBuilder = authentication_.toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authentication_); - authentication_ = subBuilder.buildPartial(); - } - break; - } - case 48: - { - int rawValue = input.readEnum(); + break; + } + case 48: { + int rawValue = input.readEnum(); - userAgent_ = rawValue; - break; + userAgent_ = rawValue; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - blacklistPatterns_.add(s); - break; + blacklistPatterns_.add(s); + break; + } + case 66: { + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder subBuilder = null; + if (schedule_ != null) { + subBuilder = schedule_.toBuilder(); } - case 66: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder subBuilder = null; - if (schedule_ != null) { - subBuilder = schedule_.toBuilder(); - } - schedule_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schedule_); - schedule_ = subBuilder.buildPartial(); - } - - break; + schedule_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schedule_); + schedule_ = subBuilder.buildPartial(); } - case 80: - { - int rawValue = input.readEnum(); - exportToSecurityCommandCenter_ = rawValue; - break; - } - case 96: - { - int rawValue = input.readEnum(); + break; + } + case 80: { + int rawValue = input.readEnum(); - riskLevel_ = rawValue; - break; - } - case 104: - { - managedScan_ = input.readBool(); - break; - } - case 112: - { - staticIpScan_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + exportToSecurityCommandCenter_ = rawValue; + break; + } + case 96: { + int rawValue = input.readEnum(); + + riskLevel_ = rawValue; + break; + } + case 104: { + + managedScan_ = input.readBool(); + break; + } + case 112: { + + staticIpScan_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -196,7 +163,8 @@ private ScanConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { startingUrls_ = startingUrls_.getUnmodifiableView(); @@ -208,35 +176,29 @@ private ScanConfig( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder.class); } /** - * - * *
    * Type of user agents used for scanning.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanConfig.UserAgent} */ - public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { + public enum UserAgent + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -245,8 +207,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ USER_AGENT_UNSPECIFIED(0), /** - * - * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -255,8 +215,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_LINUX(1), /** - * - * *
      * Chrome on Android.
      * 
@@ -265,8 +223,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_ANDROID(2), /** - * - * *
      * Safari on IPhone.
      * 
@@ -278,8 +234,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -288,8 +242,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int USER_AGENT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -298,8 +250,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_LINUX_VALUE = 1; /** - * - * *
      * Chrome on Android.
      * 
@@ -308,8 +258,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_ANDROID_VALUE = 2; /** - * - * *
      * Safari on IPhone.
      * 
@@ -318,6 +266,7 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SAFARI_IPHONE_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -342,53 +291,50 @@ public static UserAgent valueOf(int value) { */ public static UserAgent forNumber(int value) { switch (value) { - case 0: - return USER_AGENT_UNSPECIFIED; - case 1: - return CHROME_LINUX; - case 2: - return CHROME_ANDROID; - case 3: - return SAFARI_IPHONE; - default: - return null; + case 0: return USER_AGENT_UNSPECIFIED; + case 1: return CHROME_LINUX; + case 2: return CHROME_ANDROID; + case 3: return SAFARI_IPHONE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + UserAgent> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UserAgent findValueByNumber(int number) { + return UserAgent.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public UserAgent findValueByNumber(int number) { - return UserAgent.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor().getEnumTypes().get(0); } private static final UserAgent[] VALUES = values(); - public static UserAgent valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static UserAgent valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -406,8 +352,6 @@ private UserAgent(int value) { } /** - * - * *
    * Scan risk levels supported by Web Security Scanner. LOW impact
    * scanning will minimize requests with the potential to modify data. To
@@ -416,10 +360,9 @@ private UserAgent(int value) {
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel}
    */
-  public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum {
+  public enum RiskLevel
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Use default, which is NORMAL.
      * 
@@ -428,8 +371,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ RISK_LEVEL_UNSPECIFIED(0), /** - * - * *
      * Normal scanning (Recommended)
      * 
@@ -438,8 +379,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ NORMAL(1), /** - * - * *
      * Lower impact scanning
      * 
@@ -451,8 +390,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Use default, which is NORMAL.
      * 
@@ -461,8 +398,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RISK_LEVEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Normal scanning (Recommended)
      * 
@@ -471,8 +406,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NORMAL_VALUE = 1; /** - * - * *
      * Lower impact scanning
      * 
@@ -481,6 +414,7 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOW_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -505,51 +439,49 @@ public static RiskLevel valueOf(int value) { */ public static RiskLevel forNumber(int value) { switch (value) { - case 0: - return RISK_LEVEL_UNSPECIFIED; - case 1: - return NORMAL; - case 2: - return LOW; - default: - return null; + case 0: return RISK_LEVEL_UNSPECIFIED; + case 1: return NORMAL; + case 2: return LOW; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + RiskLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RiskLevel findValueByNumber(int number) { + return RiskLevel.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RiskLevel findValueByNumber(int number) { - return RiskLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor().getEnumTypes().get(1); } private static final RiskLevel[] VALUES = values(); - public static RiskLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RiskLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -567,20 +499,16 @@ private RiskLevel(int value) { } /** - * - * *
    * Controls export of scan configurations and results to Security
    * Command Center.
    * 
* - * Protobuf enum {@code - * google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter} + * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter} */ - public enum ExportToSecurityCommandCenter implements com.google.protobuf.ProtocolMessageEnum { + public enum ExportToSecurityCommandCenter + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Use default, which is ENABLED.
      * 
@@ -589,8 +517,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED(0), /** - * - * *
      * Export results of this scan to Security Command Center.
      * 
@@ -599,8 +525,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ ENABLED(1), /** - * - * *
      * Do not export results of this scan to Security Command Center.
      * 
@@ -612,8 +536,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco ; /** - * - * *
      * Use default, which is ENABLED.
      * 
@@ -622,8 +544,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ public static final int EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Export results of this scan to Security Command Center.
      * 
@@ -632,8 +552,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ public static final int ENABLED_VALUE = 1; /** - * - * *
      * Do not export results of this scan to Security Command Center.
      * 
@@ -642,6 +560,7 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ public static final int DISABLED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -666,14 +585,10 @@ public static ExportToSecurityCommandCenter valueOf(int value) { */ public static ExportToSecurityCommandCenter forNumber(int value) { switch (value) { - case 0: - return EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED; - case 1: - return ENABLED; - case 2: - return DISABLED; - default: - return null; + case 0: return EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED; + case 1: return ENABLED; + case 2: return DISABLED; + default: return null; } } @@ -681,31 +596,29 @@ public static ExportToSecurityCommandCenter forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExportToSecurityCommandCenter> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExportToSecurityCommandCenter findValueByNumber(int number) { + return ExportToSecurityCommandCenter.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExportToSecurityCommandCenter findValueByNumber(int number) { - return ExportToSecurityCommandCenter.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor() - .getEnumTypes() - .get(2); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor().getEnumTypes().get(2); } private static final ExportToSecurityCommandCenter[] VALUES = values(); @@ -713,7 +626,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static ExportToSecurityCommandCenter valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -730,175 +644,124 @@ private ExportToSecurityCommandCenter(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter) } - public interface AuthenticationOrBuilder - extends + public interface AuthenticationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Authentication) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return Whether the googleAccount field is set. */ boolean hasGoogleAccount(); /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return The googleAccount. */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - getGoogleAccount(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount(); /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder - getGoogleAccountOrBuilder(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ boolean hasCustomAccount(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - getCustomAccount(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getCustomAccount(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder - getCustomAccountOrBuilder(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder(); /** - * - * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; * @return Whether the iapCredential field is set. */ boolean hasIapCredential(); /** - * - * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; * @return The iapCredential. */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - getIapCredential(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getIapCredential(); /** - * - * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder - getIapCredentialOrBuilder(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder getIapCredentialOrBuilder(); - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.AuthenticationCase - getAuthenticationCase(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.AuthenticationCase getAuthenticationCase(); } /** - * - * *
    * Scan authentication configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication} */ - public static final class Authentication extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Authentication extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication) AuthenticationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Authentication.newBuilder() to construct. private Authentication(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Authentication() {} + private Authentication() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Authentication(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Authentication( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -917,94 +780,55 @@ private Authentication( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 1) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 1; - break; + case 10: { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder subBuilder = null; + if (authenticationCase_ == 1) { + subBuilder = ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_).toBuilder(); } - case 18: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 2) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 2; - break; + authentication_ = + input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_); + authentication_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .Builder - subBuilder = null; - if (authenticationCase_ == 4) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 4; - break; + authenticationCase_ = 1; + break; + } + case 18: { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder subBuilder = null; + if (authenticationCase_ == 2) { + subBuilder = ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + authentication_ = + input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_); + authentication_ = subBuilder.buildPartial(); + } + authenticationCase_ = 2; + break; + } + case 34: { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder subBuilder = null; + if (authenticationCase_ == 4) { + subBuilder = ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_).toBuilder(); } + authentication_ = + input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_); + authentication_ = subBuilder.buildPartial(); + } + authenticationCase_ = 4; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1012,105 +836,88 @@ private Authentication( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder.class); } - public interface GoogleAccountOrBuilder - extends + public interface GoogleAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; - * * @return The password. */ java.lang.String getPassword(); /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; - * * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); } /** - * - * *
      * Describes authentication configuration that uses a Google account.
      * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} */ - public static final class GoogleAccount extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GoogleAccount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) GoogleAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GoogleAccount.newBuilder() to construct. private GoogleAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GoogleAccount() { username_ = ""; password_ = ""; @@ -1118,15 +925,16 @@ private GoogleAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GoogleAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GoogleAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1145,27 +953,25 @@ private GoogleAccount( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + password_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1173,42 +979,34 @@ private GoogleAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1; - * * @return The username. */ @java.lang.Override @@ -1217,29 +1015,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1250,15 +1048,12 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; - * * @return The password. */ @java.lang.Override @@ -1267,30 +1062,30 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; - * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1299,7 +1094,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1311,7 +1105,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -1341,18 +1136,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount other = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) obj; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1373,104 +1167,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1480,52 +1258,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Describes authentication configuration that uses a Google account.
        * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1537,23 +1307,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - build() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount result = - buildPartial(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount build() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1561,11 +1327,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount result = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount( - this); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount buildPartial() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount(this); result.username_ = username_; result.password_ = password_; onBuilt(); @@ -1576,56 +1339,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - other); + if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) { + return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount other) { - if (other - == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount other) { + if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -1649,14 +1402,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - parsedMessage = null; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1668,20 +1418,18 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1690,21 +1438,20 @@ public java.lang.String getUsername() { } } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1712,61 +1459,54 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -1774,21 +1514,19 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1797,22 +1535,21 @@ public java.lang.String getPassword() { } } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1820,69 +1557,61 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1895,34 +1624,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccount - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount(); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GoogleAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GoogleAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GoogleAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1934,114 +1659,94 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CustomAccountOrBuilder - extends + public interface CustomAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; - * * @return The password. */ java.lang.String getPassword(); /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; - * * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3; - * * @return The loginUrl. */ java.lang.String getLoginUrl(); /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3; - * * @return The bytes for loginUrl. */ - com.google.protobuf.ByteString getLoginUrlBytes(); + com.google.protobuf.ByteString + getLoginUrlBytes(); } /** - * - * *
      * Describes authentication configuration that uses a custom account.
      * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount} */ - public static final class CustomAccount extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CustomAccount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) CustomAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomAccount.newBuilder() to construct. private CustomAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CustomAccount() { username_ = ""; password_ = ""; @@ -2050,15 +1755,16 @@ private CustomAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CustomAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CustomAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2077,34 +1783,31 @@ private CustomAccount( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + password_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - loginUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + loginUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2112,42 +1815,34 @@ private CustomAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1; - * * @return The username. */ @java.lang.Override @@ -2156,29 +1851,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -2189,15 +1884,12 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; - * * @return The password. */ @java.lang.Override @@ -2206,30 +1898,30 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; - * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -2240,14 +1932,11 @@ public com.google.protobuf.ByteString getPasswordBytes() { public static final int LOGIN_URL_FIELD_NUMBER = 3; private volatile java.lang.Object loginUrl_; /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3; - * * @return The loginUrl. */ @java.lang.Override @@ -2256,29 +1945,29 @@ public java.lang.String getLoginUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; } } /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3; - * * @return The bytes for loginUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getLoginUrlBytes() { + public com.google.protobuf.ByteString + getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); loginUrl_ = b; return b; } else { @@ -2287,7 +1976,6 @@ public com.google.protobuf.ByteString getLoginUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2299,7 +1987,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -2335,19 +2024,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount other = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) obj; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; - if (!getLoginUrl().equals(other.getLoginUrl())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; + if (!getLoginUrl() + .equals(other.getLoginUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2370,104 +2059,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2477,52 +2150,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Describes authentication configuration that uses a custom account.
        * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2536,23 +2201,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - build() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount result = - buildPartial(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount build() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2560,11 +2221,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount result = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount( - this); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount buildPartial() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount(this); result.username_ = username_; result.password_ = password_; result.loginUrl_ = loginUrl_; @@ -2576,56 +2234,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - other); + if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) { + return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount other) { - if (other - == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount other) { + if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -2653,14 +2301,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - parsedMessage = null; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2672,20 +2317,18 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -2694,21 +2337,20 @@ public java.lang.String getUsername() { } } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -2716,61 +2358,54 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -2778,21 +2413,19 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -2801,22 +2434,21 @@ public java.lang.String getPassword() { } } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -2824,64 +2456,57 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; - * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; @@ -2889,20 +2514,18 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { private java.lang.Object loginUrl_ = ""; /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3; - * * @return The loginUrl. */ public java.lang.String getLoginUrl() { java.lang.Object ref = loginUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; @@ -2911,21 +2534,20 @@ public java.lang.String getLoginUrl() { } } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3; - * * @return The bytes for loginUrl. */ - public com.google.protobuf.ByteString getLoginUrlBytes() { + public com.google.protobuf.ByteString + getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); loginUrl_ = b; return b; } else { @@ -2933,66 +2555,58 @@ public com.google.protobuf.ByteString getLoginUrlBytes() { } } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3; - * * @param value The loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrl(java.lang.String value) { + public Builder setLoginUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + loginUrl_ = value; onChanged(); return this; } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3; - * * @return This builder for chaining. */ public Builder clearLoginUrl() { - + loginUrl_ = getDefaultInstance().getLoginUrl(); onChanged(); return this; } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3; - * * @param value The bytes for loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrlBytes(com.google.protobuf.ByteString value) { + public Builder setLoginUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + loginUrl_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3005,34 +2619,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccount - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount(); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3044,102 +2654,79 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface IapCredentialOrBuilder - extends + public interface IapCredentialOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; * @return Whether the iapTestServiceAccountInfo field is set. */ boolean hasIapTestServiceAccountInfo(); /** - * - * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; * @return The iapTestServiceAccountInfo. */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - getIapTestServiceAccountInfo(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getIapTestServiceAccountInfo(); /** - * - * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfoOrBuilder - getIapTestServiceAccountInfoOrBuilder(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder getIapTestServiceAccountInfoOrBuilder(); - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapCredentialsCase - getIapCredentialsCase(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapCredentialsCase getIapCredentialsCase(); } /** - * - * *
      * Describes authentication configuration for Identity-Aware-Proxy (IAP).
      * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential} + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential} */ - public static final class IapCredential extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class IapCredential extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) IapCredentialOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IapCredential.newBuilder() to construct. private IapCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private IapCredential() {} + private IapCredential() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IapCredential(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private IapCredential( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3158,40 +2745,27 @@ private IapCredential( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.Builder - subBuilder = null; - if (iapCredentialsCase_ == 1) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.IapTestServiceAccountInfo) - iapCredentials_) - .toBuilder(); - } - iapCredentials_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.IapTestServiceAccountInfo.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.IapTestServiceAccountInfo) - iapCredentials_); - iapCredentials_ = subBuilder.buildPartial(); - } - iapCredentialsCase_ = 1; - break; + case 10: { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder subBuilder = null; + if (iapCredentialsCase_ == 1) { + subBuilder = ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + iapCredentials_ = + input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_); + iapCredentials_ = subBuilder.buildPartial(); + } + iapCredentialsCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3199,103 +2773,85 @@ private IapCredential( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder.class); } - public interface IapTestServiceAccountInfoOrBuilder - extends + public interface IapTestServiceAccountInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Required. Describes OAuth2 client id of resources protected by
          * Identity-Aware-Proxy (IAP).
          * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The targetAudienceClientId. */ java.lang.String getTargetAudienceClientId(); /** - * - * *
          * Required. Describes OAuth2 client id of resources protected by
          * Identity-Aware-Proxy (IAP).
          * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for targetAudienceClientId. */ - com.google.protobuf.ByteString getTargetAudienceClientIdBytes(); + com.google.protobuf.ByteString + getTargetAudienceClientIdBytes(); } /** - * - * *
        * Describes authentication configuration when Web-Security-Scanner
        * service account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo} + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo} */ - public static final class IapTestServiceAccountInfo - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class IapTestServiceAccountInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) IapTestServiceAccountInfoOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IapTestServiceAccountInfo.newBuilder() to construct. - private IapTestServiceAccountInfo( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IapTestServiceAccountInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IapTestServiceAccountInfo() { targetAudienceClientId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IapTestServiceAccountInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private IapTestServiceAccountInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3314,20 +2870,19 @@ private IapTestServiceAccountInfo( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - targetAudienceClientId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + targetAudienceClientId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3335,44 +2890,35 @@ private IapTestServiceAccountInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder.class); } public static final int TARGET_AUDIENCE_CLIENT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object targetAudienceClientId_; /** - * - * *
          * Required. Describes OAuth2 client id of resources protected by
          * Identity-Aware-Proxy (IAP).
          * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The targetAudienceClientId. */ @java.lang.Override @@ -3381,31 +2927,30 @@ public java.lang.String getTargetAudienceClientId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetAudienceClientId_ = s; return s; } } /** - * - * *
          * Required. Describes OAuth2 client id of resources protected by
          * Identity-Aware-Proxy (IAP).
          * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for targetAudienceClientId. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetAudienceClientIdBytes() { + public com.google.protobuf.ByteString + getTargetAudienceClientIdBytes() { java.lang.Object ref = targetAudienceClientId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetAudienceClientId_ = b; return b; } else { @@ -3414,7 +2959,6 @@ public com.google.protobuf.ByteString getTargetAudienceClientIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3427,7 +2971,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetAudienceClientId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetAudienceClientId_); } @@ -3441,9 +2985,7 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetAudienceClientId_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 1, targetAudienceClientId_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, targetAudienceClientId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3453,22 +2995,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - other = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) obj; - if (!getTargetAudienceClientId().equals(other.getTargetAudienceClientId())) return false; + if (!getTargetAudienceClientId() + .equals(other.getTargetAudienceClientId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3487,119 +3022,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3609,54 +3113,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * Describes authentication configuration when Web-Security-Scanner
          * service account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo} + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3666,26 +3161,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - build() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - result = buildPartial(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo build() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3693,14 +3181,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - result = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.IapTestServiceAccountInfo(this); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo buildPartial() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo(this); result.targetAudienceClientId_ = targetAudienceClientId_; onBuilt(); return result; @@ -3710,60 +3192,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - other); + if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) { + return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - other) { - if (other - == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo other) { + if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance()) return this; if (!other.getTargetAudienceClientId().isEmpty()) { targetAudienceClientId_ = other.targetAudienceClientId_; onChanged(); @@ -3783,16 +3251,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - parsedMessage = null; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3804,22 +3267,19 @@ public Builder mergeFrom( private java.lang.Object targetAudienceClientId_ = ""; /** - * - * *
            * Required. Describes OAuth2 client id of resources protected by
            * Identity-Aware-Proxy (IAP).
            * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The targetAudienceClientId. */ public java.lang.String getTargetAudienceClientId() { java.lang.Object ref = targetAudienceClientId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetAudienceClientId_ = s; return s; @@ -3828,23 +3288,21 @@ public java.lang.String getTargetAudienceClientId() { } } /** - * - * *
            * Required. Describes OAuth2 client id of resources protected by
            * Identity-Aware-Proxy (IAP).
            * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for targetAudienceClientId. */ - public com.google.protobuf.ByteString getTargetAudienceClientIdBytes() { + public com.google.protobuf.ByteString + getTargetAudienceClientIdBytes() { java.lang.Object ref = targetAudienceClientId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); targetAudienceClientId_ = b; return b; } else { @@ -3852,72 +3310,61 @@ public com.google.protobuf.ByteString getTargetAudienceClientIdBytes() { } } /** - * - * *
            * Required. Describes OAuth2 client id of resources protected by
            * Identity-Aware-Proxy (IAP).
            * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The targetAudienceClientId to set. * @return This builder for chaining. */ - public Builder setTargetAudienceClientId(java.lang.String value) { + public Builder setTargetAudienceClientId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetAudienceClientId_ = value; onChanged(); return this; } /** - * - * *
            * Required. Describes OAuth2 client id of resources protected by
            * Identity-Aware-Proxy (IAP).
            * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearTargetAudienceClientId() { - + targetAudienceClientId_ = getDefaultInstance().getTargetAudienceClientId(); onChanged(); return this; } /** - * - * *
            * Required. Describes OAuth2 client id of resources protected by
            * Identity-Aware-Proxy (IAP).
            * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for targetAudienceClientId to set. * @return This builder for chaining. */ - public Builder setTargetAudienceClientIdBytes(com.google.protobuf.ByteString value) { + public Builder setTargetAudienceClientIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetAudienceClientId_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3930,36 +3377,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.IapTestServiceAccountInfo - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo(); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IapTestServiceAccountInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IapTestServiceAccountInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IapTestServiceAccountInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IapTestServiceAccountInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3971,24 +3412,20 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int iapCredentialsCase_ = 0; private java.lang.Object iapCredentials_; - public enum IapCredentialsCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IAP_TEST_SERVICE_ACCOUNT_INFO(1), IAPCREDENTIALS_NOT_SET(0); private final int value; - private IapCredentialsCase(int value) { this.value = value; } @@ -4004,37 +3441,30 @@ public static IapCredentialsCase valueOf(int value) { public static IapCredentialsCase forNumber(int value) { switch (value) { - case 1: - return IAP_TEST_SERVICE_ACCOUNT_INFO; - case 0: - return IAPCREDENTIALS_NOT_SET; - default: - return null; + case 1: return IAP_TEST_SERVICE_ACCOUNT_INFO; + case 0: return IAPCREDENTIALS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public IapCredentialsCase getIapCredentialsCase() { - return IapCredentialsCase.forNumber(iapCredentialsCase_); + public IapCredentialsCase + getIapCredentialsCase() { + return IapCredentialsCase.forNumber( + iapCredentialsCase_); } public static final int IAP_TEST_SERVICE_ACCOUNT_INFO_FIELD_NUMBER = 1; /** - * - * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; * @return Whether the iapTestServiceAccountInfo field is set. */ @java.lang.Override @@ -4042,58 +3472,38 @@ public boolean hasIapTestServiceAccountInfo() { return iapCredentialsCase_ == 1; } /** - * - * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; * @return The iapTestServiceAccountInfo. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - getIapTestServiceAccountInfo() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getIapTestServiceAccountInfo() { if (iapCredentialsCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - iapCredentials_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); } /** - * - * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfoOrBuilder - getIapTestServiceAccountInfoOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder getIapTestServiceAccountInfoOrBuilder() { if (iapCredentialsCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - iapCredentials_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4105,13 +3515,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (iapCredentialsCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - iapCredentials_); + output.writeMessage(1, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_); } unknownFields.writeTo(output); } @@ -4123,12 +3530,8 @@ public int getSerializedSize() { size = 0; if (iapCredentialsCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - iapCredentials_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4138,21 +3541,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential other = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) obj; if (!getIapCredentialsCase().equals(other.getIapCredentialsCase())) return false; switch (iapCredentialsCase_) { case 1: - if (!getIapTestServiceAccountInfo().equals(other.getIapTestServiceAccountInfo())) - return false; + if (!getIapTestServiceAccountInfo() + .equals(other.getIapTestServiceAccountInfo())) return false; break; case 0: default: @@ -4181,104 +3581,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4288,52 +3672,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Describes authentication configuration for Identity-Aware-Proxy (IAP).
        * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential} + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4343,23 +3719,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - build() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result = - buildPartial(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential build() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4367,11 +3739,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential( - this); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential buildPartial() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential(this); if (iapCredentialsCase_ == 1) { if (iapTestServiceAccountInfoBuilder_ == null) { result.iapCredentials_ = iapCredentials_; @@ -4388,66 +3757,54 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - other); + if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) { + return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential other) { - if (other - == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential other) { + if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance()) return this; switch (other.getIapCredentialsCase()) { - case IAP_TEST_SERVICE_ACCOUNT_INFO: - { - mergeIapTestServiceAccountInfo(other.getIapTestServiceAccountInfo()); - break; - } - case IAPCREDENTIALS_NOT_SET: - { - break; - } + case IAP_TEST_SERVICE_ACCOUNT_INFO: { + mergeIapTestServiceAccountInfo(other.getIapTestServiceAccountInfo()); + break; + } + case IAPCREDENTIALS_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -4464,14 +3821,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - parsedMessage = null; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4480,12 +3834,12 @@ public Builder mergeFrom( } return this; } - private int iapCredentialsCase_ = 0; private java.lang.Object iapCredentials_; - - public IapCredentialsCase getIapCredentialsCase() { - return IapCredentialsCase.forNumber(iapCredentialsCase_); + public IapCredentialsCase + getIapCredentialsCase() { + return IapCredentialsCase.forNumber( + iapCredentialsCase_); } public Builder clearIapCredentials() { @@ -4495,26 +3849,16 @@ public Builder clearIapCredentials() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfoOrBuilder> - iapTestServiceAccountInfoBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder> iapTestServiceAccountInfoBuilder_; /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; * @return Whether the iapTestServiceAccountInfo field is set. */ @java.lang.Override @@ -4522,55 +3866,37 @@ public boolean hasIapTestServiceAccountInfo() { return iapCredentialsCase_ == 1; } /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; * @return The iapTestServiceAccountInfo. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - getIapTestServiceAccountInfo() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getIapTestServiceAccountInfo() { if (iapTestServiceAccountInfoBuilder_ == null) { if (iapCredentialsCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - iapCredentials_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); } else { if (iapCredentialsCase_ == 1) { return iapTestServiceAccountInfoBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); } } /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ - public Builder setIapTestServiceAccountInfo( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - value) { + public Builder setIapTestServiceAccountInfo(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo value) { if (iapTestServiceAccountInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4584,21 +3910,15 @@ public Builder setIapTestServiceAccountInfo( return this; } /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ public Builder setIapTestServiceAccountInfo( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder builderForValue) { if (iapTestServiceAccountInfoBuilder_ == null) { iapCredentials_ = builderForValue.build(); onChanged(); @@ -4609,34 +3929,19 @@ public Builder setIapTestServiceAccountInfo( return this; } /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ - public Builder mergeIapTestServiceAccountInfo( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - value) { + public Builder mergeIapTestServiceAccountInfo(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo value) { if (iapTestServiceAccountInfoBuilder_ == null) { - if (iapCredentialsCase_ == 1 - && iapCredentials_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.IapTestServiceAccountInfo.getDefaultInstance()) { - iapCredentials_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.newBuilder( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential.IapTestServiceAccountInfo) - iapCredentials_) - .mergeFrom(value) - .buildPartial(); + if (iapCredentialsCase_ == 1 && + iapCredentials_ != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance()) { + iapCredentials_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.newBuilder((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_) + .mergeFrom(value).buildPartial(); } else { iapCredentials_ = value; } @@ -4652,16 +3957,12 @@ public Builder mergeIapTestServiceAccountInfo( return this; } /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ public Builder clearIapTestServiceAccountInfo() { if (iapTestServiceAccountInfoBuilder_ == null) { @@ -4680,97 +3981,61 @@ public Builder clearIapTestServiceAccountInfo() { return this; } /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.Builder - getIapTestServiceAccountInfoBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder getIapTestServiceAccountInfoBuilder() { return getIapTestServiceAccountInfoFieldBuilder().getBuilder(); } /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfoOrBuilder - getIapTestServiceAccountInfoOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder getIapTestServiceAccountInfoOrBuilder() { if ((iapCredentialsCase_ == 1) && (iapTestServiceAccountInfoBuilder_ != null)) { return iapTestServiceAccountInfoBuilder_.getMessageOrBuilder(); } else { if (iapCredentialsCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - iapCredentials_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); } } /** - * - * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfoOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder> getIapTestServiceAccountInfoFieldBuilder() { if (iapTestServiceAccountInfoBuilder_ == null) { if (!(iapCredentialsCase_ == 1)) { - iapCredentials_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.getDefaultInstance(); + iapCredentials_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); } - iapTestServiceAccountInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfoOrBuilder>( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo) - iapCredentials_, + iapTestServiceAccountInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder>( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_, getParentForChildren(), isClean()); iapCredentials_ = null; } iapCredentialsCase_ = 1; - onChanged(); - ; + onChanged();; return iapTestServiceAccountInfoBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4783,34 +4048,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential(); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IapCredential parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IapCredential(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IapCredential parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IapCredential(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4822,25 +4083,22 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int authenticationCase_ = 0; private java.lang.Object authentication_; - public enum AuthenticationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GOOGLE_ACCOUNT(1), CUSTOM_ACCOUNT(2), IAP_CREDENTIAL(4), AUTHENTICATION_NOT_SET(0); private final int value; - private AuthenticationCase(int value) { this.value = value; } @@ -4856,40 +4114,31 @@ public static AuthenticationCase valueOf(int value) { public static AuthenticationCase forNumber(int value) { switch (value) { - case 1: - return GOOGLE_ACCOUNT; - case 2: - return CUSTOM_ACCOUNT; - case 4: - return IAP_CREDENTIAL; - case 0: - return AUTHENTICATION_NOT_SET; - default: - return null; + case 1: return GOOGLE_ACCOUNT; + case 2: return CUSTOM_ACCOUNT; + case 4: return IAP_CREDENTIAL; + case 0: return AUTHENTICATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AuthenticationCase getAuthenticationCase() { - return AuthenticationCase.forNumber(authenticationCase_); + public AuthenticationCase + getAuthenticationCase() { + return AuthenticationCase.forNumber( + authenticationCase_); } public static final int GOOGLE_ACCOUNT_FIELD_NUMBER = 1; /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return Whether the googleAccount field is set. */ @java.lang.Override @@ -4897,62 +4146,42 @@ public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - getGoogleAccount() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder - getGoogleAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } public static final int CUSTOM_ACCOUNT_FIELD_NUMBER = 2; /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ @java.lang.Override @@ -4960,62 +4189,42 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - getCustomAccount() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getCustomAccount() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder - getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } public static final int IAP_CREDENTIAL_FIELD_NUMBER = 4; /** - * - * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; * @return Whether the iapCredential field is set. */ @java.lang.Override @@ -5023,52 +4232,36 @@ public boolean hasIapCredential() { return authenticationCase_ == 4; } /** - * - * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; * @return The iapCredential. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - getIapCredential() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getIapCredential() { if (authenticationCase_ == 4) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); } /** - * - * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder - getIapCredentialOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder getIapCredentialOrBuilder() { if (authenticationCase_ == 4) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5080,24 +4273,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (authenticationCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - authentication_); + output.writeMessage(1, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_); } if (authenticationCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - authentication_); + output.writeMessage(2, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_); } if (authenticationCase_ == 4) { - output.writeMessage( - 4, - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - authentication_); + output.writeMessage(4, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_); } unknownFields.writeTo(output); } @@ -5109,25 +4294,16 @@ public int getSerializedSize() { size = 0; if (authenticationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - authentication_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_); } if (authenticationCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - authentication_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_); } if (authenticationCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - authentication_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5137,24 +4313,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication other = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) obj; if (!getAuthenticationCase().equals(other.getAuthenticationCase())) return false; switch (authenticationCase_) { case 1: - if (!getGoogleAccount().equals(other.getGoogleAccount())) return false; + if (!getGoogleAccount() + .equals(other.getGoogleAccount())) return false; break; case 2: - if (!getCustomAccount().equals(other.getCustomAccount())) return false; + if (!getCustomAccount() + .equals(other.getCustomAccount())) return false; break; case 4: - if (!getIapCredential().equals(other.getIapCredential())) return false; + if (!getIapCredential() + .equals(other.getIapCredential())) return false; break; case 0: default: @@ -5192,95 +4370,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5290,49 +4460,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Scan authentication configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication) com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5342,16 +4507,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance(); } @java.lang.Override @@ -5365,8 +4528,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication build() @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication result = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication(this); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication(this); if (authenticationCase_ == 1) { if (googleAccountBuilder_ == null) { result.authentication_ = authentication_; @@ -5397,73 +4559,62 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication other) { - if (other - == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication other) { + if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance()) return this; switch (other.getAuthenticationCase()) { - case GOOGLE_ACCOUNT: - { - mergeGoogleAccount(other.getGoogleAccount()); - break; - } - case CUSTOM_ACCOUNT: - { - mergeCustomAccount(other.getCustomAccount()); - break; - } - case IAP_CREDENTIAL: - { - mergeIapCredential(other.getIapCredential()); - break; - } - case AUTHENTICATION_NOT_SET: - { - break; - } + case GOOGLE_ACCOUNT: { + mergeGoogleAccount(other.getGoogleAccount()); + break; + } + case CUSTOM_ACCOUNT: { + mergeCustomAccount(other.getCustomAccount()); + break; + } + case IAP_CREDENTIAL: { + mergeIapCredential(other.getIapCredential()); + break; + } + case AUTHENTICATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -5484,9 +4635,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5495,12 +4644,12 @@ public Builder mergeFrom( } return this; } - private int authenticationCase_ = 0; private java.lang.Object authentication_; - - public AuthenticationCase getAuthenticationCase() { - return AuthenticationCase.forNumber(authenticationCase_); + public AuthenticationCase + getAuthenticationCase() { + return AuthenticationCase.forNumber( + authenticationCase_); } public Builder clearAuthentication() { @@ -5510,24 +4659,15 @@ public Builder clearAuthentication() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccountOrBuilder> - googleAccountBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder> googleAccountBuilder_; /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return Whether the googleAccount field is set. */ @java.lang.Override @@ -5535,49 +4675,35 @@ public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - getGoogleAccount() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { if (googleAccountBuilder_ == null) { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } else { if (authenticationCase_ == 1) { return googleAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { + public Builder setGoogleAccount(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5591,19 +4717,14 @@ public Builder setGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; */ public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder builderForValue) { if (googleAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -5614,31 +4735,18 @@ public Builder setGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - public Builder mergeGoogleAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { + public Builder mergeGoogleAccount(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { - if (authenticationCase_ == 1 - && authentication_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance()) { - authentication_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .newBuilder( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccount) - authentication_) - .mergeFrom(value) - .buildPartial(); + if (authenticationCase_ == 1 && + authentication_ != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) { + authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.newBuilder((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_) + .mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -5654,15 +4762,11 @@ public Builder mergeGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; */ public Builder clearGoogleAccount() { if (googleAccountBuilder_ == null) { @@ -5681,106 +4785,67 @@ public Builder clearGoogleAccount() { return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder - getGoogleAccountBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder getGoogleAccountBuilder() { return getGoogleAccountFieldBuilder().getBuilder(); } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder - getGoogleAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { if ((authenticationCase_ == 1) && (googleAccountBuilder_ != null)) { return googleAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccountOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder> getGoogleAccountFieldBuilder() { if (googleAccountBuilder_ == null) { if (!(authenticationCase_ == 1)) { - authentication_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); - } - googleAccountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .GoogleAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - authentication_, + authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + } + googleAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 1; - onChanged(); - ; + onChanged();; return googleAccountBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccountOrBuilder> - customAccountBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder> customAccountBuilder_; /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ @java.lang.Override @@ -5788,49 +4853,35 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - getCustomAccount() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getCustomAccount() { if (customAccountBuilder_ == null) { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } else { if (authenticationCase_ == 2) { return customAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public Builder setCustomAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount value) { + public Builder setCustomAccount(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount value) { if (customAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5844,19 +4895,14 @@ public Builder setCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ public Builder setCustomAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder builderForValue) { if (customAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -5867,31 +4913,18 @@ public Builder setCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public Builder mergeCustomAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount value) { + public Builder mergeCustomAccount(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount value) { if (customAccountBuilder_ == null) { - if (authenticationCase_ == 2 - && authentication_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance()) { - authentication_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .newBuilder( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccount) - authentication_) - .mergeFrom(value) - .buildPartial(); + if (authenticationCase_ == 2 && + authentication_ != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) { + authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.newBuilder((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_) + .mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -5907,15 +4940,11 @@ public Builder mergeCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ public Builder clearCustomAccount() { if (customAccountBuilder_ == null) { @@ -5934,106 +4963,67 @@ public Builder clearCustomAccount() { return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder - getCustomAccountBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder getCustomAccountBuilder() { return getCustomAccountFieldBuilder().getBuilder(); } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder - getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { if ((authenticationCase_ == 2) && (customAccountBuilder_ != null)) { return customAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccountOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder> getCustomAccountFieldBuilder() { if (customAccountBuilder_ == null) { if (!(authenticationCase_ == 2)) { - authentication_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); - } - customAccountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .CustomAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - authentication_, + authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + } + customAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 2; - onChanged(); - ; + onChanged();; return customAccountBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredentialOrBuilder> - iapCredentialBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder> iapCredentialBuilder_; /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; * @return Whether the iapCredential field is set. */ @java.lang.Override @@ -6041,49 +5031,35 @@ public boolean hasIapCredential() { return authenticationCase_ == 4; } /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; * @return The iapCredential. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - getIapCredential() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getIapCredential() { if (iapCredentialBuilder_ == null) { if (authenticationCase_ == 4) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); } else { if (authenticationCase_ == 4) { return iapCredentialBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); } } /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ - public Builder setIapCredential( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential value) { + public Builder setIapCredential(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential value) { if (iapCredentialBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6097,19 +5073,14 @@ public Builder setIapCredential( return this; } /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ public Builder setIapCredential( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder builderForValue) { if (iapCredentialBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -6120,31 +5091,18 @@ public Builder setIapCredential( return this; } /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ - public Builder mergeIapCredential( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential value) { + public Builder mergeIapCredential(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential value) { if (iapCredentialBuilder_ == null) { - if (authenticationCase_ == 4 - && authentication_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance()) { - authentication_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .newBuilder( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredential) - authentication_) - .mergeFrom(value) - .buildPartial(); + if (authenticationCase_ == 4 && + authentication_ != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance()) { + authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.newBuilder((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_) + .mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -6160,15 +5118,11 @@ public Builder mergeIapCredential( return this; } /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ public Builder clearIapCredential() { if (iapCredentialBuilder_ == null) { @@ -6187,88 +5141,58 @@ public Builder clearIapCredential() { return this; } /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder - getIapCredentialBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder getIapCredentialBuilder() { return getIapCredentialFieldBuilder().getBuilder(); } /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder - getIapCredentialOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder getIapCredentialOrBuilder() { if ((authenticationCase_ == 4) && (iapCredentialBuilder_ != null)) { return iapCredentialBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 4) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); } } /** - * - * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredentialOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder> getIapCredentialFieldBuilder() { if (iapCredentialBuilder_ == null) { if (!(authenticationCase_ == 4)) { - authentication_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .getDefaultInstance(); - } - iapCredentialBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .IapCredentialOrBuilder>( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - authentication_, + authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); + } + iapCredentialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder>( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 4; - onChanged(); - ; + onChanged();; return iapCredentialBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6281,32 +5205,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication(); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Authentication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Authentication(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authentication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Authentication(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6318,20 +5240,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ScheduleOrBuilder - extends + public interface ScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Schedule) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -6340,13 +5259,10 @@ public interface ScheduleOrBuilder
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ boolean hasScheduleTime(); /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -6355,13 +5271,10 @@ public interface ScheduleOrBuilder
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ com.google.protobuf.Timestamp getScheduleTime(); /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -6374,50 +5287,46 @@ public interface ScheduleOrBuilder
     com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder();
 
     /**
-     *
-     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2; - * * @return The intervalDurationDays. */ int getIntervalDurationDays(); } /** - * - * *
    * Scan schedule configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Schedule} */ - public static final class Schedule extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Schedule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Schedule) ScheduleOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Schedule.newBuilder() to construct. private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Schedule() {} + private Schedule() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Schedule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Schedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6436,33 +5345,31 @@ private Schedule( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduleTime_ != null) { + subBuilder = scheduleTime_.toBuilder(); } - case 16: - { - intervalDurationDays_ = input.readInt32(); - break; + scheduleTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduleTime_); + scheduleTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + + intervalDurationDays_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6470,33 +5377,29 @@ private Schedule( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder.class); } public static final int SCHEDULE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp scheduleTime_; /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -6505,7 +5408,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -6513,8 +5415,6 @@ public boolean hasScheduleTime() { return scheduleTime_ != null; } /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -6523,18 +5423,13 @@ public boolean hasScheduleTime() {
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -6552,14 +5447,11 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
     public static final int INTERVAL_DURATION_DAYS_FIELD_NUMBER = 2;
     private int intervalDurationDays_;
     /**
-     *
-     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2; - * * @return The intervalDurationDays. */ @java.lang.Override @@ -6568,7 +5460,6 @@ public int getIntervalDurationDays() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6580,7 +5471,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (scheduleTime_ != null) { output.writeMessage(1, getScheduleTime()); } @@ -6597,10 +5489,12 @@ public int getSerializedSize() { size = 0; if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getScheduleTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getScheduleTime()); } if (intervalDurationDays_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, intervalDurationDays_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, intervalDurationDays_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -6610,19 +5504,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule other = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) obj; if (hasScheduleTime() != other.hasScheduleTime()) return false; if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) return false; + if (!getScheduleTime() + .equals(other.getScheduleTime())) return false; } - if (getIntervalDurationDays() != other.getIntervalDurationDays()) return false; + if (getIntervalDurationDays() + != other.getIntervalDurationDays()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -6646,94 +5541,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6743,32 +5631,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Scan schedule configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Schedule} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Schedule) com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.newBuilder() @@ -6776,15 +5659,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -6800,14 +5684,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance(); } @@ -6822,8 +5705,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule result = - new com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule(this); + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule(this); if (scheduleTimeBuilder_ == null) { result.scheduleTime_ = scheduleTime_; } else { @@ -6838,41 +5720,38 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule)other); } else { super.mergeFrom(other); return this; @@ -6880,9 +5759,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule other) { - if (other - == com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance()) return this; if (other.hasScheduleTime()) { mergeScheduleTime(other.getScheduleTime()); } @@ -6908,8 +5785,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6921,13 +5797,8 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp scheduleTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleTimeBuilder_; /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -6936,15 +5807,12 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return scheduleTimeBuilder_ != null || scheduleTime_ != null; } /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -6953,21 +5821,16 @@ public boolean hasScheduleTime() {
        * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ public com.google.protobuf.Timestamp getScheduleTime() { if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } else { return scheduleTimeBuilder_.getMessage(); } } /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -6991,8 +5854,6 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -7002,7 +5863,8 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp schedule_time = 1;
        */
-      public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setScheduleTime(
+          com.google.protobuf.Timestamp.Builder builderForValue) {
         if (scheduleTimeBuilder_ == null) {
           scheduleTime_ = builderForValue.build();
           onChanged();
@@ -7013,8 +5875,6 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForV
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -7028,9 +5888,7 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         if (scheduleTimeBuilder_ == null) {
           if (scheduleTime_ != null) {
             scheduleTime_ =
-                com.google.protobuf.Timestamp.newBuilder(scheduleTime_)
-                    .mergeFrom(value)
-                    .buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(scheduleTime_).mergeFrom(value).buildPartial();
           } else {
             scheduleTime_ = value;
           }
@@ -7042,8 +5900,6 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -7065,8 +5921,6 @@ public Builder clearScheduleTime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -7077,13 +5931,11 @@ public Builder clearScheduleTime() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() {
-
+        
         onChanged();
         return getScheduleTimeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -7097,14 +5949,11 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
         if (scheduleTimeBuilder_ != null) {
           return scheduleTimeBuilder_.getMessageOrBuilder();
         } else {
-          return scheduleTime_ == null
-              ? com.google.protobuf.Timestamp.getDefaultInstance()
-              : scheduleTime_;
+          return scheduleTime_ == null ?
+              com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_;
         }
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -7115,32 +5964,26 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
           getScheduleTimeFieldBuilder() {
         if (scheduleTimeBuilder_ == null) {
-          scheduleTimeBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Timestamp,
-                  com.google.protobuf.Timestamp.Builder,
-                  com.google.protobuf.TimestampOrBuilder>(
-                  getScheduleTime(), getParentForChildren(), isClean());
+          scheduleTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                  getScheduleTime(),
+                  getParentForChildren(),
+                  isClean());
           scheduleTime_ = null;
         }
         return scheduleTimeBuilder_;
       }
 
-      private int intervalDurationDays_;
+      private int intervalDurationDays_ ;
       /**
-       *
-       *
        * 
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2; - * * @return The intervalDurationDays. */ @java.lang.Override @@ -7148,41 +5991,34 @@ public int getIntervalDurationDays() { return intervalDurationDays_; } /** - * - * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2; - * * @param value The intervalDurationDays to set. * @return This builder for chaining. */ public Builder setIntervalDurationDays(int value) { - + intervalDurationDays_ = value; onChanged(); return this; } /** - * - * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2; - * * @return This builder for chaining. */ public Builder clearIntervalDurationDays() { - + intervalDurationDays_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7195,13 +6031,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Schedule) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Schedule) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule(); } @@ -7210,16 +6045,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schedule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7234,13 +6069,12 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -7248,7 +6082,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getDefaultInst
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -7257,15 +6090,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -7273,15 +6105,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -7292,14 +6125,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -7308,29 +6138,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -7341,8 +6171,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int MAX_QPS_FIELD_NUMBER = 3; private int maxQps_; /** - * - * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -7351,7 +6179,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -7362,42 +6189,34 @@ public int getMaxQps() { public static final int STARTING_URLS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList startingUrls_; /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; - * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList + getStartingUrlsList() { return startingUrls_; } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; - * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -7405,33 +6224,28 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString + getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } public static final int AUTHENTICATION_FIELD_NUMBER = 5; private com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication_; /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * * @return Whether the authentication field is set. */ @java.lang.Override @@ -7439,26 +6253,19 @@ public boolean hasAuthentication() { return authentication_ != null; } /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * * @return The authentication. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getAuthentication() { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() - : authentication_; + return authentication_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() : authentication_; } /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
@@ -7467,91 +6274,71 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getAuthe
    * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder
-      getAuthenticationOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() {
     return getAuthentication();
   }
 
   public static final int USER_AGENT_FIELD_NUMBER = 6;
   private int userAgent_;
   /**
-   *
-   *
    * 
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override - public int getUserAgentValue() { + @java.lang.Override public int getUserAgentValue() { return userAgent_; } /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent getUserAgent() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.UNRECOGNIZED : result; } public static final int BLACKLIST_PATTERNS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList blacklistPatterns_; /** - * - * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList + getBlacklistPatternsList() { return blacklistPatterns_; } /** - * - * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** - * - * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -7559,33 +6346,28 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** - * - * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } public static final int SCHEDULE_FIELD_NUMBER = 8; private com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule_; /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ @java.lang.Override @@ -7593,25 +6375,18 @@ public boolean hasSchedule() { return schedule_ != null; } /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getSchedule() { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() : schedule_; } /** - * - * *
    * The schedule of the ScanConfig.
    * 
@@ -7619,108 +6394,75 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getSchedule() * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder - getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { return getSchedule(); } public static final int EXPORT_TO_SECURITY_COMMAND_CENTER_FIELD_NUMBER = 10; private int exportToSecurityCommandCenter_; /** - * - * *
    * Controls export of scan configurations and results to Security
    * Command Center.
    * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ - @java.lang.Override - public int getExportToSecurityCommandCenterValue() { + @java.lang.Override public int getExportToSecurityCommandCenterValue() { return exportToSecurityCommandCenter_; } /** - * - * *
    * Controls export of scan configurations and results to Security
    * Command Center.
    * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The exportToSecurityCommandCenter. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter - getExportToSecurityCommandCenter() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.valueOf( - exportToSecurityCommandCenter_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter - .UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.valueOf(exportToSecurityCommandCenter_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.UNRECOGNIZED : result; } public static final int RISK_LEVEL_FIELD_NUMBER = 12; private int riskLevel_; /** - * - * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @return The enum numeric value on the wire for riskLevel. */ - @java.lang.Override - public int getRiskLevelValue() { + @java.lang.Override public int getRiskLevelValue() { return riskLevel_; } /** - * - * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @return The riskLevel. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel getRiskLevel() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel getRiskLevel() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = - com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.valueOf(riskLevel_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.valueOf(riskLevel_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.UNRECOGNIZED : result; } public static final int MANAGED_SCAN_FIELD_NUMBER = 13; private boolean managedScan_; /** - * - * *
    * Whether the scan config is managed by Web Security Scanner, output
    * only.
    * 
* * bool managed_scan = 13; - * * @return The managedScan. */ @java.lang.Override @@ -7731,15 +6473,12 @@ public boolean getManagedScan() { public static final int STATIC_IP_SCAN_FIELD_NUMBER = 14; private boolean staticIpScan_; /** - * - * *
    * Whether the scan configuration has enabled static IP address scan feature.
    * If enabled, the scanner will access applications from static IP addresses.
    * 
* * bool static_ip_scan = 14; - * * @return The staticIpScan. */ @java.lang.Override @@ -7748,7 +6487,6 @@ public boolean getStaticIpScan() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7760,7 +6498,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -7776,9 +6515,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (authentication_ != null) { output.writeMessage(5, getAuthentication()); } - if (userAgent_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED - .getNumber()) { + if (userAgent_ != com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { output.writeEnum(6, userAgent_); } for (int i = 0; i < blacklistPatterns_.size(); i++) { @@ -7787,15 +6524,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (schedule_ != null) { output.writeMessage(8, getSchedule()); } - if (exportToSecurityCommandCenter_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter - .EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED - .getNumber()) { + if (exportToSecurityCommandCenter_ != com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED.getNumber()) { output.writeEnum(10, exportToSecurityCommandCenter_); } - if (riskLevel_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED - .getNumber()) { + if (riskLevel_ != com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(12, riskLevel_); } if (managedScan_ != false) { @@ -7820,7 +6552,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (maxQps_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxQps_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxQps_); } { int dataSize = 0; @@ -7831,12 +6564,12 @@ public int getSerializedSize() { size += 1 * getStartingUrlsList().size(); } if (authentication_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthentication()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAuthentication()); } - if (userAgent_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, userAgent_); + if (userAgent_ != com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, userAgent_); } { int dataSize = 0; @@ -7847,25 +6580,24 @@ public int getSerializedSize() { size += 1 * getBlacklistPatternsList().size(); } if (schedule_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSchedule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSchedule()); } - if (exportToSecurityCommandCenter_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter - .EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(10, exportToSecurityCommandCenter_); + if (exportToSecurityCommandCenter_ != com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, exportToSecurityCommandCenter_); } - if (riskLevel_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, riskLevel_); + if (riskLevel_ != com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, riskLevel_); } if (managedScan_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, managedScan_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, managedScan_); } if (staticIpScan_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, staticIpScan_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, staticIpScan_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -7875,32 +6607,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig other = - (com.google.cloud.websecurityscanner.v1.ScanConfig) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig other = (com.google.cloud.websecurityscanner.v1.ScanConfig) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getMaxQps() != other.getMaxQps()) return false; - if (!getStartingUrlsList().equals(other.getStartingUrlsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (getMaxQps() + != other.getMaxQps()) return false; + if (!getStartingUrlsList() + .equals(other.getStartingUrlsList())) return false; if (hasAuthentication() != other.hasAuthentication()) return false; if (hasAuthentication()) { - if (!getAuthentication().equals(other.getAuthentication())) return false; + if (!getAuthentication() + .equals(other.getAuthentication())) return false; } if (userAgent_ != other.userAgent_) return false; - if (!getBlacklistPatternsList().equals(other.getBlacklistPatternsList())) return false; + if (!getBlacklistPatternsList() + .equals(other.getBlacklistPatternsList())) return false; if (hasSchedule() != other.hasSchedule()) return false; if (hasSchedule()) { - if (!getSchedule().equals(other.getSchedule())) return false; + if (!getSchedule() + .equals(other.getSchedule())) return false; } if (exportToSecurityCommandCenter_ != other.exportToSecurityCommandCenter_) return false; if (riskLevel_ != other.riskLevel_) return false; - if (getManagedScan() != other.getManagedScan()) return false; - if (getStaticIpScan() != other.getStaticIpScan()) return false; + if (getManagedScan() + != other.getManagedScan()) return false; + if (getStaticIpScan() + != other.getStaticIpScan()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -7941,135 +6681,128 @@ public int hashCode() { hash = (37 * hash) + RISK_LEVEL_FIELD_NUMBER; hash = (53 * hash) + riskLevel_; hash = (37 * hash) + MANAGED_SCAN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManagedScan()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getManagedScan()); hash = (37 * hash) + STATIC_IP_SCAN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStaticIpScan()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getStaticIpScan()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A ScanConfig resource contains the configurations to launch a scan.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig) com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.class, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.newBuilder() @@ -8077,15 +6810,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -8125,9 +6859,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; } @java.lang.Override @@ -8146,8 +6880,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig result = - new com.google.cloud.websecurityscanner.v1.ScanConfig(this); + com.google.cloud.websecurityscanner.v1.ScanConfig result = new com.google.cloud.websecurityscanner.v1.ScanConfig(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -8185,39 +6918,38 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig)other); } else { super.mergeFrom(other); return this; @@ -8225,8 +6957,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig other) { - if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -8298,8 +7029,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.ScanConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -8308,13 +7038,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -8322,13 +7049,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -8337,8 +7064,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -8346,14 +7071,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -8361,8 +7087,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -8370,22 +7094,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -8393,18 +7115,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -8412,16 +7131,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -8429,20 +7148,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -8451,21 +7168,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -8473,70 +7189,61 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private int maxQps_; + private int maxQps_ ; /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -8545,7 +7252,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -8553,8 +7259,6 @@ public int getMaxQps() { return maxQps_; } /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -8563,19 +7267,16 @@ public int getMaxQps() {
      * 
* * int32 max_qps = 3; - * * @param value The maxQps to set. * @return This builder for chaining. */ public Builder setMaxQps(int value) { - + maxQps_ = value; onChanged(); return this; } /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -8584,62 +7285,51 @@ public Builder setMaxQps(int value) {
      * 
* * int32 max_qps = 3; - * * @return This builder for chaining. */ public Builder clearMaxQps() { - + maxQps_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList startingUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList startingUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStartingUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { startingUrls_ = new com.google.protobuf.LazyStringArrayList(startingUrls_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList + getStartingUrlsList() { return startingUrls_.getUnmodifiableView(); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -8647,90 +7337,80 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString + getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @param index The index to set the value at. * @param value The startingUrls to set. * @return This builder for chaining. */ - public Builder setStartingUrls(int index, java.lang.String value) { + public Builder setStartingUrls( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @param value The startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrls(java.lang.String value) { + public Builder addStartingUrls( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @param values The startingUrls to add. * @return This builder for chaining. */ - public Builder addAllStartingUrls(java.lang.Iterable values) { + public Builder addAllStartingUrls( + java.lang.Iterable values) { ensureStartingUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, startingUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, startingUrls_); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @return This builder for chaining. */ public Builder clearStartingUrls() { @@ -8740,22 +7420,20 @@ public Builder clearStartingUrls() { return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; - * * @param value The bytes of the startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { + public Builder addStartingUrlsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); @@ -8764,61 +7442,44 @@ public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder> - authenticationBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder> authenticationBuilder_; /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; * @return Whether the authentication field is set. */ public boolean hasAuthentication() { return authenticationBuilder_ != null || authentication_ != null; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; * @return The authentication. */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getAuthentication() { if (authenticationBuilder_ == null) { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() - : authentication_; + return authentication_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() : authentication_; } else { return authenticationBuilder_.getMessage(); } } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; */ - public Builder setAuthentication( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication value) { + public Builder setAuthentication(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8832,15 +7493,12 @@ public Builder setAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; */ public Builder setAuthentication( com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder builderForValue) { @@ -8854,25 +7512,18 @@ public Builder setAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; */ - public Builder mergeAuthentication( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication value) { + public Builder mergeAuthentication(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (authentication_ != null) { authentication_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.newBuilder( - authentication_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.newBuilder(authentication_).mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -8884,15 +7535,12 @@ public Builder mergeAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; */ public Builder clearAuthentication() { if (authenticationBuilder_ == null) { @@ -8906,66 +7554,51 @@ public Builder clearAuthentication() { return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder - getAuthenticationBuilder() { - + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder getAuthenticationBuilder() { + onChanged(); return getAuthenticationFieldBuilder().getBuilder(); } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder - getAuthenticationOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() { if (authenticationBuilder_ != null) { return authenticationBuilder_.getMessageOrBuilder(); } else { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() - : authentication_; + return authentication_ == null ? + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() : authentication_; } } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder> getAuthenticationFieldBuilder() { if (authenticationBuilder_ == null) { - authenticationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder>( - getAuthentication(), getParentForChildren(), isClean()); + authenticationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder>( + getAuthentication(), + getParentForChildren(), + isClean()); authentication_ = null; } return authenticationBuilder_; @@ -8973,67 +7606,51 @@ public Builder clearAuthentication() { private int userAgent_ = 0; /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override - public int getUserAgentValue() { + @java.lang.Override public int getUserAgentValue() { return userAgent_; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @param value The enum numeric value on the wire for userAgent to set. * @return This builder for chaining. */ public Builder setUserAgentValue(int value) { - + userAgent_ = value; onChanged(); return this; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.UNRECOGNIZED : result; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @param value The userAgent to set. * @return This builder for chaining. */ @@ -9041,78 +7658,65 @@ public Builder setUserAgent(com.google.cloud.websecurityscanner.v1.ScanConfig.Us if (value == null) { throw new NullPointerException(); } - + userAgent_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @return This builder for chaining. */ public Builder clearUserAgent() { - + userAgent_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList blacklistPatterns_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureBlacklistPatternsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(blacklistPatterns_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList + getBlacklistPatternsList() { return blacklistPatterns_.getUnmodifiableView(); } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -9120,95 +7724,85 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index to set the value at. * @param value The blacklistPatterns to set. * @return This builder for chaining. */ - public Builder setBlacklistPatterns(int index, java.lang.String value) { + public Builder setBlacklistPatterns( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.set(index, value); onChanged(); return this; } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param value The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatterns(java.lang.String value) { + public Builder addBlacklistPatterns( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); return this; } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param values The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addAllBlacklistPatterns(java.lang.Iterable values) { + public Builder addAllBlacklistPatterns( + java.lang.Iterable values) { ensureBlacklistPatternsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blacklistPatterns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blacklistPatterns_); onChanged(); return this; } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return This builder for chaining. */ public Builder clearBlacklistPatterns() { @@ -9218,23 +7812,21 @@ public Builder clearBlacklistPatterns() { return this; } /** - * - * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param value The bytes of the blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { + public Builder addBlacklistPatternsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); @@ -9243,47 +7835,34 @@ public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder> - scheduleBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder> scheduleBuilder_; /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ public boolean hasSchedule() { return scheduleBuilder_ != null || schedule_ != null; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getSchedule() { if (scheduleBuilder_ == null) { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() : schedule_; } else { return scheduleBuilder_.getMessage(); } } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -9304,8 +7883,6 @@ public Builder setSchedule(com.google.cloud.websecurityscanner.v1.ScanConfig.Sch return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -9324,8 +7901,6 @@ public Builder setSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -9336,9 +7911,7 @@ public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1.ScanConfig.S if (scheduleBuilder_ == null) { if (schedule_ != null) { schedule_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.newBuilder(schedule_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.newBuilder(schedule_).mergeFrom(value).buildPartial(); } else { schedule_ = value; } @@ -9350,8 +7923,6 @@ public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1.ScanConfig.S return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -9370,8 +7941,6 @@ public Builder clearSchedule() { return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -9379,32 +7948,26 @@ public Builder clearSchedule() { * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder getScheduleBuilder() { - + onChanged(); return getScheduleFieldBuilder().getBuilder(); } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder - getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { if (scheduleBuilder_ != null) { return scheduleBuilder_.getMessageOrBuilder(); } else { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() : schedule_; } } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -9412,17 +7975,14 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder getSch * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder> getScheduleFieldBuilder() { if (scheduleBuilder_ == null) { - scheduleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder>( - getSchedule(), getParentForChildren(), isClean()); + scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder>( + getSchedule(), + getParentForChildren(), + isClean()); schedule_ = null; } return scheduleBuilder_; @@ -9430,111 +7990,78 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder getSch private int exportToSecurityCommandCenter_ = 0; /** - * - * *
      * Controls export of scan configurations and results to Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ - @java.lang.Override - public int getExportToSecurityCommandCenterValue() { + @java.lang.Override public int getExportToSecurityCommandCenterValue() { return exportToSecurityCommandCenter_; } /** - * - * *
      * Controls export of scan configurations and results to Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @param value The enum numeric value on the wire for exportToSecurityCommandCenter to set. * @return This builder for chaining. */ public Builder setExportToSecurityCommandCenterValue(int value) { - + exportToSecurityCommandCenter_ = value; onChanged(); return this; } /** - * - * *
      * Controls export of scan configurations and results to Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The exportToSecurityCommandCenter. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter - getExportToSecurityCommandCenter() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.valueOf( - exportToSecurityCommandCenter_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter - .UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.valueOf(exportToSecurityCommandCenter_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.UNRECOGNIZED : result; } /** - * - * *
      * Controls export of scan configurations and results to Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @param value The exportToSecurityCommandCenter to set. * @return This builder for chaining. */ - public Builder setExportToSecurityCommandCenter( - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter value) { + public Builder setExportToSecurityCommandCenter(com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter value) { if (value == null) { throw new NullPointerException(); } - + exportToSecurityCommandCenter_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Controls export of scan configurations and results to Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return This builder for chaining. */ public Builder clearExportToSecurityCommandCenter() { - + exportToSecurityCommandCenter_ = 0; onChanged(); return this; @@ -9542,67 +8069,51 @@ public Builder clearExportToSecurityCommandCenter() { private int riskLevel_ = 0; /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @return The enum numeric value on the wire for riskLevel. */ - @java.lang.Override - public int getRiskLevelValue() { + @java.lang.Override public int getRiskLevelValue() { return riskLevel_; } /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @param value The enum numeric value on the wire for riskLevel to set. * @return This builder for chaining. */ public Builder setRiskLevelValue(int value) { - + riskLevel_ = value; onChanged(); return this; } /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @return The riskLevel. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel getRiskLevel() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = - com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.valueOf(riskLevel_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.valueOf(riskLevel_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.UNRECOGNIZED : result; } /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @param value The riskLevel to set. * @return This builder for chaining. */ @@ -9610,40 +8121,34 @@ public Builder setRiskLevel(com.google.cloud.websecurityscanner.v1.ScanConfig.Ri if (value == null) { throw new NullPointerException(); } - + riskLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @return This builder for chaining. */ public Builder clearRiskLevel() { - + riskLevel_ = 0; onChanged(); return this; } - private boolean managedScan_; + private boolean managedScan_ ; /** - * - * *
      * Whether the scan config is managed by Web Security Scanner, output
      * only.
      * 
* * bool managed_scan = 13; - * * @return The managedScan. */ @java.lang.Override @@ -9651,54 +8156,45 @@ public boolean getManagedScan() { return managedScan_; } /** - * - * *
      * Whether the scan config is managed by Web Security Scanner, output
      * only.
      * 
* * bool managed_scan = 13; - * * @param value The managedScan to set. * @return This builder for chaining. */ public Builder setManagedScan(boolean value) { - + managedScan_ = value; onChanged(); return this; } /** - * - * *
      * Whether the scan config is managed by Web Security Scanner, output
      * only.
      * 
* * bool managed_scan = 13; - * * @return This builder for chaining. */ public Builder clearManagedScan() { - + managedScan_ = false; onChanged(); return this; } - private boolean staticIpScan_; + private boolean staticIpScan_ ; /** - * - * *
      * Whether the scan configuration has enabled static IP address scan feature.
      * If enabled, the scanner will access applications from static IP addresses.
      * 
* * bool static_ip_scan = 14; - * * @return The staticIpScan. */ @java.lang.Override @@ -9706,45 +8202,39 @@ public boolean getStaticIpScan() { return staticIpScan_; } /** - * - * *
      * Whether the scan configuration has enabled static IP address scan feature.
      * If enabled, the scanner will access applications from static IP addresses.
      * 
* * bool static_ip_scan = 14; - * * @param value The staticIpScan to set. * @return This builder for chaining. */ public Builder setStaticIpScan(boolean value) { - + staticIpScan_ = value; onChanged(); return this; } /** - * - * *
      * Whether the scan configuration has enabled static IP address scan feature.
      * If enabled, the scanner will access applications from static IP addresses.
      * 
* * bool static_ip_scan = 14; - * * @return This builder for chaining. */ public Builder clearStaticIpScan() { - + staticIpScan_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -9754,12 +8244,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig) private static final com.google.cloud.websecurityscanner.v1.ScanConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig(); } @@ -9768,16 +8258,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9792,4 +8282,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java similarity index 75% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java index cbde79d4..68d6d205 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_config_error.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Defines a custom error message used by CreateScanConfig and UpdateScanConfig
  * APIs when scan configuration validation fails. It is also reported as part of
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfigError}
  */
-public final class ScanConfigError extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanConfigError extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfigError)
     ScanConfigErrorOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanConfigError.newBuilder() to construct.
   private ScanConfigError(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanConfigError() {
     code_ = 0;
     fieldName_ = "";
@@ -47,15 +29,16 @@ private ScanConfigError() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanConfigError();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanConfigError(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,27 +57,25 @@ private ScanConfigError(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              code_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            code_ = rawValue;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              fieldName_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            fieldName_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -102,31 +83,27 @@ private ScanConfigError(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.ScanConfigError.class,
-            com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder.class);
+            com.google.cloud.websecurityscanner.v1.ScanConfigError.class, com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Output only.
    * Defines an error reason code.
@@ -135,10 +112,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanConfigError.Code}
    */
-  public enum Code implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Code
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * There is no error.
      * 
@@ -147,8 +123,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0, 0), /** - * - * *
      * Indicates an internal server error.
      * Please DO NOT USE THIS ERROR CODE unless the root cause is truly unknown.
@@ -158,8 +132,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     INTERNAL_ERROR(2, 1),
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot validate the scan
      * settings due to an App Engine API backend error.
@@ -169,8 +141,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     APPENGINE_API_BACKEND_ERROR(3, 2),
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot access the
      * App Engine API to validate scan settings.
@@ -180,8 +150,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     APPENGINE_API_NOT_ACCESSIBLE(4, 3),
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but the Default Host of the
      * App Engine is not set.
@@ -191,8 +159,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     APPENGINE_DEFAULT_HOST_MISSING(5, 4),
     /**
-     *
-     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -201,8 +167,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CANNOT_USE_GOOGLE_COM_ACCOUNT(6, 6), /** - * - * *
      * The account of the scan creator can not be used for scanning.
      * 
@@ -211,8 +175,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CANNOT_USE_OWNER_ACCOUNT(7, 7), /** - * - * *
      * This scan targets Compute Engine, but we cannot validate scan settings
      * due to a Compute Engine API backend error.
@@ -222,8 +184,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     COMPUTE_API_BACKEND_ERROR(8, 8),
     /**
-     *
-     *
      * 
      * This scan targets Compute Engine, but we cannot access the Compute Engine
      * API to validate the scan settings.
@@ -233,8 +193,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     COMPUTE_API_NOT_ACCESSIBLE(9, 9),
     /**
-     *
-     *
      * 
      * The Custom Login URL does not belong to the current project.
      * 
@@ -243,8 +201,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT(10, 10), /** - * - * *
      * The Custom Login URL is malformed (can not be parsed).
      * 
@@ -253,8 +209,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CUSTOM_LOGIN_URL_MALFORMED(11, 11), /** - * - * *
      * The Custom Login URL is mapped to a non-routable IP address in DNS.
      * 
@@ -263,8 +217,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS(12, 12), /** - * - * *
      * The Custom Login URL is mapped to an IP address which is not reserved for
      * the current project.
@@ -274,8 +226,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS(13, 13),
     /**
-     *
-     *
      * 
      * The Custom Login URL has a non-routable IP address.
      * 
@@ -284,8 +234,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS(14, 14), /** - * - * *
      * The Custom Login URL has an IP address which is not reserved for the
      * current project.
@@ -295,8 +243,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS(15, 15),
     /**
-     *
-     *
      * 
      * Another scan with the same name (case-sensitive) already exists.
      * 
@@ -305,8 +251,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ DUPLICATE_SCAN_NAME(16, 16), /** - * - * *
      * A field is set to an invalid value.
      * 
@@ -315,8 +259,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ INVALID_FIELD_VALUE(17, 18), /** - * - * *
      * There was an error trying to authenticate to the scan target.
      * 
@@ -325,8 +267,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ FAILED_TO_AUTHENTICATE_TO_TARGET(18, 19), /** - * - * *
      * Finding type value is not specified in the list findings request.
      * 
@@ -335,8 +275,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ FINDING_TYPE_UNSPECIFIED(19, 20), /** - * - * *
      * Scan targets Compute Engine, yet current project was not whitelisted for
      * Google Compute Engine Scanning Alpha access.
@@ -346,8 +284,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     FORBIDDEN_TO_SCAN_COMPUTE(20, 21),
     /**
-     *
-     *
      * 
      * User tries to update managed scan
      * 
@@ -356,8 +292,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ FORBIDDEN_UPDATE_TO_MANAGED_SCAN(21, 43), /** - * - * *
      * The supplied filter is malformed. For example, it can not be parsed, does
      * not have a filter type in expression, or the same filter type appears
@@ -368,8 +302,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     MALFORMED_FILTER(22, 22),
     /**
-     *
-     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -378,8 +310,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ MALFORMED_RESOURCE_NAME(23, 23), /** - * - * *
      * The current project is not in an active state.
      * 
@@ -388,8 +318,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ PROJECT_INACTIVE(24, 24), /** - * - * *
      * A required field is not set.
      * 
@@ -398,8 +326,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ REQUIRED_FIELD(25, 25), /** - * - * *
      * Project id, scanconfig id, scanrun id, or finding id are not consistent
      * with each other in resource name.
@@ -409,8 +335,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESOURCE_NAME_INCONSISTENT(26, 26),
     /**
-     *
-     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -419,8 +343,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SCAN_ALREADY_RUNNING(27, 27), /** - * - * *
      * The scan that was requested to be stopped is not running.
      * 
@@ -429,8 +351,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SCAN_NOT_RUNNING(28, 28), /** - * - * *
      * One of the seed URLs does not belong to the current project.
      * 
@@ -439,8 +359,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT(29, 29), /** - * - * *
      * One of the seed URLs is malformed (can not be parsed).
      * 
@@ -449,8 +367,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SEED_URL_MALFORMED(30, 30), /** - * - * *
      * One of the seed URLs is mapped to a non-routable IP address in DNS.
      * 
@@ -459,8 +375,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS(31, 31), /** - * - * *
      * One of the seed URLs is mapped to an IP address which is not reserved
      * for the current project.
@@ -470,8 +384,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS(32, 32),
     /**
-     *
-     *
      * 
      * One of the seed URLs has on-routable IP address.
      * 
@@ -480,8 +392,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS(33, 33), /** - * - * *
      * One of the seed URLs has an IP address that is not reserved
      * for the current project.
@@ -491,8 +401,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SEED_URL_HAS_UNRESERVED_IP_ADDRESS(34, 35),
     /**
-     *
-     *
      * 
      * The Web Security Scanner service account is not configured under the
      * project.
@@ -502,8 +410,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SERVICE_ACCOUNT_NOT_CONFIGURED(35, 36),
     /**
-     *
-     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -512,8 +418,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ TOO_MANY_SCANS(36, 37), /** - * - * *
      * Resolving the details of the current project fails.
      * 
@@ -522,8 +426,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ UNABLE_TO_RESOLVE_PROJECT_INFO(37, 38), /** - * - * *
      * One or more blacklist patterns were in the wrong format.
      * 
@@ -532,8 +434,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ UNSUPPORTED_BLACKLIST_PATTERN_FORMAT(38, 39), /** - * - * *
      * The supplied filter is not supported.
      * 
@@ -542,8 +442,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ UNSUPPORTED_FILTER(39, 40), /** - * - * *
      * The supplied finding type is not supported. For example, we do not
      * provide findings of the given finding type.
@@ -553,8 +451,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     UNSUPPORTED_FINDING_TYPE(40, 41),
     /**
-     *
-     *
      * 
      * The URL scheme of one or more of the supplied URLs is not supported.
      * 
@@ -566,8 +462,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * There is no error.
      * 
@@ -576,8 +470,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final Code OK = CODE_UNSPECIFIED; /** - * - * *
      * There is no error.
      * 
@@ -586,8 +478,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * There is no error.
      * 
@@ -596,8 +486,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OK_VALUE = 0; /** - * - * *
      * Indicates an internal server error.
      * Please DO NOT USE THIS ERROR CODE unless the root cause is truly unknown.
@@ -607,8 +495,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INTERNAL_ERROR_VALUE = 1;
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot validate the scan
      * settings due to an App Engine API backend error.
@@ -618,8 +504,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int APPENGINE_API_BACKEND_ERROR_VALUE = 2;
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot access the
      * App Engine API to validate scan settings.
@@ -629,8 +513,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int APPENGINE_API_NOT_ACCESSIBLE_VALUE = 3;
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but the Default Host of the
      * App Engine is not set.
@@ -640,8 +522,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int APPENGINE_DEFAULT_HOST_MISSING_VALUE = 4;
     /**
-     *
-     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -650,8 +530,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANNOT_USE_GOOGLE_COM_ACCOUNT_VALUE = 6; /** - * - * *
      * The account of the scan creator can not be used for scanning.
      * 
@@ -660,8 +538,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANNOT_USE_OWNER_ACCOUNT_VALUE = 7; /** - * - * *
      * This scan targets Compute Engine, but we cannot validate scan settings
      * due to a Compute Engine API backend error.
@@ -671,8 +547,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int COMPUTE_API_BACKEND_ERROR_VALUE = 8;
     /**
-     *
-     *
      * 
      * This scan targets Compute Engine, but we cannot access the Compute Engine
      * API to validate the scan settings.
@@ -682,8 +556,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int COMPUTE_API_NOT_ACCESSIBLE_VALUE = 9;
     /**
-     *
-     *
      * 
      * The Custom Login URL does not belong to the current project.
      * 
@@ -692,8 +564,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT_VALUE = 10; /** - * - * *
      * The Custom Login URL is malformed (can not be parsed).
      * 
@@ -702,8 +572,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_LOGIN_URL_MALFORMED_VALUE = 11; /** - * - * *
      * The Custom Login URL is mapped to a non-routable IP address in DNS.
      * 
@@ -712,8 +580,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS_VALUE = 12; /** - * - * *
      * The Custom Login URL is mapped to an IP address which is not reserved for
      * the current project.
@@ -723,8 +589,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS_VALUE = 13;
     /**
-     *
-     *
      * 
      * The Custom Login URL has a non-routable IP address.
      * 
@@ -733,8 +597,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS_VALUE = 14; /** - * - * *
      * The Custom Login URL has an IP address which is not reserved for the
      * current project.
@@ -744,8 +606,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS_VALUE = 15;
     /**
-     *
-     *
      * 
      * Another scan with the same name (case-sensitive) already exists.
      * 
@@ -754,8 +614,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DUPLICATE_SCAN_NAME_VALUE = 16; /** - * - * *
      * A field is set to an invalid value.
      * 
@@ -764,8 +622,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INVALID_FIELD_VALUE_VALUE = 18; /** - * - * *
      * There was an error trying to authenticate to the scan target.
      * 
@@ -774,8 +630,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_TO_AUTHENTICATE_TO_TARGET_VALUE = 19; /** - * - * *
      * Finding type value is not specified in the list findings request.
      * 
@@ -784,8 +638,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FINDING_TYPE_UNSPECIFIED_VALUE = 20; /** - * - * *
      * Scan targets Compute Engine, yet current project was not whitelisted for
      * Google Compute Engine Scanning Alpha access.
@@ -795,8 +647,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FORBIDDEN_TO_SCAN_COMPUTE_VALUE = 21;
     /**
-     *
-     *
      * 
      * User tries to update managed scan
      * 
@@ -805,8 +655,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FORBIDDEN_UPDATE_TO_MANAGED_SCAN_VALUE = 43; /** - * - * *
      * The supplied filter is malformed. For example, it can not be parsed, does
      * not have a filter type in expression, or the same filter type appears
@@ -817,8 +665,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MALFORMED_FILTER_VALUE = 22;
     /**
-     *
-     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -827,8 +673,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MALFORMED_RESOURCE_NAME_VALUE = 23; /** - * - * *
      * The current project is not in an active state.
      * 
@@ -837,8 +681,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROJECT_INACTIVE_VALUE = 24; /** - * - * *
      * A required field is not set.
      * 
@@ -847,8 +689,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REQUIRED_FIELD_VALUE = 25; /** - * - * *
      * Project id, scanconfig id, scanrun id, or finding id are not consistent
      * with each other in resource name.
@@ -858,8 +698,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESOURCE_NAME_INCONSISTENT_VALUE = 26;
     /**
-     *
-     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -868,8 +706,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCAN_ALREADY_RUNNING_VALUE = 27; /** - * - * *
      * The scan that was requested to be stopped is not running.
      * 
@@ -878,8 +714,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCAN_NOT_RUNNING_VALUE = 28; /** - * - * *
      * One of the seed URLs does not belong to the current project.
      * 
@@ -888,8 +722,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT_VALUE = 29; /** - * - * *
      * One of the seed URLs is malformed (can not be parsed).
      * 
@@ -898,8 +730,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEED_URL_MALFORMED_VALUE = 30; /** - * - * *
      * One of the seed URLs is mapped to a non-routable IP address in DNS.
      * 
@@ -908,8 +738,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS_VALUE = 31; /** - * - * *
      * One of the seed URLs is mapped to an IP address which is not reserved
      * for the current project.
@@ -919,8 +747,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS_VALUE = 32;
     /**
-     *
-     *
      * 
      * One of the seed URLs has on-routable IP address.
      * 
@@ -929,8 +755,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS_VALUE = 33; /** - * - * *
      * One of the seed URLs has an IP address that is not reserved
      * for the current project.
@@ -940,8 +764,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SEED_URL_HAS_UNRESERVED_IP_ADDRESS_VALUE = 35;
     /**
-     *
-     *
      * 
      * The Web Security Scanner service account is not configured under the
      * project.
@@ -951,8 +773,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SERVICE_ACCOUNT_NOT_CONFIGURED_VALUE = 36;
     /**
-     *
-     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -961,8 +781,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TOO_MANY_SCANS_VALUE = 37; /** - * - * *
      * Resolving the details of the current project fails.
      * 
@@ -971,8 +789,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNABLE_TO_RESOLVE_PROJECT_INFO_VALUE = 38; /** - * - * *
      * One or more blacklist patterns were in the wrong format.
      * 
@@ -981,8 +797,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSUPPORTED_BLACKLIST_PATTERN_FORMAT_VALUE = 39; /** - * - * *
      * The supplied filter is not supported.
      * 
@@ -991,8 +805,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSUPPORTED_FILTER_VALUE = 40; /** - * - * *
      * The supplied finding type is not supported. For example, we do not
      * provide findings of the given finding type.
@@ -1002,8 +814,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int UNSUPPORTED_FINDING_TYPE_VALUE = 41;
     /**
-     *
-     *
      * 
      * The URL scheme of one or more of the supplied URLs is not supported.
      * 
@@ -1012,6 +822,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSUPPORTED_URL_SCHEME_VALUE = 42; + public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( @@ -1036,174 +847,91 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: - return CODE_UNSPECIFIED; - case 1: - return INTERNAL_ERROR; - case 2: - return APPENGINE_API_BACKEND_ERROR; - case 3: - return APPENGINE_API_NOT_ACCESSIBLE; - case 4: - return APPENGINE_DEFAULT_HOST_MISSING; - case 6: - return CANNOT_USE_GOOGLE_COM_ACCOUNT; - case 7: - return CANNOT_USE_OWNER_ACCOUNT; - case 8: - return COMPUTE_API_BACKEND_ERROR; - case 9: - return COMPUTE_API_NOT_ACCESSIBLE; - case 10: - return CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; - case 11: - return CUSTOM_LOGIN_URL_MALFORMED; - case 12: - return CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; - case 13: - return CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS; - case 14: - return CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS; - case 15: - return CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS; - case 16: - return DUPLICATE_SCAN_NAME; - case 18: - return INVALID_FIELD_VALUE; - case 19: - return FAILED_TO_AUTHENTICATE_TO_TARGET; - case 20: - return FINDING_TYPE_UNSPECIFIED; - case 21: - return FORBIDDEN_TO_SCAN_COMPUTE; - case 43: - return FORBIDDEN_UPDATE_TO_MANAGED_SCAN; - case 22: - return MALFORMED_FILTER; - case 23: - return MALFORMED_RESOURCE_NAME; - case 24: - return PROJECT_INACTIVE; - case 25: - return REQUIRED_FIELD; - case 26: - return RESOURCE_NAME_INCONSISTENT; - case 27: - return SCAN_ALREADY_RUNNING; - case 28: - return SCAN_NOT_RUNNING; - case 29: - return SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; - case 30: - return SEED_URL_MALFORMED; - case 31: - return SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; - case 32: - return SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS; - case 33: - return SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS; - case 35: - return SEED_URL_HAS_UNRESERVED_IP_ADDRESS; - case 36: - return SERVICE_ACCOUNT_NOT_CONFIGURED; - case 37: - return TOO_MANY_SCANS; - case 38: - return UNABLE_TO_RESOLVE_PROJECT_INFO; - case 39: - return UNSUPPORTED_BLACKLIST_PATTERN_FORMAT; - case 40: - return UNSUPPORTED_FILTER; - case 41: - return UNSUPPORTED_FINDING_TYPE; - case 42: - return UNSUPPORTED_URL_SCHEME; - default: - return null; + case 0: return CODE_UNSPECIFIED; + case 1: return INTERNAL_ERROR; + case 2: return APPENGINE_API_BACKEND_ERROR; + case 3: return APPENGINE_API_NOT_ACCESSIBLE; + case 4: return APPENGINE_DEFAULT_HOST_MISSING; + case 6: return CANNOT_USE_GOOGLE_COM_ACCOUNT; + case 7: return CANNOT_USE_OWNER_ACCOUNT; + case 8: return COMPUTE_API_BACKEND_ERROR; + case 9: return COMPUTE_API_NOT_ACCESSIBLE; + case 10: return CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; + case 11: return CUSTOM_LOGIN_URL_MALFORMED; + case 12: return CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; + case 13: return CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS; + case 14: return CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS; + case 15: return CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS; + case 16: return DUPLICATE_SCAN_NAME; + case 18: return INVALID_FIELD_VALUE; + case 19: return FAILED_TO_AUTHENTICATE_TO_TARGET; + case 20: return FINDING_TYPE_UNSPECIFIED; + case 21: return FORBIDDEN_TO_SCAN_COMPUTE; + case 43: return FORBIDDEN_UPDATE_TO_MANAGED_SCAN; + case 22: return MALFORMED_FILTER; + case 23: return MALFORMED_RESOURCE_NAME; + case 24: return PROJECT_INACTIVE; + case 25: return REQUIRED_FIELD; + case 26: return RESOURCE_NAME_INCONSISTENT; + case 27: return SCAN_ALREADY_RUNNING; + case 28: return SCAN_NOT_RUNNING; + case 29: return SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; + case 30: return SEED_URL_MALFORMED; + case 31: return SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; + case 32: return SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS; + case 33: return SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS; + case 35: return SEED_URL_HAS_UNRESERVED_IP_ADDRESS; + case 36: return SERVICE_ACCOUNT_NOT_CONFIGURED; + case 37: return TOO_MANY_SCANS; + case 38: return UNABLE_TO_RESOLVE_PROJECT_INFO; + case 39: return UNSUPPORTED_BLACKLIST_PATTERN_FORMAT; + case 40: return UNSUPPORTED_FILTER; + case 41: return UNSUPPORTED_FINDING_TYPE; + case 42: return UNSUPPORTED_URL_SCHEME; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (index == -1) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(index); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigError.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigError.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = getStaticValuesArray(); - private static Code[] getStaticValuesArray() { return new Code[] { - CODE_UNSPECIFIED, - OK, - INTERNAL_ERROR, - APPENGINE_API_BACKEND_ERROR, - APPENGINE_API_NOT_ACCESSIBLE, - APPENGINE_DEFAULT_HOST_MISSING, - CANNOT_USE_GOOGLE_COM_ACCOUNT, - CANNOT_USE_OWNER_ACCOUNT, - COMPUTE_API_BACKEND_ERROR, - COMPUTE_API_NOT_ACCESSIBLE, - CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, - CUSTOM_LOGIN_URL_MALFORMED, - CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, - CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS, - CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS, - CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS, - DUPLICATE_SCAN_NAME, - INVALID_FIELD_VALUE, - FAILED_TO_AUTHENTICATE_TO_TARGET, - FINDING_TYPE_UNSPECIFIED, - FORBIDDEN_TO_SCAN_COMPUTE, - FORBIDDEN_UPDATE_TO_MANAGED_SCAN, - MALFORMED_FILTER, - MALFORMED_RESOURCE_NAME, - PROJECT_INACTIVE, - REQUIRED_FIELD, - RESOURCE_NAME_INCONSISTENT, - SCAN_ALREADY_RUNNING, - SCAN_NOT_RUNNING, - SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, - SEED_URL_MALFORMED, - SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, - SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS, - SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS, - SEED_URL_HAS_UNRESERVED_IP_ADDRESS, - SERVICE_ACCOUNT_NOT_CONFIGURED, - TOO_MANY_SCANS, - UNABLE_TO_RESOLVE_PROJECT_INFO, - UNSUPPORTED_BLACKLIST_PATTERN_FORMAT, - UNSUPPORTED_FILTER, - UNSUPPORTED_FINDING_TYPE, - UNSUPPORTED_URL_SCHEME, + CODE_UNSPECIFIED, OK, INTERNAL_ERROR, APPENGINE_API_BACKEND_ERROR, APPENGINE_API_NOT_ACCESSIBLE, APPENGINE_DEFAULT_HOST_MISSING, CANNOT_USE_GOOGLE_COM_ACCOUNT, CANNOT_USE_OWNER_ACCOUNT, COMPUTE_API_BACKEND_ERROR, COMPUTE_API_NOT_ACCESSIBLE, CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, CUSTOM_LOGIN_URL_MALFORMED, CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS, CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS, CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS, DUPLICATE_SCAN_NAME, INVALID_FIELD_VALUE, FAILED_TO_AUTHENTICATE_TO_TARGET, FINDING_TYPE_UNSPECIFIED, FORBIDDEN_TO_SCAN_COMPUTE, FORBIDDEN_UPDATE_TO_MANAGED_SCAN, MALFORMED_FILTER, MALFORMED_RESOURCE_NAME, PROJECT_INACTIVE, REQUIRED_FIELD, RESOURCE_NAME_INCONSISTENT, SCAN_ALREADY_RUNNING, SCAN_NOT_RUNNING, SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, SEED_URL_MALFORMED, SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS, SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS, SEED_URL_HAS_UNRESERVED_IP_ADDRESS, SERVICE_ACCOUNT_NOT_CONFIGURED, TOO_MANY_SCANS, UNABLE_TO_RESOLVE_PROJECT_INFO, UNSUPPORTED_BLACKLIST_PATTERN_FORMAT, UNSUPPORTED_FILTER, UNSUPPORTED_FINDING_TYPE, UNSUPPORTED_URL_SCHEME, }; } - - public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1225,46 +953,33 @@ private Code(int index, int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** - * - * *
    * Output only. Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Output only. Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = - com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.UNRECOGNIZED : result; } public static final int FIELD_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object fieldName_; /** - * - * *
    * Output only. Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -1273,7 +988,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode() {
    * 
* * string field_name = 2; - * * @return The fieldName. */ @java.lang.Override @@ -1282,15 +996,14 @@ public java.lang.String getFieldName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldName_ = s; return s; } } /** - * - * *
    * Output only. Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -1299,15 +1012,16 @@ public java.lang.String getFieldName() {
    * 
* * string field_name = 2; - * * @return The bytes for fieldName. */ @java.lang.Override - public com.google.protobuf.ByteString getFieldNameBytes() { + public com.google.protobuf.ByteString + getFieldNameBytes() { java.lang.Object ref = fieldName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fieldName_ = b; return b; } else { @@ -1316,7 +1030,6 @@ public com.google.protobuf.ByteString getFieldNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1328,10 +1041,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { @@ -1346,10 +1058,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldName_); @@ -1362,16 +1073,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfigError)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfigError other = - (com.google.cloud.websecurityscanner.v1.ScanConfigError) obj; + com.google.cloud.websecurityscanner.v1.ScanConfigError other = (com.google.cloud.websecurityscanner.v1.ScanConfigError) obj; if (code_ != other.code_) return false; - if (!getFieldName().equals(other.getFieldName())) return false; + if (!getFieldName() + .equals(other.getFieldName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1393,104 +1104,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanConfigError prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfigError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Defines a custom error message used by CreateScanConfig and UpdateScanConfig
    * APIs when scan configuration validation fails. It is also reported as part of
@@ -1500,23 +1203,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfigError}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfigError)
       com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.ScanConfigError.class,
-              com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder.class);
+              com.google.cloud.websecurityscanner.v1.ScanConfigError.class, com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.ScanConfigError.newBuilder()
@@ -1524,15 +1225,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1544,9 +1246,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
     }
 
     @java.lang.Override
@@ -1565,8 +1267,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.ScanConfigError buildPartial() {
-      com.google.cloud.websecurityscanner.v1.ScanConfigError result =
-          new com.google.cloud.websecurityscanner.v1.ScanConfigError(this);
+      com.google.cloud.websecurityscanner.v1.ScanConfigError result = new com.google.cloud.websecurityscanner.v1.ScanConfigError(this);
       result.code_ = code_;
       result.fieldName_ = fieldName_;
       onBuilt();
@@ -1577,39 +1278,38 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfigError) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfigError) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfigError)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1617,8 +1317,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfigError other) {
-      if (other == com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance()) return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -1645,8 +1344,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1.ScanConfigError) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfigError) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1658,67 +1356,51 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * Output only. Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Output only. Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = - com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ @@ -1726,24 +1408,21 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1.ScanConfigError.Co if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -1751,8 +1430,6 @@ public Builder clearCode() { private java.lang.Object fieldName_ = ""; /** - * - * *
      * Output only. Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1761,13 +1438,13 @@ public Builder clearCode() {
      * 
* * string field_name = 2; - * * @return The fieldName. */ public java.lang.String getFieldName() { java.lang.Object ref = fieldName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldName_ = s; return s; @@ -1776,8 +1453,6 @@ public java.lang.String getFieldName() { } } /** - * - * *
      * Output only. Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1786,14 +1461,15 @@ public java.lang.String getFieldName() {
      * 
* * string field_name = 2; - * * @return The bytes for fieldName. */ - public com.google.protobuf.ByteString getFieldNameBytes() { + public com.google.protobuf.ByteString + getFieldNameBytes() { java.lang.Object ref = fieldName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fieldName_ = b; return b; } else { @@ -1801,8 +1477,6 @@ public com.google.protobuf.ByteString getFieldNameBytes() { } } /** - * - * *
      * Output only. Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1811,22 +1485,20 @@ public com.google.protobuf.ByteString getFieldNameBytes() {
      * 
* * string field_name = 2; - * * @param value The fieldName to set. * @return This builder for chaining. */ - public Builder setFieldName(java.lang.String value) { + public Builder setFieldName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fieldName_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1835,18 +1507,15 @@ public Builder setFieldName(java.lang.String value) {
      * 
* * string field_name = 2; - * * @return This builder for chaining. */ public Builder clearFieldName() { - + fieldName_ = getDefaultInstance().getFieldName(); onChanged(); return this; } /** - * - * *
      * Output only. Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1855,23 +1524,23 @@ public Builder clearFieldName() {
      * 
* * string field_name = 2; - * * @param value The bytes for fieldName to set. * @return This builder for chaining. */ - public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + public Builder setFieldNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1881,12 +1550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfigError) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfigError) private static final com.google.cloud.websecurityscanner.v1.ScanConfigError DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfigError(); } @@ -1895,16 +1564,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanConfigError getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanConfigError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfigError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanConfigError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanConfigError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1919,4 +1588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanConfigError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java index 68b82547..c95f6cd7 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_config_error.proto package com.google.cloud.websecurityscanner.v1; -public interface ScanConfigErrorOrBuilder - extends +public interface ScanConfigErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfigError) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * Output only. Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; - * * @return The code. */ com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode(); /** - * - * *
    * Output only. Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -59,13 +35,10 @@ public interface ScanConfigErrorOrBuilder
    * 
* * string field_name = 2; - * * @return The fieldName. */ java.lang.String getFieldName(); /** - * - * *
    * Output only. Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -74,8 +47,8 @@ public interface ScanConfigErrorOrBuilder
    * 
* * string field_name = 2; - * * @return The bytes for fieldName. */ - com.google.protobuf.ByteString getFieldNameBytes(); + com.google.protobuf.ByteString + getFieldNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java new file mode 100644 index 00000000..89f5aaa1 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_config_error.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanConfigErrorProto { + private ScanConfigErrorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/websecurityscanner/v1/sca" + + "n_config_error.proto\022\"google.cloud.webse" + + "curityscanner.v1\"\351\013\n\017ScanConfigError\022F\n\004" + + "code\030\001 \001(\01628.google.cloud.websecuritysca" + + "nner.v1.ScanConfigError.Code\022\022\n\nfield_na" + + "me\030\002 \001(\t\"\371\n\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022" + + "\006\n\002OK\020\000\022\022\n\016INTERNAL_ERROR\020\001\022\037\n\033APPENGINE" + + "_API_BACKEND_ERROR\020\002\022 \n\034APPENGINE_API_NO" + + "T_ACCESSIBLE\020\003\022\"\n\036APPENGINE_DEFAULT_HOST" + + "_MISSING\020\004\022!\n\035CANNOT_USE_GOOGLE_COM_ACCO" + + "UNT\020\006\022\034\n\030CANNOT_USE_OWNER_ACCOUNT\020\007\022\035\n\031C" + + "OMPUTE_API_BACKEND_ERROR\020\010\022\036\n\032COMPUTE_AP" + + "I_NOT_ACCESSIBLE\020\t\0227\n3CUSTOM_LOGIN_URL_D" + + "OES_NOT_BELONG_TO_CURRENT_PROJECT\020\n\022\036\n\032C" + + "USTOM_LOGIN_URL_MALFORMED\020\013\0223\n/CUSTOM_LO" + + "GIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\020\014" + + "\0221\n-CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVE" + + "D_ADDRESS\020\r\0220\n,CUSTOM_LOGIN_URL_HAS_NON_" + + "ROUTABLE_IP_ADDRESS\020\016\022.\n*CUSTOM_LOGIN_UR" + + "L_HAS_UNRESERVED_IP_ADDRESS\020\017\022\027\n\023DUPLICA" + + "TE_SCAN_NAME\020\020\022\027\n\023INVALID_FIELD_VALUE\020\022\022" + + "$\n FAILED_TO_AUTHENTICATE_TO_TARGET\020\023\022\034\n" + + "\030FINDING_TYPE_UNSPECIFIED\020\024\022\035\n\031FORBIDDEN" + + "_TO_SCAN_COMPUTE\020\025\022$\n FORBIDDEN_UPDATE_T" + + "O_MANAGED_SCAN\020+\022\024\n\020MALFORMED_FILTER\020\026\022\033" + + "\n\027MALFORMED_RESOURCE_NAME\020\027\022\024\n\020PROJECT_I" + + "NACTIVE\020\030\022\022\n\016REQUIRED_FIELD\020\031\022\036\n\032RESOURC" + + "E_NAME_INCONSISTENT\020\032\022\030\n\024SCAN_ALREADY_RU" + + "NNING\020\033\022\024\n\020SCAN_NOT_RUNNING\020\034\022/\n+SEED_UR" + + "L_DOES_NOT_BELONG_TO_CURRENT_PROJECT\020\035\022\026" + + "\n\022SEED_URL_MALFORMED\020\036\022+\n\'SEED_URL_MAPPE" + + "D_TO_NON_ROUTABLE_ADDRESS\020\037\022)\n%SEED_URL_" + + "MAPPED_TO_UNRESERVED_ADDRESS\020 \022(\n$SEED_U" + + "RL_HAS_NON_ROUTABLE_IP_ADDRESS\020!\022&\n\"SEED" + + "_URL_HAS_UNRESERVED_IP_ADDRESS\020#\022\"\n\036SERV" + + "ICE_ACCOUNT_NOT_CONFIGURED\020$\022\022\n\016TOO_MANY" + + "_SCANS\020%\022\"\n\036UNABLE_TO_RESOLVE_PROJECT_IN" + + "FO\020&\022(\n$UNSUPPORTED_BLACKLIST_PATTERN_FO" + + "RMAT\020\'\022\026\n\022UNSUPPORTED_FILTER\020(\022\034\n\030UNSUPP" + + "ORTED_FINDING_TYPE\020)\022\032\n\026UNSUPPORTED_URL_" + + "SCHEME\020*\032\002\020\001B\210\002\n&com.google.cloud.websec" + + "urityscanner.v1B\024ScanConfigErrorProtoP\001Z" + + "Tgoogle.golang.org/genproto/googleapis/c" + + "loud/websecurityscanner/v1;websecuritysc" + + "anner\252\002\"Google.Cloud.WebSecurityScanner." + + "V1\312\002\"Google\\Cloud\\WebSecurityScanner\\V1\352" + + "\002%Google::Cloud::WebSecurityScanner::V1b" + + "\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor, + new java.lang.String[] { "Code", "FieldName", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java similarity index 81% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java index 32718b4f..3bbe81d4 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_config.proto package com.google.cloud.websecurityscanner.v1; -public interface ScanConfigOrBuilder - extends +public interface ScanConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -33,13 +15,10 @@ public interface ScanConfigOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -47,39 +26,32 @@ public interface ScanConfigOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -88,91 +60,72 @@ public interface ScanConfigOrBuilder
    * 
* * int32 max_qps = 3; - * * @return The maxQps. */ int getMaxQps(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; - * * @return A list containing the startingUrls. */ - java.util.List getStartingUrlsList(); + java.util.List + getStartingUrlsList(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; - * * @return The count of startingUrls. */ int getStartingUrlsCount(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ java.lang.String getStartingUrls(int index); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - com.google.protobuf.ByteString getStartingUrlsBytes(int index); + com.google.protobuf.ByteString + getStartingUrlsBytes(int index); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * * @return Whether the authentication field is set. */ boolean hasAuthentication(); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; - * * @return The authentication. */ com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getAuthentication(); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
@@ -180,116 +133,91 @@ public interface ScanConfigOrBuilder
    *
    * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5;
    */
-  com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder
-      getAuthenticationOrBuilder();
+  com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder();
 
   /**
-   *
-   *
    * 
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ int getUserAgentValue(); /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent getUserAgent(); /** - * - * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - java.util.List getBlacklistPatternsList(); + java.util.List + getBlacklistPatternsList(); /** - * - * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ int getBlacklistPatternsCount(); /** - * - * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ java.lang.String getBlacklistPatterns(int index); /** - * - * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - com.google.protobuf.ByteString getBlacklistPatternsBytes(int index); + com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index); /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ boolean hasSchedule(); /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getSchedule(); /** - * - * *
    * The schedule of the ScanConfig.
    * 
@@ -299,86 +227,63 @@ public interface ScanConfigOrBuilder com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder(); /** - * - * *
    * Controls export of scan configurations and results to Security
    * Command Center.
    * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ int getExportToSecurityCommandCenterValue(); /** - * - * *
    * Controls export of scan configurations and results to Security
    * Command Center.
    * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The exportToSecurityCommandCenter. */ - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter - getExportToSecurityCommandCenter(); + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter(); /** - * - * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @return The enum numeric value on the wire for riskLevel. */ int getRiskLevelValue(); /** - * - * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; - * * @return The riskLevel. */ com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel getRiskLevel(); /** - * - * *
    * Whether the scan config is managed by Web Security Scanner, output
    * only.
    * 
* * bool managed_scan = 13; - * * @return The managedScan. */ boolean getManagedScan(); /** - * - * *
    * Whether the scan configuration has enabled static IP address scan feature.
    * If enabled, the scanner will access applications from static IP addresses.
    * 
* * bool static_ip_scan = 14; - * * @return The staticIpScan. */ boolean getStaticIpScan(); diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java new file mode 100644 index 00000000..13981ad3 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java @@ -0,0 +1,173 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_config.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanConfigProto { + private ScanConfigProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/websecurityscanner/v1/sca" + + "n_config.proto\022\"google.cloud.websecurity" + + "scanner.v1\032\037google/api/field_behavior.pr" + + "oto\032\037google/protobuf/timestamp.proto\"\231\r\n" + + "\nScanConfig\022\014\n\004name\030\001 \001(\t\022\024\n\014display_nam" + + "e\030\002 \001(\t\022\017\n\007max_qps\030\003 \001(\005\022\025\n\rstarting_url" + + "s\030\004 \003(\t\022U\n\016authentication\030\005 \001(\0132=.google" + + ".cloud.websecurityscanner.v1.ScanConfig." + + "Authentication\022L\n\nuser_agent\030\006 \001(\01628.goo" + + "gle.cloud.websecurityscanner.v1.ScanConf" + + "ig.UserAgent\022\032\n\022blacklist_patterns\030\007 \003(\t" + + "\022I\n\010schedule\030\010 \001(\01327.google.cloud.websec" + + "urityscanner.v1.ScanConfig.Schedule\022w\n!e" + + "xport_to_security_command_center\030\n \001(\0162L" + + ".google.cloud.websecurityscanner.v1.Scan" + + "Config.ExportToSecurityCommandCenter\022L\n\n" + + "risk_level\030\014 \001(\01628.google.cloud.websecur" + + "ityscanner.v1.ScanConfig.RiskLevel\022\024\n\014ma" + + "naged_scan\030\r \001(\010\022\026\n\016static_ip_scan\030\016 \001(\010" + + "\032\317\005\n\016Authentication\022e\n\016google_account\030\001 " + + "\001(\0132K.google.cloud.websecurityscanner.v1" + + ".ScanConfig.Authentication.GoogleAccount" + + "H\000\022e\n\016custom_account\030\002 \001(\0132K.google.clou" + + "d.websecurityscanner.v1.ScanConfig.Authe" + + "ntication.CustomAccountH\000\022e\n\016iap_credent" + + "ial\030\004 \001(\0132K.google.cloud.websecurityscan" + + "ner.v1.ScanConfig.Authentication.IapCred" + + "entialH\000\0323\n\rGoogleAccount\022\020\n\010username\030\001 " + + "\001(\t\022\020\n\010password\030\002 \001(\t\032F\n\rCustomAccount\022\020" + + "\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022\021\n\tlo" + + "gin_url\030\003 \001(\t\032\370\001\n\rIapCredential\022\216\001\n\035iap_" + + "test_service_account_info\030\001 \001(\0132e.google" + + ".cloud.websecurityscanner.v1.ScanConfig." + + "Authentication.IapCredential.IapTestServ" + + "iceAccountInfoH\000\032C\n\031IapTestServiceAccoun" + + "tInfo\022&\n\031target_audience_client_id\030\001 \001(\t" + + "B\003\340A\002B\021\n\017iap_credentialsB\020\n\016authenticati" + + "on\032]\n\010Schedule\0221\n\rschedule_time\030\001 \001(\0132\032." + + "google.protobuf.Timestamp\022\036\n\026interval_du" + + "ration_days\030\002 \001(\005\"`\n\tUserAgent\022\032\n\026USER_A" + + "GENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LINUX\020\001\022\022\n\016" + + "CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHONE\020\003\"<\n\tR" + + "iskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED\020\000\022\n\n\006" + + "NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecurityCom" + + "mandCenter\0221\n-EXPORT_TO_SECURITY_COMMAND" + + "_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DI" + + "SABLED\020\002B\203\002\n&com.google.cloud.websecurit" + + "yscanner.v1B\017ScanConfigProtoP\001ZTgoogle.g" + + "olang.org/genproto/googleapis/cloud/webs" + + "ecurityscanner/v1;websecurityscanner\252\002\"G" + + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" + + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" + + ":Cloud::WebSecurityScanner::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor, + new java.lang.String[] { "Name", "DisplayName", "MaxQps", "StartingUrls", "Authentication", "UserAgent", "BlacklistPatterns", "Schedule", "ExportToSecurityCommandCenter", "RiskLevel", "ManagedScan", "StaticIpScan", }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor, + new java.lang.String[] { "GoogleAccount", "CustomAccount", "IapCredential", "Authentication", }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor, + new java.lang.String[] { "Username", "Password", }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor, + new java.lang.String[] { "Username", "Password", "LoginUrl", }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor, + new java.lang.String[] { "IapTestServiceAccountInfo", "IapCredentials", }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor, + new java.lang.String[] { "TargetAudienceClientId", }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor, + new java.lang.String[] { "ScheduleTime", "IntervalDurationDays", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java similarity index 75% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java index 310c9694..ac32d009 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_run.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * A ScanRun is a output-only resource representing an actual run of the scan.
  * Next id: 12
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRun}
  */
-public final class ScanRun extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanRun extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanRun)
     ScanRunOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanRun.newBuilder() to construct.
   private ScanRun(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanRun() {
     name_ = "";
     executionState_ = 0;
@@ -47,15 +29,16 @@ private ScanRun() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanRun();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanRun(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,115 +58,99 @@ private ScanRun(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            name_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              executionState_ = rawValue;
-              break;
-            }
-          case 24:
-            {
-              int rawValue = input.readEnum();
+            executionState_ = rawValue;
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
 
-              resultState_ = rawValue;
-              break;
-            }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (startTime_ != null) {
-                subBuilder = startTime_.toBuilder();
-              }
-              startTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(startTime_);
-                startTime_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 42:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (endTime_ != null) {
-                subBuilder = endTime_.toBuilder();
-              }
-              endTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(endTime_);
-                endTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            resultState_ = rawValue;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (startTime_ != null) {
+              subBuilder = startTime_.toBuilder();
             }
-          case 48:
-            {
-              urlsCrawledCount_ = input.readInt64();
-              break;
+            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(startTime_);
+              startTime_ = subBuilder.buildPartial();
             }
-          case 56:
-            {
-              urlsTestedCount_ = input.readInt64();
-              break;
+
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (endTime_ != null) {
+              subBuilder = endTime_.toBuilder();
             }
-          case 64:
-            {
-              hasVulnerabilities_ = input.readBool();
-              break;
+            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(endTime_);
+              endTime_ = subBuilder.buildPartial();
             }
-          case 72:
-            {
-              progressPercent_ = input.readInt32();
-              break;
+
+            break;
+          }
+          case 48: {
+
+            urlsCrawledCount_ = input.readInt64();
+            break;
+          }
+          case 56: {
+
+            urlsTestedCount_ = input.readInt64();
+            break;
+          }
+          case 64: {
+
+            hasVulnerabilities_ = input.readBool();
+            break;
+          }
+          case 72: {
+
+            progressPercent_ = input.readInt32();
+            break;
+          }
+          case 82: {
+            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder subBuilder = null;
+            if (errorTrace_ != null) {
+              subBuilder = errorTrace_.toBuilder();
             }
-          case 82:
-            {
-              com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder subBuilder = null;
-              if (errorTrace_ != null) {
-                subBuilder = errorTrace_.toBuilder();
-              }
-              errorTrace_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(errorTrace_);
-                errorTrace_ = subBuilder.buildPartial();
-              }
-
-              break;
+            errorTrace_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(errorTrace_);
+              errorTrace_ = subBuilder.buildPartial();
             }
-          case 90:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                warningTraces_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              warningTraces_.add(
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.parser(),
-                      extensionRegistry));
-              break;
+
+            break;
+          }
+          case 90: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              warningTraces_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            warningTraces_.add(
+                input.readMessage(com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -191,7 +158,8 @@ private ScanRun(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         warningTraces_ = java.util.Collections.unmodifiableList(warningTraces_);
@@ -200,35 +168,29 @@ private ScanRun(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.ScanRun.class,
-            com.google.cloud.websecurityscanner.v1.ScanRun.Builder.class);
+            com.google.cloud.websecurityscanner.v1.ScanRun.class, com.google.cloud.websecurityscanner.v1.ScanRun.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Types of ScanRun execution state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanRun.ExecutionState} */ - public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { + public enum ExecutionState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -238,8 +200,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum {
      */
     EXECUTION_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -248,8 +208,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ QUEUED(1), /** - * - * *
      * The scan is in progress.
      * 
@@ -258,8 +216,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ SCANNING(2), /** - * - * *
      * The scan is either finished or stopped by user.
      * 
@@ -271,8 +227,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -282,8 +236,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int EXECUTION_STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -292,8 +244,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int QUEUED_VALUE = 1; /** - * - * *
      * The scan is in progress.
      * 
@@ -302,8 +252,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCANNING_VALUE = 2; /** - * - * *
      * The scan is either finished or stopped by user.
      * 
@@ -312,6 +260,7 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FINISHED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -336,51 +285,50 @@ public static ExecutionState valueOf(int value) { */ public static ExecutionState forNumber(int value) { switch (value) { - case 0: - return EXECUTION_STATE_UNSPECIFIED; - case 1: - return QUEUED; - case 2: - return SCANNING; - case 3: - return FINISHED; - default: - return null; + case 0: return EXECUTION_STATE_UNSPECIFIED; + case 1: return QUEUED; + case 2: return SCANNING; + case 3: return FINISHED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExecutionState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionState findValueByNumber(int number) { + return ExecutionState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionState findValueByNumber(int number) { - return ExecutionState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanRun.getDescriptor().getEnumTypes().get(0); } private static final ExecutionState[] VALUES = values(); - public static ExecutionState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ExecutionState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -398,18 +346,15 @@ private ExecutionState(int value) { } /** - * - * *
    * Types of ScanRun result state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanRun.ResultState} */ - public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { + public enum ResultState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -419,8 +364,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESULT_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -429,8 +372,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ SUCCESS(1), /** - * - * *
      * The scan finished with errors.
      * 
@@ -439,8 +380,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(2), /** - * - * *
      * The scan was terminated by user.
      * 
@@ -452,8 +391,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -463,8 +400,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESULT_STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -473,8 +408,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCESS_VALUE = 1; /** - * - * *
      * The scan finished with errors.
      * 
@@ -483,8 +416,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 2; /** - * - * *
      * The scan was terminated by user.
      * 
@@ -493,6 +424,7 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KILLED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -517,51 +449,50 @@ public static ResultState valueOf(int value) { */ public static ResultState forNumber(int value) { switch (value) { - case 0: - return RESULT_STATE_UNSPECIFIED; - case 1: - return SUCCESS; - case 2: - return ERROR; - case 3: - return KILLED; - default: - return null; + case 0: return RESULT_STATE_UNSPECIFIED; + case 1: return SUCCESS; + case 2: return ERROR; + case 3: return KILLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ResultState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResultState findValueByNumber(int number) { + return ResultState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResultState findValueByNumber(int number) { - return ResultState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanRun.getDescriptor().getEnumTypes().get(1); } private static final ResultState[] VALUES = values(); - public static ResultState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ResultState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -581,8 +512,6 @@ private ResultState(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -590,7 +519,6 @@ private ResultState(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -599,15 +527,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -615,15 +542,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -634,92 +562,67 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EXECUTION_STATE_FIELD_NUMBER = 2; private int executionState_; /** - * - * *
    * Output only. The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override - public int getExecutionStateValue() { + @java.lang.Override public int getExecutionStateValue() { return executionState_; } /** - * - * *
    * Output only. The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @return The executionState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED : result; } public static final int RESULT_STATE_FIELD_NUMBER = 3; private int resultState_; /** - * - * *
    * Output only. The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override - public int getResultStateValue() { + @java.lang.Override public int getResultStateValue() { return resultState_; } /** - * - * *
    * Output only. The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED : result; } public static final int START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Output only. The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -727,14 +630,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Output only. The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ @java.lang.Override @@ -742,8 +642,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Output only. The time at which the ScanRun started.
    * 
@@ -758,15 +656,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -774,15 +669,12 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ @java.lang.Override @@ -790,8 +682,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -807,15 +697,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 6;
   private long urlsCrawledCount_;
   /**
-   *
-   *
    * 
    * Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ @java.lang.Override @@ -826,8 +713,6 @@ public long getUrlsCrawledCount() { public static final int URLS_TESTED_COUNT_FIELD_NUMBER = 7; private long urlsTestedCount_; /** - * - * *
    * Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -836,7 +721,6 @@ public long getUrlsCrawledCount() {
    * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -847,14 +731,11 @@ public long getUrlsTestedCount() { public static final int HAS_VULNERABILITIES_FIELD_NUMBER = 8; private boolean hasVulnerabilities_; /** - * - * *
    * Output only. Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ @java.lang.Override @@ -865,8 +746,6 @@ public boolean getHasVulnerabilities() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 9; private int progressPercent_; /** - * - * *
    * Output only. The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -875,7 +754,6 @@ public boolean getHasVulnerabilities() {
    * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -886,15 +764,12 @@ public int getProgressPercent() { public static final int ERROR_TRACE_FIELD_NUMBER = 10; private com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace errorTrace_; /** - * - * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; - * * @return Whether the errorTrace field is set. */ @java.lang.Override @@ -902,26 +777,19 @@ public boolean hasErrorTrace() { return errorTrace_ != null; } /** - * - * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; - * * @return The errorTrace. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace() { - return errorTrace_ == null - ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() - : errorTrace_; + return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; } /** - * - * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
@@ -930,90 +798,71 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace()
    * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder
-      getErrorTraceOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() {
     return getErrorTrace();
   }
 
   public static final int WARNING_TRACES_FIELD_NUMBER = 11;
   private java.util.List warningTraces_;
   /**
-   *
-   *
    * 
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override - public java.util.List - getWarningTracesList() { + public java.util.List getWarningTracesList() { return warningTraces_; } /** - * - * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder> + public java.util.List getWarningTracesOrBuilderList() { return warningTraces_; } /** - * - * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override public int getWarningTracesCount() { return warningTraces_.size(); } /** - * - * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getWarningTraces(int index) { return warningTraces_.get(index); } /** - * - * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder - getWarningTracesOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( + int index) { return warningTraces_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1025,18 +874,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (executionState_ - != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED - .getNumber()) { + if (executionState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, executionState_); } - if (resultState_ - != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED - .getNumber()) { + if (resultState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, resultState_); } if (startTime_ != null) { @@ -1075,39 +921,45 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (executionState_ - != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, executionState_); + if (executionState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, executionState_); } - if (resultState_ - != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, resultState_); + if (resultState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, resultState_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEndTime()); } if (urlsCrawledCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, urlsCrawledCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, urlsCrawledCount_); } if (urlsTestedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, urlsTestedCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, urlsTestedCount_); } if (hasVulnerabilities_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, hasVulnerabilities_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, hasVulnerabilities_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, progressPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, progressPercent_); } if (errorTrace_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getErrorTrace()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getErrorTrace()); } for (int i = 0; i < warningTraces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, warningTraces_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, warningTraces_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1117,34 +969,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanRun)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanRun other = - (com.google.cloud.websecurityscanner.v1.ScanRun) obj; + com.google.cloud.websecurityscanner.v1.ScanRun other = (com.google.cloud.websecurityscanner.v1.ScanRun) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (executionState_ != other.executionState_) return false; if (resultState_ != other.resultState_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (getUrlsCrawledCount() != other.getUrlsCrawledCount()) return false; - if (getUrlsTestedCount() != other.getUrlsTestedCount()) return false; - if (getHasVulnerabilities() != other.getHasVulnerabilities()) return false; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (getUrlsCrawledCount() + != other.getUrlsCrawledCount()) return false; + if (getUrlsTestedCount() + != other.getUrlsTestedCount()) return false; + if (getHasVulnerabilities() + != other.getHasVulnerabilities()) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (hasErrorTrace() != other.hasErrorTrace()) return false; if (hasErrorTrace()) { - if (!getErrorTrace().equals(other.getErrorTrace())) return false; + if (!getErrorTrace() + .equals(other.getErrorTrace())) return false; } - if (!getWarningTracesList().equals(other.getWarningTracesList())) return false; + if (!getWarningTracesList() + .equals(other.getWarningTracesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1171,11 +1031,14 @@ public int hashCode() { hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + URLS_CRAWLED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsCrawledCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUrlsCrawledCount()); hash = (37 * hash) + URLS_TESTED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsTestedCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUrlsTestedCount()); hash = (37 * hash) + HAS_VULNERABILITIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasVulnerabilities()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasVulnerabilities()); hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getProgressPercent(); if (hasErrorTrace()) { @@ -1191,104 +1054,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanRun parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanRun parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanRun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A ScanRun is a output-only resource representing an actual run of the scan.
    * Next id: 12
@@ -1296,23 +1152,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRun}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanRun)
       com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.ScanRun.class,
-              com.google.cloud.websecurityscanner.v1.ScanRun.Builder.class);
+              com.google.cloud.websecurityscanner.v1.ScanRun.class, com.google.cloud.websecurityscanner.v1.ScanRun.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.ScanRun.newBuilder()
@@ -1320,17 +1174,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getWarningTracesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1376,9 +1230,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
     }
 
     @java.lang.Override
@@ -1397,8 +1251,7 @@ public com.google.cloud.websecurityscanner.v1.ScanRun build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.ScanRun buildPartial() {
-      com.google.cloud.websecurityscanner.v1.ScanRun result =
-          new com.google.cloud.websecurityscanner.v1.ScanRun(this);
+      com.google.cloud.websecurityscanner.v1.ScanRun result = new com.google.cloud.websecurityscanner.v1.ScanRun(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.executionState_ = executionState_;
@@ -1439,39 +1292,38 @@ public com.google.cloud.websecurityscanner.v1.ScanRun buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.ScanRun) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRun) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRun)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1529,10 +1381,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRun other) {
             warningTracesBuilder_ = null;
             warningTraces_ = other.warningTraces_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            warningTracesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getWarningTracesFieldBuilder()
-                    : null;
+            warningTracesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getWarningTracesFieldBuilder() : null;
           } else {
             warningTracesBuilder_.addAllMessages(other.warningTraces_);
           }
@@ -1566,13 +1417,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1580,13 +1428,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1595,8 +1443,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1604,14 +1450,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1619,8 +1466,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1628,22 +1473,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1651,18 +1494,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1670,16 +1510,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1687,93 +1527,73 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int executionState_ = 0; /** - * - * *
      * Output only. The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override - public int getExecutionStateValue() { + @java.lang.Override public int getExecutionStateValue() { return executionState_; } /** - * - * *
      * Output only. The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @param value The enum numeric value on the wire for executionState to set. * @return This builder for chaining. */ public Builder setExecutionStateValue(int value) { - + executionState_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @return The executionState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @param value The executionState to set. * @return This builder for chaining. */ - public Builder setExecutionState( - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState value) { + public Builder setExecutionState(com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState value) { if (value == null) { throw new NullPointerException(); } - + executionState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @return This builder for chaining. */ public Builder clearExecutionState() { - + executionState_ = 0; onChanged(); return this; @@ -1781,98 +1601,78 @@ public Builder clearExecutionState() { private int resultState_ = 0; /** - * - * *
      * Output only. The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override - public int getResultStateValue() { + @java.lang.Override public int getResultStateValue() { return resultState_; } /** - * - * *
      * Output only. The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @param value The enum numeric value on the wire for resultState to set. * @return This builder for chaining. */ public Builder setResultStateValue(int value) { - + resultState_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @param value The resultState to set. * @return This builder for chaining. */ - public Builder setResultState( - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState value) { + public Builder setResultState(com.google.cloud.websecurityscanner.v1.ScanRun.ResultState value) { if (value == null) { throw new NullPointerException(); } - + resultState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @return This builder for chaining. */ public Builder clearResultState() { - + resultState_ = 0; onChanged(); return this; @@ -1880,33 +1680,24 @@ public Builder clearResultState() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1917,8 +1708,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1939,15 +1728,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -1958,8 +1746,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1970,7 +1756,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -1982,8 +1768,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -2002,8 +1786,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -2011,13 +1793,11 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 4; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -2028,12 +1808,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -2041,17 +1820,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -2059,35 +1835,26 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -2098,8 +1865,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2121,8 +1886,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2130,7 +1893,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -2141,8 +1905,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2154,7 +1916,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -2166,8 +1928,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2187,8 +1947,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2197,13 +1955,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2215,12 +1971,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2229,33 +1984,27 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
 
-    private long urlsCrawledCount_;
+    private long urlsCrawledCount_ ;
     /**
-     *
-     *
      * 
      * Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ @java.lang.Override @@ -2263,47 +2012,39 @@ public long getUrlsCrawledCount() { return urlsCrawledCount_; } /** - * - * *
      * Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @param value The urlsCrawledCount to set. * @return This builder for chaining. */ public Builder setUrlsCrawledCount(long value) { - + urlsCrawledCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @return This builder for chaining. */ public Builder clearUrlsCrawledCount() { - + urlsCrawledCount_ = 0L; onChanged(); return this; } - private long urlsTestedCount_; + private long urlsTestedCount_ ; /** - * - * *
      * Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2312,7 +2053,6 @@ public Builder clearUrlsCrawledCount() {
      * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -2320,8 +2060,6 @@ public long getUrlsTestedCount() { return urlsTestedCount_; } /** - * - * *
      * Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2330,19 +2068,16 @@ public long getUrlsTestedCount() {
      * 
* * int64 urls_tested_count = 7; - * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ public Builder setUrlsTestedCount(long value) { - + urlsTestedCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2351,26 +2086,22 @@ public Builder setUrlsTestedCount(long value) {
      * 
* * int64 urls_tested_count = 7; - * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { - + urlsTestedCount_ = 0L; onChanged(); return this; } - private boolean hasVulnerabilities_; + private boolean hasVulnerabilities_ ; /** - * - * *
      * Output only. Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ @java.lang.Override @@ -2378,45 +2109,37 @@ public boolean getHasVulnerabilities() { return hasVulnerabilities_; } /** - * - * *
      * Output only. Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @param value The hasVulnerabilities to set. * @return This builder for chaining. */ public Builder setHasVulnerabilities(boolean value) { - + hasVulnerabilities_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @return This builder for chaining. */ public Builder clearHasVulnerabilities() { - + hasVulnerabilities_ = false; onChanged(); return this; } - private int progressPercent_; + private int progressPercent_ ; /** - * - * *
      * Output only. The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2425,7 +2148,6 @@ public Builder clearHasVulnerabilities() {
      * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -2433,8 +2155,6 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * Output only. The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2443,19 +2163,16 @@ public int getProgressPercent() {
      * 
* * int32 progress_percent = 9; - * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2464,11 +2181,10 @@ public Builder setProgressPercent(int value) {
      * 
* * int32 progress_percent = 9; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; @@ -2476,49 +2192,36 @@ public Builder clearProgressPercent() { private com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace errorTrace_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, - com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> - errorTraceBuilder_; + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> errorTraceBuilder_; /** - * - * *
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; - * * @return Whether the errorTrace field is set. */ public boolean hasErrorTrace() { return errorTraceBuilder_ != null || errorTrace_ != null; } /** - * - * *
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; - * * @return The errorTrace. */ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace() { if (errorTraceBuilder_ == null) { - return errorTrace_ == null - ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() - : errorTrace_; + return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; } else { return errorTraceBuilder_.getMessage(); } } /** - * - * *
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2540,8 +2243,6 @@ public Builder setErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunError
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2561,8 +2262,6 @@ public Builder setErrorTrace(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2574,9 +2273,7 @@ public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErr
       if (errorTraceBuilder_ == null) {
         if (errorTrace_ != null) {
           errorTrace_ =
-              com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.newBuilder(errorTrace_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.newBuilder(errorTrace_).mergeFrom(value).buildPartial();
         } else {
           errorTrace_ = value;
         }
@@ -2588,8 +2285,6 @@ public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErr
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2609,8 +2304,6 @@ public Builder clearErrorTrace() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2619,13 +2312,11 @@ public Builder clearErrorTrace() {
      * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10;
      */
     public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder getErrorTraceBuilder() {
-
+      
       onChanged();
       return getErrorTraceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2633,19 +2324,15 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder getError
      *
      * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10;
      */
-    public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder
-        getErrorTraceOrBuilder() {
+    public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() {
       if (errorTraceBuilder_ != null) {
         return errorTraceBuilder_.getMessageOrBuilder();
       } else {
-        return errorTrace_ == null
-            ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance()
-            : errorTrace_;
+        return errorTrace_ == null ?
+            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2654,52 +2341,39 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder getError
      * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace,
-            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder,
-            com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder>
+        com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> 
         getErrorTraceFieldBuilder() {
       if (errorTraceBuilder_ == null) {
-        errorTraceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace,
-                com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder,
-                com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder>(
-                getErrorTrace(), getParentForChildren(), isClean());
+        errorTraceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder>(
+                getErrorTrace(),
+                getParentForChildren(),
+                isClean());
         errorTrace_ = null;
       }
       return errorTraceBuilder_;
     }
 
-    private java.util.List
-        warningTraces_ = java.util.Collections.emptyList();
-
+    private java.util.List warningTraces_ =
+      java.util.Collections.emptyList();
     private void ensureWarningTracesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        warningTraces_ =
-            new java.util.ArrayList(
-                warningTraces_);
+        warningTraces_ = new java.util.ArrayList(warningTraces_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace,
-            com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder,
-            com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder>
-        warningTracesBuilder_;
+        com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder> warningTracesBuilder_;
 
     /**
-     *
-     *
      * 
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - public java.util.List - getWarningTracesList() { + public java.util.List getWarningTracesList() { if (warningTracesBuilder_ == null) { return java.util.Collections.unmodifiableList(warningTraces_); } else { @@ -2707,14 +2381,11 @@ private void ensureWarningTracesIsMutable() { } } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public int getWarningTracesCount() { if (warningTracesBuilder_ == null) { @@ -2724,14 +2395,11 @@ public int getWarningTracesCount() { } } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getWarningTraces(int index) { if (warningTracesBuilder_ == null) { @@ -2741,14 +2409,11 @@ public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getWarningTrac } } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public Builder setWarningTraces( int index, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace value) { @@ -2765,18 +2430,14 @@ public Builder setWarningTraces( return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public Builder setWarningTraces( - int index, - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder builderForValue) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); warningTraces_.set(index, builderForValue.build()); @@ -2787,17 +2448,13 @@ public Builder setWarningTraces( return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - public Builder addWarningTraces( - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace value) { + public Builder addWarningTraces(com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace value) { if (warningTracesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2811,14 +2468,11 @@ public Builder addWarningTraces( return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public Builder addWarningTraces( int index, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace value) { @@ -2835,14 +2489,11 @@ public Builder addWarningTraces( return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public Builder addWarningTraces( com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder builderForValue) { @@ -2856,18 +2507,14 @@ public Builder addWarningTraces( return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public Builder addWarningTraces( - int index, - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder builderForValue) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); warningTraces_.add(index, builderForValue.build()); @@ -2878,21 +2525,18 @@ public Builder addWarningTraces( return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public Builder addAllWarningTraces( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warningTraces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, warningTraces_); onChanged(); } else { warningTracesBuilder_.addAllMessages(values); @@ -2900,14 +2544,11 @@ public Builder addAllWarningTraces( return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public Builder clearWarningTraces() { if (warningTracesBuilder_ == null) { @@ -2920,14 +2561,11 @@ public Builder clearWarningTraces() { return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ public Builder removeWarningTraces(int index) { if (warningTracesBuilder_ == null) { @@ -2940,50 +2578,39 @@ public Builder removeWarningTraces(int index) { return this; } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder - getWarningTracesBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder getWarningTracesBuilder( + int index) { return getWarningTracesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder - getWarningTracesOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( + int index) { if (warningTracesBuilder_ == null) { - return warningTraces_.get(index); - } else { + return warningTraces_.get(index); } else { return warningTracesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder> - getWarningTracesOrBuilderList() { + public java.util.List + getWarningTracesOrBuilderList() { if (warningTracesBuilder_ != null) { return warningTracesBuilder_.getMessageOrBuilderList(); } else { @@ -2991,64 +2618,45 @@ public Builder removeWarningTraces(int index) { } } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder - addWarningTracesBuilder() { - return getWarningTracesFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder addWarningTracesBuilder() { + return getWarningTracesFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance()); } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder - addWarningTracesBuilder(int index) { - return getWarningTracesFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder addWarningTracesBuilder( + int index) { + return getWarningTracesFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance()); } /** - * - * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - public java.util.List - getWarningTracesBuilderList() { + public java.util.List + getWarningTracesBuilderList() { return getWarningTracesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace, - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder, - com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder> getWarningTracesFieldBuilder() { if (warningTracesBuilder_ == null) { - warningTracesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace, - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder, - com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder>( + warningTracesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder>( warningTraces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3057,9 +2665,9 @@ public Builder removeWarningTraces(int index) { } return warningTracesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3069,12 +2677,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanRun) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanRun) private static final com.google.cloud.websecurityscanner.v1.ScanRun DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanRun(); } @@ -3083,16 +2691,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanRun getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3107,4 +2715,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java similarity index 74% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java index 9635019b..b9b4fec2 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_run_error_trace.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Output only.
  * Defines an error trace message for a ScanRun.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunErrorTrace}
  */
-public final class ScanRunErrorTrace extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanRunErrorTrace extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanRunErrorTrace)
     ScanRunErrorTraceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanRunErrorTrace.newBuilder() to construct.
   private ScanRunErrorTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanRunErrorTrace() {
     code_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanRunErrorTrace();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanRunErrorTrace(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,42 +54,37 @@ private ScanRunErrorTrace(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              code_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder subBuilder = null;
-              if (scanConfigError_ != null) {
-                subBuilder = scanConfigError_.toBuilder();
-              }
-              scanConfigError_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.ScanConfigError.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(scanConfigError_);
-                scanConfigError_ = subBuilder.buildPartial();
-              }
-
-              break;
+            code_ = rawValue;
+            break;
+          }
+          case 18: {
+            com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder subBuilder = null;
+            if (scanConfigError_ != null) {
+              subBuilder = scanConfigError_.toBuilder();
             }
-          case 24:
-            {
-              mostCommonHttpErrorCode_ = input.readInt32();
-              break;
+            scanConfigError_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfigError.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(scanConfigError_);
+              scanConfigError_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 24: {
+
+            mostCommonHttpErrorCode_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -114,31 +92,27 @@ private ScanRunErrorTrace(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.class,
-            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder.class);
+            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.class, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Output only.
    * Defines an error reason code.
@@ -147,10 +121,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code}
    */
-  public enum Code implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Code
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Default value is never used.
      * 
@@ -159,8 +132,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -169,8 +140,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ INTERNAL_ERROR(1), /** - * - * *
      * Indicates a scan configuration error, usually due to outdated ScanConfig
      * settings, such as starting_urls or the DNS configuration.
@@ -180,8 +149,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SCAN_CONFIG_ISSUE(2),
     /**
-     *
-     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -191,8 +158,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     AUTHENTICATION_CONFIG_ISSUE(3),
     /**
-     *
-     *
      * 
      * Indicates a scan operation timeout, usually caused by a very large site.
      * 
@@ -201,8 +166,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ TIMED_OUT_WHILE_SCANNING(4), /** - * - * *
      * Indicates that a scan encountered excessive redirects, either to
      * authentication or some other page outside of the scan scope.
@@ -212,8 +175,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     TOO_MANY_REDIRECTS(5),
     /**
-     *
-     *
      * 
      * Indicates that a scan encountered numerous errors from the web site
      * pages. When available, most_common_http_error_code field indicates the
@@ -227,8 +188,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value is never used.
      * 
@@ -237,8 +196,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -247,8 +204,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INTERNAL_ERROR_VALUE = 1; /** - * - * *
      * Indicates a scan configuration error, usually due to outdated ScanConfig
      * settings, such as starting_urls or the DNS configuration.
@@ -258,8 +213,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SCAN_CONFIG_ISSUE_VALUE = 2;
     /**
-     *
-     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -269,8 +222,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int AUTHENTICATION_CONFIG_ISSUE_VALUE = 3;
     /**
-     *
-     *
      * 
      * Indicates a scan operation timeout, usually caused by a very large site.
      * 
@@ -279,8 +230,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIMED_OUT_WHILE_SCANNING_VALUE = 4; /** - * - * *
      * Indicates that a scan encountered excessive redirects, either to
      * authentication or some other page outside of the scan scope.
@@ -290,8 +239,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TOO_MANY_REDIRECTS_VALUE = 5;
     /**
-     *
-     *
      * 
      * Indicates that a scan encountered numerous errors from the web site
      * pages. When available, most_common_http_error_code field indicates the
@@ -302,6 +249,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TOO_MANY_HTTP_ERRORS_VALUE = 6;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -326,59 +274,53 @@ public static Code valueOf(int value) {
      */
     public static Code forNumber(int value) {
       switch (value) {
-        case 0:
-          return CODE_UNSPECIFIED;
-        case 1:
-          return INTERNAL_ERROR;
-        case 2:
-          return SCAN_CONFIG_ISSUE;
-        case 3:
-          return AUTHENTICATION_CONFIG_ISSUE;
-        case 4:
-          return TIMED_OUT_WHILE_SCANNING;
-        case 5:
-          return TOO_MANY_REDIRECTS;
-        case 6:
-          return TOO_MANY_HTTP_ERRORS;
-        default:
-          return null;
+        case 0: return CODE_UNSPECIFIED;
+        case 1: return INTERNAL_ERROR;
+        case 2: return SCAN_CONFIG_ISSUE;
+        case 3: return AUTHENTICATION_CONFIG_ISSUE;
+        case 4: return TIMED_OUT_WHILE_SCANNING;
+        case 5: return TOO_MANY_REDIRECTS;
+        case 6: return TOO_MANY_HTTP_ERRORS;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Code> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Code findValueByNumber(int number) {
+              return Code.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Code findValueByNumber(int number) {
-            return Code.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Code[] VALUES = values();
 
-    public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Code valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -398,46 +340,33 @@ private Code(int value) {
   public static final int CODE_FIELD_NUMBER = 1;
   private int code_;
   /**
-   *
-   *
    * 
    * Output only. Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Output only. Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.UNRECOGNIZED : result; } public static final int SCAN_CONFIG_ERROR_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1.ScanConfigError scanConfigError_; /** - * - * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -445,7 +374,6 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode() {
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; - * * @return Whether the scanConfigError field is set. */ @java.lang.Override @@ -453,8 +381,6 @@ public boolean hasScanConfigError() { return scanConfigError_ != null; } /** - * - * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -462,18 +388,13 @@ public boolean hasScanConfigError() {
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; - * * @return The scanConfigError. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError() { - return scanConfigError_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance() - : scanConfigError_; + return scanConfigError_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance() : scanConfigError_; } /** - * - * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -483,16 +404,13 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError
    * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder
-      getScanConfigErrorOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder() {
     return getScanConfigError();
   }
 
   public static final int MOST_COMMON_HTTP_ERROR_CODE_FIELD_NUMBER = 3;
   private int mostCommonHttpErrorCode_;
   /**
-   *
-   *
    * 
    * Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
    * common HTTP error code, if such is available. For example, if this code is
@@ -500,7 +418,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError
    * 
* * int32 most_common_http_error_code = 3; - * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -509,7 +426,6 @@ public int getMostCommonHttpErrorCode() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -521,10 +437,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } if (scanConfigError_ != null) { @@ -542,16 +457,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (scanConfigError_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfigError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getScanConfigError()); } if (mostCommonHttpErrorCode_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, mostCommonHttpErrorCode_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, mostCommonHttpErrorCode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -561,20 +477,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace other = - (com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) obj; + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace other = (com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) obj; if (code_ != other.code_) return false; if (hasScanConfigError() != other.hasScanConfigError()) return false; if (hasScanConfigError()) { - if (!getScanConfigError().equals(other.getScanConfigError())) return false; + if (!getScanConfigError() + .equals(other.getScanConfigError())) return false; } - if (getMostCommonHttpErrorCode() != other.getMostCommonHttpErrorCode()) return false; + if (getMostCommonHttpErrorCode() + != other.getMostCommonHttpErrorCode()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -600,104 +517,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Output only.
    * Defines an error trace message for a ScanRun.
@@ -705,23 +614,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunErrorTrace}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanRunErrorTrace)
       com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.class,
-              com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder.class);
+              com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.class, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.newBuilder()
@@ -729,15 +636,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -755,9 +663,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
     }
 
     @java.lang.Override
@@ -776,8 +684,7 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace buildPartial() {
-      com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace result =
-          new com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace(this);
+      com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace result = new com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace(this);
       result.code_ = code_;
       if (scanConfigErrorBuilder_ == null) {
         result.scanConfigError_ = scanConfigError_;
@@ -793,39 +700,38 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -833,8 +739,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace other) {
-      if (other == com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance()) return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -863,8 +768,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -876,67 +780,51 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * Output only. Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Output only. Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ @@ -944,24 +832,21 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace. if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -969,13 +854,8 @@ public Builder clearCode() { private com.google.cloud.websecurityscanner.v1.ScanConfigError scanConfigError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfigError, - com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder> - scanConfigErrorBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfigError, com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder> scanConfigErrorBuilder_; /** - * - * *
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -983,15 +863,12 @@ public Builder clearCode() {
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; - * * @return Whether the scanConfigError field is set. */ public boolean hasScanConfigError() { return scanConfigErrorBuilder_ != null || scanConfigError_ != null; } /** - * - * *
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -999,21 +876,16 @@ public boolean hasScanConfigError() {
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; - * * @return The scanConfigError. */ public com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError() { if (scanConfigErrorBuilder_ == null) { - return scanConfigError_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance() - : scanConfigError_; + return scanConfigError_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance() : scanConfigError_; } else { return scanConfigErrorBuilder_.getMessage(); } } /** - * - * *
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1022,8 +894,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError
      *
      * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      */
-    public Builder setScanConfigError(
-        com.google.cloud.websecurityscanner.v1.ScanConfigError value) {
+    public Builder setScanConfigError(com.google.cloud.websecurityscanner.v1.ScanConfigError value) {
       if (scanConfigErrorBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1037,8 +908,6 @@ public Builder setScanConfigError(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1059,8 +928,6 @@ public Builder setScanConfigError(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1069,14 +936,11 @@ public Builder setScanConfigError(
      *
      * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      */
-    public Builder mergeScanConfigError(
-        com.google.cloud.websecurityscanner.v1.ScanConfigError value) {
+    public Builder mergeScanConfigError(com.google.cloud.websecurityscanner.v1.ScanConfigError value) {
       if (scanConfigErrorBuilder_ == null) {
         if (scanConfigError_ != null) {
           scanConfigError_ =
-              com.google.cloud.websecurityscanner.v1.ScanConfigError.newBuilder(scanConfigError_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.websecurityscanner.v1.ScanConfigError.newBuilder(scanConfigError_).mergeFrom(value).buildPartial();
         } else {
           scanConfigError_ = value;
         }
@@ -1088,8 +952,6 @@ public Builder mergeScanConfigError(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1110,8 +972,6 @@ public Builder clearScanConfigError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1120,15 +980,12 @@ public Builder clearScanConfigError() {
      *
      * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      */
-    public com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder
-        getScanConfigErrorBuilder() {
-
+    public com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder getScanConfigErrorBuilder() {
+      
       onChanged();
       return getScanConfigErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1137,19 +994,15 @@ public Builder clearScanConfigError() {
      *
      * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      */
-    public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder
-        getScanConfigErrorOrBuilder() {
+    public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder() {
       if (scanConfigErrorBuilder_ != null) {
         return scanConfigErrorBuilder_.getMessageOrBuilder();
       } else {
-        return scanConfigError_ == null
-            ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance()
-            : scanConfigError_;
+        return scanConfigError_ == null ?
+            com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance() : scanConfigError_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1159,26 +1012,21 @@ public Builder clearScanConfigError() {
      * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.ScanConfigError,
-            com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder,
-            com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder>
+        com.google.cloud.websecurityscanner.v1.ScanConfigError, com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder> 
         getScanConfigErrorFieldBuilder() {
       if (scanConfigErrorBuilder_ == null) {
-        scanConfigErrorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.websecurityscanner.v1.ScanConfigError,
-                com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder,
-                com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder>(
-                getScanConfigError(), getParentForChildren(), isClean());
+        scanConfigErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.websecurityscanner.v1.ScanConfigError, com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder>(
+                getScanConfigError(),
+                getParentForChildren(),
+                isClean());
         scanConfigError_ = null;
       }
       return scanConfigErrorBuilder_;
     }
 
-    private int mostCommonHttpErrorCode_;
+    private int mostCommonHttpErrorCode_ ;
     /**
-     *
-     *
      * 
      * Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1186,7 +1034,6 @@ public Builder clearScanConfigError() {
      * 
* * int32 most_common_http_error_code = 3; - * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -1194,8 +1041,6 @@ public int getMostCommonHttpErrorCode() { return mostCommonHttpErrorCode_; } /** - * - * *
      * Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1203,19 +1048,16 @@ public int getMostCommonHttpErrorCode() {
      * 
* * int32 most_common_http_error_code = 3; - * * @param value The mostCommonHttpErrorCode to set. * @return This builder for chaining. */ public Builder setMostCommonHttpErrorCode(int value) { - + mostCommonHttpErrorCode_ = value; onChanged(); return this; } /** - * - * *
      * Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1223,18 +1065,17 @@ public Builder setMostCommonHttpErrorCode(int value) {
      * 
* * int32 most_common_http_error_code = 3; - * * @return This builder for chaining. */ public Builder clearMostCommonHttpErrorCode() { - + mostCommonHttpErrorCode_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1244,12 +1085,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanRunErrorTrace) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanRunErrorTrace) private static final com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace(); } @@ -1258,16 +1099,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRunErrorTrace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunErrorTrace(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRunErrorTrace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRunErrorTrace(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1282,4 +1123,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java similarity index 77% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java index fb974bf8..469625b4 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_run_error_trace.proto package com.google.cloud.websecurityscanner.v1; -public interface ScanRunErrorTraceOrBuilder - extends +public interface ScanRunErrorTraceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanRunErrorTrace) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * Output only. Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; - * * @return The code. */ com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode(); /** - * - * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -58,13 +34,10 @@ public interface ScanRunErrorTraceOrBuilder
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; - * * @return Whether the scanConfigError field is set. */ boolean hasScanConfigError(); /** - * - * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -72,13 +45,10 @@ public interface ScanRunErrorTraceOrBuilder
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; - * * @return The scanConfigError. */ com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError(); /** - * - * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -90,8 +60,6 @@ public interface ScanRunErrorTraceOrBuilder
   com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
    * common HTTP error code, if such is available. For example, if this code is
@@ -99,7 +67,6 @@ public interface ScanRunErrorTraceOrBuilder
    * 
* * int32 most_common_http_error_code = 3; - * * @return The mostCommonHttpErrorCode. */ int getMostCommonHttpErrorCode(); diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java new file mode 100644 index 00000000..22246c0b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_run_error_trace.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanRunErrorTraceProto { + private ScanRunErrorTraceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n=google/cloud/websecurityscanner/v1/sca" + + "n_run_error_trace.proto\022\"google.cloud.we" + + "bsecurityscanner.v1\032:google/cloud/websec" + + "urityscanner/v1/scan_config_error.proto\"" + + "\215\003\n\021ScanRunErrorTrace\022H\n\004code\030\001 \001(\0162:.go" + + "ogle.cloud.websecurityscanner.v1.ScanRun" + + "ErrorTrace.Code\022N\n\021scan_config_error\030\002 \001" + + "(\01323.google.cloud.websecurityscanner.v1." + + "ScanConfigError\022#\n\033most_common_http_erro" + + "r_code\030\003 \001(\005\"\270\001\n\004Code\022\024\n\020CODE_UNSPECIFIE" + + "D\020\000\022\022\n\016INTERNAL_ERROR\020\001\022\025\n\021SCAN_CONFIG_I" + + "SSUE\020\002\022\037\n\033AUTHENTICATION_CONFIG_ISSUE\020\003\022" + + "\034\n\030TIMED_OUT_WHILE_SCANNING\020\004\022\026\n\022TOO_MAN" + + "Y_REDIRECTS\020\005\022\030\n\024TOO_MANY_HTTP_ERRORS\020\006B" + + "\212\002\n&com.google.cloud.websecurityscanner." + + "v1B\026ScanRunErrorTraceProtoP\001ZTgoogle.gol" + + "ang.org/genproto/googleapis/cloud/websec" + + "urityscanner/v1;websecurityscanner\252\002\"Goo" + + "gle.Cloud.WebSecurityScanner.V1\312\002\"Google" + + "\\Cloud\\WebSecurityScanner\\V1\352\002%Google::C" + + "loud::WebSecurityScanner::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor, + new java.lang.String[] { "Code", "ScanConfigError", "MostCommonHttpErrorCode", }); + com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java new file mode 100644 index 00000000..498e6090 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java @@ -0,0 +1,1400 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_run_log.proto + +package com.google.cloud.websecurityscanner.v1; + +/** + *
+ * A ScanRunLog is an output-only proto used for Stackdriver customer logging.
+ * It is used for logs covering the start and end of scan pipelines.
+ * Other than an added summary, this is a subset of the ScanRun.
+ * Representation in logs is either a proto Struct, or converted to JSON.
+ * Next id: 9
+ * 
+ * + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunLog} + */ +public final class ScanRunLog extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanRunLog) + ScanRunLogOrBuilder { +private static final long serialVersionUID = 0L; + // Use ScanRunLog.newBuilder() to construct. + private ScanRunLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ScanRunLog() { + summary_ = ""; + name_ = ""; + executionState_ = 0; + resultState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ScanRunLog(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ScanRunLog( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + summary_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + + executionState_ = rawValue; + break; + } + case 32: { + int rawValue = input.readEnum(); + + resultState_ = rawValue; + break; + } + case 40: { + + urlsCrawledCount_ = input.readInt64(); + break; + } + case 48: { + + urlsTestedCount_ = input.readInt64(); + break; + } + case 56: { + + hasFindings_ = input.readBool(); + break; + } + case 66: { + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder subBuilder = null; + if (errorTrace_ != null) { + subBuilder = errorTrace_.toBuilder(); + } + errorTrace_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(errorTrace_); + errorTrace_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanRunLogProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.websecurityscanner.v1.ScanRunLogProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.websecurityscanner.v1.ScanRunLog.class, com.google.cloud.websecurityscanner.v1.ScanRunLog.Builder.class); + } + + public static final int SUMMARY_FIELD_NUMBER = 1; + private volatile java.lang.Object summary_; + /** + *
+   * Human friendly message about the event.
+   * 
+ * + * string summary = 1; + * @return The summary. + */ + @java.lang.Override + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } + } + /** + *
+   * Human friendly message about the event.
+   * 
+ * + * string summary = 1; + * @return The bytes for summary. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+   * The resource name of the ScanRun being logged.
+   * 
+ * + * string name = 2; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The resource name of the ScanRun being logged.
+   * 
+ * + * string name = 2; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXECUTION_STATE_FIELD_NUMBER = 3; + private int executionState_; + /** + *
+   * The execution state of the ScanRun.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * @return The enum numeric value on the wire for executionState. + */ + @java.lang.Override public int getExecutionStateValue() { + return executionState_; + } + /** + *
+   * The execution state of the ScanRun.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * @return The executionState. + */ + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { + @SuppressWarnings("deprecation") + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED : result; + } + + public static final int RESULT_STATE_FIELD_NUMBER = 4; + private int resultState_; + /** + *
+   * The result state of the ScanRun.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * @return The enum numeric value on the wire for resultState. + */ + @java.lang.Override public int getResultStateValue() { + return resultState_; + } + /** + *
+   * The result state of the ScanRun.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * @return The resultState. + */ + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { + @SuppressWarnings("deprecation") + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED : result; + } + + public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 5; + private long urlsCrawledCount_; + /** + * int64 urls_crawled_count = 5; + * @return The urlsCrawledCount. + */ + @java.lang.Override + public long getUrlsCrawledCount() { + return urlsCrawledCount_; + } + + public static final int URLS_TESTED_COUNT_FIELD_NUMBER = 6; + private long urlsTestedCount_; + /** + * int64 urls_tested_count = 6; + * @return The urlsTestedCount. + */ + @java.lang.Override + public long getUrlsTestedCount() { + return urlsTestedCount_; + } + + public static final int HAS_FINDINGS_FIELD_NUMBER = 7; + private boolean hasFindings_; + /** + * bool has_findings = 7; + * @return The hasFindings. + */ + @java.lang.Override + public boolean getHasFindings() { + return hasFindings_; + } + + public static final int ERROR_TRACE_FIELD_NUMBER = 8; + private com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace errorTrace_; + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + * @return Whether the errorTrace field is set. + */ + @java.lang.Override + public boolean hasErrorTrace() { + return errorTrace_ != null; + } + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + * @return The errorTrace. + */ + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace() { + return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; + } + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() { + return getErrorTrace(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, summary_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + if (executionState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, executionState_); + } + if (resultState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, resultState_); + } + if (urlsCrawledCount_ != 0L) { + output.writeInt64(5, urlsCrawledCount_); + } + if (urlsTestedCount_ != 0L) { + output.writeInt64(6, urlsTestedCount_); + } + if (hasFindings_ != false) { + output.writeBool(7, hasFindings_); + } + if (errorTrace_ != null) { + output.writeMessage(8, getErrorTrace()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, summary_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + if (executionState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, executionState_); + } + if (resultState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, resultState_); + } + if (urlsCrawledCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, urlsCrawledCount_); + } + if (urlsTestedCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, urlsTestedCount_); + } + if (hasFindings_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, hasFindings_); + } + if (errorTrace_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getErrorTrace()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanRunLog)) { + return super.equals(obj); + } + com.google.cloud.websecurityscanner.v1.ScanRunLog other = (com.google.cloud.websecurityscanner.v1.ScanRunLog) obj; + + if (!getSummary() + .equals(other.getSummary())) return false; + if (!getName() + .equals(other.getName())) return false; + if (executionState_ != other.executionState_) return false; + if (resultState_ != other.resultState_) return false; + if (getUrlsCrawledCount() + != other.getUrlsCrawledCount()) return false; + if (getUrlsTestedCount() + != other.getUrlsTestedCount()) return false; + if (getHasFindings() + != other.getHasFindings()) return false; + if (hasErrorTrace() != other.hasErrorTrace()) return false; + if (hasErrorTrace()) { + if (!getErrorTrace() + .equals(other.getErrorTrace())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUMMARY_FIELD_NUMBER; + hash = (53 * hash) + getSummary().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + EXECUTION_STATE_FIELD_NUMBER; + hash = (53 * hash) + executionState_; + hash = (37 * hash) + RESULT_STATE_FIELD_NUMBER; + hash = (53 * hash) + resultState_; + hash = (37 * hash) + URLS_CRAWLED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUrlsCrawledCount()); + hash = (37 * hash) + URLS_TESTED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUrlsTestedCount()); + hash = (37 * hash) + HAS_FINDINGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasFindings()); + if (hasErrorTrace()) { + hash = (37 * hash) + ERROR_TRACE_FIELD_NUMBER; + hash = (53 * hash) + getErrorTrace().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanRunLog prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A ScanRunLog is an output-only proto used for Stackdriver customer logging.
+   * It is used for logs covering the start and end of scan pipelines.
+   * Other than an added summary, this is a subset of the ScanRun.
+   * Representation in logs is either a proto Struct, or converted to JSON.
+   * Next id: 9
+   * 
+ * + * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunLog} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanRunLog) + com.google.cloud.websecurityscanner.v1.ScanRunLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanRunLogProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.websecurityscanner.v1.ScanRunLogProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.websecurityscanner.v1.ScanRunLog.class, com.google.cloud.websecurityscanner.v1.ScanRunLog.Builder.class); + } + + // Construct using com.google.cloud.websecurityscanner.v1.ScanRunLog.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + summary_ = ""; + + name_ = ""; + + executionState_ = 0; + + resultState_ = 0; + + urlsCrawledCount_ = 0L; + + urlsTestedCount_ = 0L; + + hasFindings_ = false; + + if (errorTraceBuilder_ == null) { + errorTrace_ = null; + } else { + errorTrace_ = null; + errorTraceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanRunLogProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor; + } + + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRunLog getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ScanRunLog.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRunLog build() { + com.google.cloud.websecurityscanner.v1.ScanRunLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRunLog buildPartial() { + com.google.cloud.websecurityscanner.v1.ScanRunLog result = new com.google.cloud.websecurityscanner.v1.ScanRunLog(this); + result.summary_ = summary_; + result.name_ = name_; + result.executionState_ = executionState_; + result.resultState_ = resultState_; + result.urlsCrawledCount_ = urlsCrawledCount_; + result.urlsTestedCount_ = urlsTestedCount_; + result.hasFindings_ = hasFindings_; + if (errorTraceBuilder_ == null) { + result.errorTrace_ = errorTrace_; + } else { + result.errorTrace_ = errorTraceBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.websecurityscanner.v1.ScanRunLog) { + return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRunLog)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRunLog other) { + if (other == com.google.cloud.websecurityscanner.v1.ScanRunLog.getDefaultInstance()) return this; + if (!other.getSummary().isEmpty()) { + summary_ = other.summary_; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.executionState_ != 0) { + setExecutionStateValue(other.getExecutionStateValue()); + } + if (other.resultState_ != 0) { + setResultStateValue(other.getResultStateValue()); + } + if (other.getUrlsCrawledCount() != 0L) { + setUrlsCrawledCount(other.getUrlsCrawledCount()); + } + if (other.getUrlsTestedCount() != 0L) { + setUrlsTestedCount(other.getUrlsTestedCount()); + } + if (other.getHasFindings() != false) { + setHasFindings(other.getHasFindings()); + } + if (other.hasErrorTrace()) { + mergeErrorTrace(other.getErrorTrace()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.websecurityscanner.v1.ScanRunLog parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanRunLog) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object summary_ = ""; + /** + *
+     * Human friendly message about the event.
+     * 
+ * + * string summary = 1; + * @return The summary. + */ + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Human friendly message about the event.
+     * 
+ * + * string summary = 1; + * @return The bytes for summary. + */ + public com.google.protobuf.ByteString + getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Human friendly message about the event.
+     * 
+ * + * string summary = 1; + * @param value The summary to set. + * @return This builder for chaining. + */ + public Builder setSummary( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + summary_ = value; + onChanged(); + return this; + } + /** + *
+     * Human friendly message about the event.
+     * 
+ * + * string summary = 1; + * @return This builder for chaining. + */ + public Builder clearSummary() { + + summary_ = getDefaultInstance().getSummary(); + onChanged(); + return this; + } + /** + *
+     * Human friendly message about the event.
+     * 
+ * + * string summary = 1; + * @param value The bytes for summary to set. + * @return This builder for chaining. + */ + public Builder setSummaryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + summary_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * The resource name of the ScanRun being logged.
+     * 
+ * + * string name = 2; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The resource name of the ScanRun being logged.
+     * 
+ * + * string name = 2; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The resource name of the ScanRun being logged.
+     * 
+ * + * string name = 2; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The resource name of the ScanRun being logged.
+     * 
+ * + * string name = 2; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The resource name of the ScanRun being logged.
+     * 
+ * + * string name = 2; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int executionState_ = 0; + /** + *
+     * The execution state of the ScanRun.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * @return The enum numeric value on the wire for executionState. + */ + @java.lang.Override public int getExecutionStateValue() { + return executionState_; + } + /** + *
+     * The execution state of the ScanRun.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * @param value The enum numeric value on the wire for executionState to set. + * @return This builder for chaining. + */ + public Builder setExecutionStateValue(int value) { + + executionState_ = value; + onChanged(); + return this; + } + /** + *
+     * The execution state of the ScanRun.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * @return The executionState. + */ + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { + @SuppressWarnings("deprecation") + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED : result; + } + /** + *
+     * The execution state of the ScanRun.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * @param value The executionState to set. + * @return This builder for chaining. + */ + public Builder setExecutionState(com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState value) { + if (value == null) { + throw new NullPointerException(); + } + + executionState_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The execution state of the ScanRun.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * @return This builder for chaining. + */ + public Builder clearExecutionState() { + + executionState_ = 0; + onChanged(); + return this; + } + + private int resultState_ = 0; + /** + *
+     * The result state of the ScanRun.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * @return The enum numeric value on the wire for resultState. + */ + @java.lang.Override public int getResultStateValue() { + return resultState_; + } + /** + *
+     * The result state of the ScanRun.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * @param value The enum numeric value on the wire for resultState to set. + * @return This builder for chaining. + */ + public Builder setResultStateValue(int value) { + + resultState_ = value; + onChanged(); + return this; + } + /** + *
+     * The result state of the ScanRun.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * @return The resultState. + */ + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { + @SuppressWarnings("deprecation") + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED : result; + } + /** + *
+     * The result state of the ScanRun.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * @param value The resultState to set. + * @return This builder for chaining. + */ + public Builder setResultState(com.google.cloud.websecurityscanner.v1.ScanRun.ResultState value) { + if (value == null) { + throw new NullPointerException(); + } + + resultState_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * The result state of the ScanRun.
+     * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * @return This builder for chaining. + */ + public Builder clearResultState() { + + resultState_ = 0; + onChanged(); + return this; + } + + private long urlsCrawledCount_ ; + /** + * int64 urls_crawled_count = 5; + * @return The urlsCrawledCount. + */ + @java.lang.Override + public long getUrlsCrawledCount() { + return urlsCrawledCount_; + } + /** + * int64 urls_crawled_count = 5; + * @param value The urlsCrawledCount to set. + * @return This builder for chaining. + */ + public Builder setUrlsCrawledCount(long value) { + + urlsCrawledCount_ = value; + onChanged(); + return this; + } + /** + * int64 urls_crawled_count = 5; + * @return This builder for chaining. + */ + public Builder clearUrlsCrawledCount() { + + urlsCrawledCount_ = 0L; + onChanged(); + return this; + } + + private long urlsTestedCount_ ; + /** + * int64 urls_tested_count = 6; + * @return The urlsTestedCount. + */ + @java.lang.Override + public long getUrlsTestedCount() { + return urlsTestedCount_; + } + /** + * int64 urls_tested_count = 6; + * @param value The urlsTestedCount to set. + * @return This builder for chaining. + */ + public Builder setUrlsTestedCount(long value) { + + urlsTestedCount_ = value; + onChanged(); + return this; + } + /** + * int64 urls_tested_count = 6; + * @return This builder for chaining. + */ + public Builder clearUrlsTestedCount() { + + urlsTestedCount_ = 0L; + onChanged(); + return this; + } + + private boolean hasFindings_ ; + /** + * bool has_findings = 7; + * @return The hasFindings. + */ + @java.lang.Override + public boolean getHasFindings() { + return hasFindings_; + } + /** + * bool has_findings = 7; + * @param value The hasFindings to set. + * @return This builder for chaining. + */ + public Builder setHasFindings(boolean value) { + + hasFindings_ = value; + onChanged(); + return this; + } + /** + * bool has_findings = 7; + * @return This builder for chaining. + */ + public Builder clearHasFindings() { + + hasFindings_ = false; + onChanged(); + return this; + } + + private com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace errorTrace_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> errorTraceBuilder_; + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + * @return Whether the errorTrace field is set. + */ + public boolean hasErrorTrace() { + return errorTraceBuilder_ != null || errorTrace_ != null; + } + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + * @return The errorTrace. + */ + public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace() { + if (errorTraceBuilder_ == null) { + return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; + } else { + return errorTraceBuilder_.getMessage(); + } + } + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ + public Builder setErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace value) { + if (errorTraceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorTrace_ = value; + onChanged(); + } else { + errorTraceBuilder_.setMessage(value); + } + + return this; + } + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ + public Builder setErrorTrace( + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder builderForValue) { + if (errorTraceBuilder_ == null) { + errorTrace_ = builderForValue.build(); + onChanged(); + } else { + errorTraceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ + public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace value) { + if (errorTraceBuilder_ == null) { + if (errorTrace_ != null) { + errorTrace_ = + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.newBuilder(errorTrace_).mergeFrom(value).buildPartial(); + } else { + errorTrace_ = value; + } + onChanged(); + } else { + errorTraceBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ + public Builder clearErrorTrace() { + if (errorTraceBuilder_ == null) { + errorTrace_ = null; + onChanged(); + } else { + errorTrace_ = null; + errorTraceBuilder_ = null; + } + + return this; + } + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ + public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder getErrorTraceBuilder() { + + onChanged(); + return getErrorTraceFieldBuilder().getBuilder(); + } + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ + public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() { + if (errorTraceBuilder_ != null) { + return errorTraceBuilder_.getMessageOrBuilder(); + } else { + return errorTrace_ == null ? + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; + } + } + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> + getErrorTraceFieldBuilder() { + if (errorTraceBuilder_ == null) { + errorTraceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder>( + getErrorTrace(), + getParentForChildren(), + isClean()); + errorTrace_ = null; + } + return errorTraceBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanRunLog) + } + + // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanRunLog) + private static final com.google.cloud.websecurityscanner.v1.ScanRunLog DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanRunLog(); + } + + public static com.google.cloud.websecurityscanner.v1.ScanRunLog getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRunLog parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRunLog(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRunLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java new file mode 100644 index 00000000..daef3296 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java @@ -0,0 +1,120 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_run_log.proto + +package com.google.cloud.websecurityscanner.v1; + +public interface ScanRunLogOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanRunLog) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Human friendly message about the event.
+   * 
+ * + * string summary = 1; + * @return The summary. + */ + java.lang.String getSummary(); + /** + *
+   * Human friendly message about the event.
+   * 
+ * + * string summary = 1; + * @return The bytes for summary. + */ + com.google.protobuf.ByteString + getSummaryBytes(); + + /** + *
+   * The resource name of the ScanRun being logged.
+   * 
+ * + * string name = 2; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * The resource name of the ScanRun being logged.
+   * 
+ * + * string name = 2; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The execution state of the ScanRun.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * @return The enum numeric value on the wire for executionState. + */ + int getExecutionStateValue(); + /** + *
+   * The execution state of the ScanRun.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * @return The executionState. + */ + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState(); + + /** + *
+   * The result state of the ScanRun.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * @return The enum numeric value on the wire for resultState. + */ + int getResultStateValue(); + /** + *
+   * The result state of the ScanRun.
+   * 
+ * + * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * @return The resultState. + */ + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState(); + + /** + * int64 urls_crawled_count = 5; + * @return The urlsCrawledCount. + */ + long getUrlsCrawledCount(); + + /** + * int64 urls_tested_count = 6; + * @return The urlsTestedCount. + */ + long getUrlsTestedCount(); + + /** + * bool has_findings = 7; + * @return The hasFindings. + */ + boolean getHasFindings(); + + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + * @return Whether the errorTrace field is set. + */ + boolean hasErrorTrace(); + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + * @return The errorTrace. + */ + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace(); + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ + com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java new file mode 100644 index 00000000..b5c8efb4 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java @@ -0,0 +1,70 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_run_log.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanRunLogProto { + private ScanRunLogProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/websecurityscanner/v1/sca" + + "n_run_log.proto\022\"google.cloud.websecurit" + + "yscanner.v1\0321google/cloud/websecuritysca" + + "nner/v1/scan_run.proto\032=google/cloud/web" + + "securityscanner/v1/scan_run_error_trace." + + "proto\"\350\002\n\nScanRunLog\022\017\n\007summary\030\001 \001(\t\022\014\n" + + "\004name\030\002 \001(\t\022S\n\017execution_state\030\003 \001(\0162:.g" + + "oogle.cloud.websecurityscanner.v1.ScanRu" + + "n.ExecutionState\022M\n\014result_state\030\004 \001(\01627" + + ".google.cloud.websecurityscanner.v1.Scan" + + "Run.ResultState\022\032\n\022urls_crawled_count\030\005 " + + "\001(\003\022\031\n\021urls_tested_count\030\006 \001(\003\022\024\n\014has_fi" + + "ndings\030\007 \001(\010\022J\n\013error_trace\030\010 \001(\01325.goog" + + "le.cloud.websecurityscanner.v1.ScanRunEr" + + "rorTraceB\203\002\n&com.google.cloud.websecurit" + + "yscanner.v1B\017ScanRunLogProtoP\001ZTgoogle.g" + + "olang.org/genproto/googleapis/cloud/webs" + + "ecurityscanner/v1;websecurityscanner\252\002\"G" + + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" + + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" + + ":Cloud::WebSecurityScanner::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.websecurityscanner.v1.ScanRunProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor, + new java.lang.String[] { "Summary", "Name", "ExecutionState", "ResultState", "UrlsCrawledCount", "UrlsTestedCount", "HasFindings", "ErrorTrace", }); + com.google.cloud.websecurityscanner.v1.ScanRunProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java similarity index 85% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java index 1a42828e..cba66f0a 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_run.proto package com.google.cloud.websecurityscanner.v1; -public interface ScanRunOrBuilder - extends +public interface ScanRunOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanRun) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -33,13 +15,10 @@ public interface ScanRunOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -47,90 +26,70 @@ public interface ScanRunOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @return The enum numeric value on the wire for executionState. */ int getExecutionStateValue(); /** - * - * *
    * Output only. The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; - * * @return The executionState. */ com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState(); /** - * - * *
    * Output only. The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ int getResultStateValue(); /** - * - * *
    * Output only. The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState(); /** - * - * *
    * Output only. The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Output only. The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Output only. The time at which the ScanRun started.
    * 
@@ -140,34 +99,26 @@ public interface ScanRunOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -178,22 +129,17 @@ public interface ScanRunOrBuilder
   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ long getUrlsCrawledCount(); /** - * - * *
    * Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -202,27 +148,21 @@ public interface ScanRunOrBuilder
    * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ long getUrlsTestedCount(); /** - * - * *
    * Output only. Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ boolean getHasVulnerabilities(); /** - * - * *
    * Output only. The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -231,40 +171,31 @@ public interface ScanRunOrBuilder
    * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ int getProgressPercent(); /** - * - * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; - * * @return Whether the errorTrace field is set. */ boolean hasErrorTrace(); /** - * - * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; - * * @return The errorTrace. */ com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace(); /** - * - * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
@@ -275,59 +206,45 @@ public interface ScanRunOrBuilder
   com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - java.util.List getWarningTracesList(); + java.util.List + getWarningTracesList(); /** - * - * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getWarningTraces(int index); /** - * - * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ int getWarningTracesCount(); /** - * - * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ - java.util.List + java.util.List getWarningTracesOrBuilderList(); /** - * - * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; */ com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( int index); diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java new file mode 100644 index 00000000..0859f5e4 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java @@ -0,0 +1,82 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_run.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanRunProto { + private ScanRunProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/websecurityscanner/v1/sca" + + "n_run.proto\022\"google.cloud.websecuritysca" + + "nner.v1\032=google/cloud/websecurityscanner" + + "/v1/scan_run_error_trace.proto\032?google/c" + + "loud/websecurityscanner/v1/scan_run_warn" + + "ing_trace.proto\032\037google/protobuf/timesta" + + "mp.proto\"\320\005\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022S\n\017ex" + + "ecution_state\030\002 \001(\0162:.google.cloud.webse" + + "curityscanner.v1.ScanRun.ExecutionState\022" + + "M\n\014result_state\030\003 \001(\01627.google.cloud.web" + + "securityscanner.v1.ScanRun.ResultState\022." + + "\n\nstart_time\030\004 \001(\0132\032.google.protobuf.Tim" + + "estamp\022,\n\010end_time\030\005 \001(\0132\032.google.protob" + + "uf.Timestamp\022\032\n\022urls_crawled_count\030\006 \001(\003" + + "\022\031\n\021urls_tested_count\030\007 \001(\003\022\033\n\023has_vulne" + + "rabilities\030\010 \001(\010\022\030\n\020progress_percent\030\t \001" + + "(\005\022J\n\013error_trace\030\n \001(\01325.google.cloud.w" + + "ebsecurityscanner.v1.ScanRunErrorTrace\022O" + + "\n\016warning_traces\030\013 \003(\01327.google.cloud.we" + + "bsecurityscanner.v1.ScanRunWarningTrace\"" + + "Y\n\016ExecutionState\022\037\n\033EXECUTION_STATE_UNS" + + "PECIFIED\020\000\022\n\n\006QUEUED\020\001\022\014\n\010SCANNING\020\002\022\014\n\010" + + "FINISHED\020\003\"O\n\013ResultState\022\034\n\030RESULT_STAT" + + "E_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020\001\022\t\n\005ERROR\020\002\022" + + "\n\n\006KILLED\020\003B\200\002\n&com.google.cloud.websecu" + + "rityscanner.v1B\014ScanRunProtoP\001ZTgoogle.g" + + "olang.org/genproto/googleapis/cloud/webs" + + "ecurityscanner/v1;websecurityscanner\252\002\"G" + + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" + + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" + + ":Cloud::WebSecurityScanner::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor, + new java.lang.String[] { "Name", "ExecutionState", "ResultState", "StartTime", "EndTime", "UrlsCrawledCount", "UrlsTestedCount", "HasVulnerabilities", "ProgressPercent", "ErrorTrace", "WarningTraces", }); + com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java similarity index 71% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java index fd04b91e..4e7f682a 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Output only.
  * Defines a warning trace message for ScanRun. Warning traces provide customers
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunWarningTrace}
  */
-public final class ScanRunWarningTrace extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanRunWarningTrace extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanRunWarningTrace)
     ScanRunWarningTraceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanRunWarningTrace.newBuilder() to construct.
   private ScanRunWarningTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanRunWarningTrace() {
     code_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanRunWarningTrace();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanRunWarningTrace(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,20 +55,19 @@ private ScanRunWarningTrace(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              code_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            code_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -93,31 +75,27 @@ private ScanRunWarningTrace(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto
-        .internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.class,
-            com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder.class);
+            com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.class, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Output only.
    * Defines a warning message code.
@@ -126,10 +104,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code}
    */
-  public enum Code implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Code
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Default value is never used.
      * 
@@ -138,8 +115,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
      * Indicates that a scan discovered an unexpectedly low number of URLs. This
      * is sometimes caused by complex navigation features or by using a single
@@ -150,8 +125,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     INSUFFICIENT_CRAWL_RESULTS(1),
     /**
-     *
-     *
      * 
      * Indicates that a scan discovered too many URLs to test, or excessive
      * redundant URLs.
@@ -161,8 +134,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     TOO_MANY_CRAWL_RESULTS(2),
     /**
-     *
-     *
      * 
      * Indicates that too many tests have been generated for the scan. Customer
      * should try reducing the number of starting URLs, increasing the QPS rate,
@@ -173,8 +144,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     TOO_MANY_FUZZ_TASKS(3),
     /**
-     *
-     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -186,8 +155,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value is never used.
      * 
@@ -196,8 +163,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Indicates that a scan discovered an unexpectedly low number of URLs. This
      * is sometimes caused by complex navigation features or by using a single
@@ -208,8 +173,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INSUFFICIENT_CRAWL_RESULTS_VALUE = 1;
     /**
-     *
-     *
      * 
      * Indicates that a scan discovered too many URLs to test, or excessive
      * redundant URLs.
@@ -219,8 +182,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TOO_MANY_CRAWL_RESULTS_VALUE = 2;
     /**
-     *
-     *
      * 
      * Indicates that too many tests have been generated for the scan. Customer
      * should try reducing the number of starting URLs, increasing the QPS rate,
@@ -231,8 +192,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TOO_MANY_FUZZ_TASKS_VALUE = 3;
     /**
-     *
-     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -241,6 +200,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BLOCKED_BY_IAP_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -265,55 +225,51 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: - return CODE_UNSPECIFIED; - case 1: - return INSUFFICIENT_CRAWL_RESULTS; - case 2: - return TOO_MANY_CRAWL_RESULTS; - case 3: - return TOO_MANY_FUZZ_TASKS; - case 4: - return BLOCKED_BY_IAP; - default: - return null; + case 0: return CODE_UNSPECIFIED; + case 1: return INSUFFICIENT_CRAWL_RESULTS; + case 2: return TOO_MANY_CRAWL_RESULTS; + case 3: return TOO_MANY_FUZZ_TASKS; + case 4: return BLOCKED_BY_IAP; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = values(); - public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -333,43 +289,31 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** - * - * *
    * Output only. Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Output only. Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code getCode() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,10 +325,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } unknownFields.writeTo(output); @@ -396,10 +339,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -409,13 +351,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace other = - (com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) obj; + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace other = (com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) obj; if (code_ != other.code_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -437,104 +378,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Output only.
    * Defines a warning trace message for ScanRun. Warning traces provide customers
@@ -543,23 +476,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunWarningTrace}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanRunWarningTrace)
       com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.class,
-              com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder.class);
+              com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.class, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.newBuilder()
@@ -567,15 +498,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -585,9 +517,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
     }
 
     @java.lang.Override
@@ -606,8 +538,7 @@ public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace buildPartial() {
-      com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace result =
-          new com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace(this);
+      com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace result = new com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace(this);
       result.code_ = code_;
       onBuilt();
       return result;
@@ -617,39 +548,38 @@ public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -657,8 +587,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace other) {
-      if (other == com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance()) return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -681,8 +610,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -694,67 +622,51 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * Output only. Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Output only. Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ @@ -762,31 +674,28 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1.ScanRunWarningTrac if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -796,12 +705,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanRunWarningTrace) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanRunWarningTrace) private static final com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace(); } @@ -810,16 +719,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRunWarningTrace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunWarningTrace(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRunWarningTrace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRunWarningTrace(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -834,4 +743,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java similarity index 55% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java index 1586e0e0..bfd08704 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto package com.google.cloud.websecurityscanner.v1; -public interface ScanRunWarningTraceOrBuilder - extends +public interface ScanRunWarningTraceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanRunWarningTrace) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * Output only. Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @return The code. */ com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code getCode(); diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java new file mode 100644 index 00000000..695142d7 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java @@ -0,0 +1,61 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanRunWarningTraceProto { + private ScanRunWarningTraceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n?google/cloud/websecurityscanner/v1/sca" + + "n_run_warning_trace.proto\022\"google.cloud." + + "websecurityscanner.v1\"\351\001\n\023ScanRunWarning" + + "Trace\022J\n\004code\030\001 \001(\0162<.google.cloud.webse" + + "curityscanner.v1.ScanRunWarningTrace.Cod" + + "e\"\205\001\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\036\n\032INSU" + + "FFICIENT_CRAWL_RESULTS\020\001\022\032\n\026TOO_MANY_CRA" + + "WL_RESULTS\020\002\022\027\n\023TOO_MANY_FUZZ_TASKS\020\003\022\022\n" + + "\016BLOCKED_BY_IAP\020\004B\214\002\n&com.google.cloud.w" + + "ebsecurityscanner.v1B\030ScanRunWarningTrac" + + "eProtoP\001ZTgoogle.golang.org/genproto/goo" + + "gleapis/cloud/websecurityscanner/v1;webs" + + "ecurityscanner\252\002\"Google.Cloud.WebSecurit" + + "yScanner.V1\312\002\"Google\\Cloud\\WebSecuritySc" + + "anner\\V1\352\002%Google::Cloud::WebSecuritySca" + + "nner::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor, + new java.lang.String[] { "Code", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java similarity index 70% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java index 12f6290b..5242da6f 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `StartScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.StartScanRunRequest} */ -public final class StartScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.StartScanRunRequest) StartScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartScanRunRequest.newBuilder() to construct. private StartScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StartScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StartScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,40 +73,35 @@ private StartScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, - com.google.cloud.websecurityscanner.v1.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1.StartScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -133,30 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.StartScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.StartScanRunRequest other = - (com.google.cloud.websecurityscanner.v1.StartScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1.StartScanRunRequest other = (com.google.cloud.websecurityscanner.v1.StartScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -229,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.StartScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `StartScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.StartScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.StartScanRunRequest) com.google.cloud.websecurityscanner.v1.StartScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, - com.google.cloud.websecurityscanner.v1.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1.StartScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.StartScanRunRequest.newBuilder() @@ -357,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; } @java.lang.Override @@ -396,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1.StartScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.StartScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.StartScanRunRequest result = - new com.google.cloud.websecurityscanner.v1.StartScanRunRequest(this); + com.google.cloud.websecurityscanner.v1.StartScanRunRequest result = new com.google.cloud.websecurityscanner.v1.StartScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -407,39 +374,38 @@ public com.google.cloud.websecurityscanner.v1.StartScanRunRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.StartScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.StartScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.StartScanRunRequest)other); } else { super.mergeFrom(other); return this; @@ -447,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.StartScanRunRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.StartScanRunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.StartScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -472,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.StartScanRunRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.StartScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,21 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -508,22 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -531,71 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -605,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.StartScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.StartScanRunRequest) private static final com.google.cloud.websecurityscanner.v1.StartScanRunRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.StartScanRunRequest(); } @@ -619,16 +573,16 @@ public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.StartScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java index 4529ac02..78720ba5 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface StartScanRunRequestOrBuilder - extends +public interface StartScanRunRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.StartScanRunRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java similarity index 70% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java index 90dc6218..d214a4f4 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `StopScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.StopScanRunRequest} */ -public final class StopScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StopScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.StopScanRunRequest) StopScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StopScanRunRequest.newBuilder() to construct. private StopScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StopScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StopScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StopScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StopScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private StopScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, - com.google.cloud.websecurityscanner.v1.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1.StopScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
@@ -125,7 +103,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -134,15 +111,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
@@ -150,15 +126,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.StopScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.StopScanRunRequest other = - (com.google.cloud.websecurityscanner.v1.StopScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1.StopScanRunRequest other = (com.google.cloud.websecurityscanner.v1.StopScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.StopScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `StopScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.StopScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.StopScanRunRequest) com.google.cloud.websecurityscanner.v1.StopScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, - com.google.cloud.websecurityscanner.v1.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1.StopScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.StopScanRunRequest.newBuilder() @@ -359,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; } @java.lang.Override @@ -398,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1.StopScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.StopScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.StopScanRunRequest result = - new com.google.cloud.websecurityscanner.v1.StopScanRunRequest(this); + com.google.cloud.websecurityscanner.v1.StopScanRunRequest result = new com.google.cloud.websecurityscanner.v1.StopScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1.StopScanRunRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.StopScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.StopScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.StopScanRunRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.StopScanRunRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.StopScanRunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.StopScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.StopScanRunRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.StopScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -496,13 +458,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -511,8 +473,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -520,14 +480,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -535,8 +496,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -544,22 +503,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -567,18 +524,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -586,23 +540,23 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -612,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.StopScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.StopScanRunRequest) private static final com.google.cloud.websecurityscanner.v1.StopScanRunRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.StopScanRunRequest(); } @@ -626,16 +580,16 @@ public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.StopScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java index 8201e67e..f48ebe77 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface StopScanRunRequestOrBuilder - extends +public interface StopScanRunRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.StopScanRunRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
@@ -33,13 +15,10 @@ public interface StopScanRunRequestOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
@@ -47,8 +26,8 @@ public interface StopScanRunRequestOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java index 0564c177..14fd5588 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Request for the `UpdateScanConfigRequest` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.UpdateScanConfigRequest} */ -public final class UpdateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) UpdateScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateScanConfigRequest.newBuilder() to construct. private UpdateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateScanConfigRequest() {} + private UpdateScanConfigRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private UpdateScanConfigRequest( case 0: done = true; break; - case 18: - { - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } - - break; + case 18: { + com.google.cloud.websecurityscanner.v1.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); + } + scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,33 +92,29 @@ private UpdateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.Builder.class); } public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1.ScanConfig scanConfig_; /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -148,7 +122,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -156,8 +129,6 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -165,18 +136,13 @@ public boolean hasScanConfig() {
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig() { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_; } /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -193,8 +159,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
   public static final int UPDATE_MASK_FIELD_NUMBER = 3;
   private com.google.protobuf.FieldMask updateMask_;
   /**
-   *
-   *
    * 
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
@@ -202,7 +166,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -210,8 +173,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
@@ -219,7 +180,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ @java.lang.Override @@ -227,8 +187,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
@@ -243,7 +201,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -255,7 +212,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (scanConfig_ != null) {
       output.writeMessage(2, getScanConfig());
     }
@@ -272,10 +230,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (scanConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getScanConfig());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -285,21 +245,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest other =
-        (com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) obj;
+    com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) obj;
 
     if (hasScanConfig() != other.hasScanConfig()) return false;
     if (hasScanConfig()) {
-      if (!getScanConfig().equals(other.getScanConfig())) return false;
+      if (!getScanConfig()
+          .equals(other.getScanConfig())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask()
+          .equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -326,127 +287,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request for the `UpdateScanConfigRequest` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.UpdateScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.newBuilder() @@ -454,15 +405,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,14 +434,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.getDefaultInstance(); } @@ -504,8 +455,7 @@ public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest(this); if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; } else { @@ -524,39 +474,38 @@ public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -564,9 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.getDefaultInstance()) return this; if (other.hasScanConfig()) { mergeScanConfig(other.getScanConfig()); } @@ -592,9 +539,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -606,13 +551,8 @@ public Builder mergeFrom( private com.google.cloud.websecurityscanner.v1.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> - scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> scanConfigBuilder_; /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -620,15 +560,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -636,21 +573,16 @@ public boolean hasScanConfig() {
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -673,8 +605,6 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig v
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -695,8 +625,6 @@ public Builder setScanConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -709,9 +637,7 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig
       if (scanConfigBuilder_ == null) {
         if (scanConfig_ != null) {
           scanConfig_ =
-              com.google.cloud.websecurityscanner.v1.ScanConfig.newBuilder(scanConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.websecurityscanner.v1.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial();
         } else {
           scanConfig_ = value;
         }
@@ -723,8 +649,6 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -745,8 +669,6 @@ public Builder clearScanConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -756,13 +678,11 @@ public Builder clearScanConfig() {
      * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2;
      */
     public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigBuilder() {
-
+      
       onChanged();
       return getScanConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -775,14 +695,11 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
       if (scanConfigBuilder_ != null) {
         return scanConfigBuilder_.getMessageOrBuilder();
       } else {
-        return scanConfig_ == null
-            ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()
-            : scanConfig_;
+        return scanConfig_ == null ?
+            com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -792,17 +709,14 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
      * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.ScanConfig,
-            com.google.cloud.websecurityscanner.v1.ScanConfig.Builder,
-            com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>
+        com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> 
         getScanConfigFieldBuilder() {
       if (scanConfigBuilder_ == null) {
-        scanConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.websecurityscanner.v1.ScanConfig,
-                com.google.cloud.websecurityscanner.v1.ScanConfig.Builder,
-                com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>(
-                getScanConfig(), getParentForChildren(), isClean());
+        scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>(
+                getScanConfig(),
+                getParentForChildren(),
+                isClean());
         scanConfig_ = null;
       }
       return scanConfigBuilder_;
@@ -810,13 +724,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
 
     private com.google.protobuf.FieldMask updateMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
-        updateMaskBuilder_;
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -824,15 +733,12 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
      * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -840,21 +746,16 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -877,8 +778,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -887,7 +786,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 3;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -898,8 +798,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -912,7 +810,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -924,8 +822,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -946,8 +842,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -957,13 +851,11 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 3;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-
+      
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -976,14 +868,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null
-            ? com.google.protobuf.FieldMask.getDefaultInstance()
-            : updateMask_;
+        return updateMask_ == null ?
+            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -993,24 +882,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask,
-            com.google.protobuf.FieldMask.Builder,
-            com.google.protobuf.FieldMaskOrBuilder>
+        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.FieldMask,
-                com.google.protobuf.FieldMask.Builder,
-                com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(), getParentForChildren(), isClean());
+        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(),
+                getParentForChildren(),
+                isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1020,32 +906,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.UpdateScanConfigRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.UpdateScanConfigRequest)
-  private static final com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest();
   }
 
-  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
-      getDefaultInstance() {
+  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateScanConfigRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new UpdateScanConfigRequest(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateScanConfigRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new UpdateScanConfigRequest(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1057,8 +941,9 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
-      getDefaultInstanceForType() {
+  public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
similarity index 78%
rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
index 84d3918a..ca4f2db0 100644
--- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto
 
 package com.google.cloud.websecurityscanner.v1;
 
-public interface UpdateScanConfigRequestOrBuilder
-    extends
+public interface UpdateScanConfigRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.UpdateScanConfigRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -33,13 +15,10 @@ public interface UpdateScanConfigRequestOrBuilder
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return Whether the scanConfig field is set. */ boolean hasScanConfig(); /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -47,13 +26,10 @@ public interface UpdateScanConfigRequestOrBuilder
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return The scanConfig. */ com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig(); /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -65,8 +41,6 @@ public interface UpdateScanConfigRequestOrBuilder
   com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
@@ -74,13 +48,10 @@ public interface UpdateScanConfigRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
@@ -88,13 +59,10 @@ public interface UpdateScanConfigRequestOrBuilder
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
similarity index 70%
rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
index 39b38306..09269afb 100644
--- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
+++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/websecurityscanner/v1/finding_addon.proto
 
 package com.google.cloud.websecurityscanner.v1;
 
 /**
- *
- *
  * 
  * Information regarding any resource causing the vulnerability such
  * as JavaScript sources, image, audio files, etc.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.ViolatingResource}
  */
-public final class ViolatingResource extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ViolatingResource extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ViolatingResource)
     ViolatingResourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ViolatingResource.newBuilder() to construct.
   private ViolatingResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ViolatingResource() {
     contentType_ = "";
     resourceUrl_ = "";
@@ -45,15 +27,16 @@ private ViolatingResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ViolatingResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ViolatingResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,27 +55,25 @@ private ViolatingResource(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              contentType_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            contentType_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              resourceUrl_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            resourceUrl_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,39 +81,34 @@ private ViolatingResource(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.FindingAddonProto
-        .internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.FindingAddonProto
-        .internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.ViolatingResource.class,
-            com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder.class);
+            com.google.cloud.websecurityscanner.v1.ViolatingResource.class, com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder.class);
   }
 
   public static final int CONTENT_TYPE_FIELD_NUMBER = 1;
   private volatile java.lang.Object contentType_;
   /**
-   *
-   *
    * 
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The contentType. */ @java.lang.Override @@ -141,29 +117,29 @@ public java.lang.String getContentType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; } } /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The bytes for contentType. */ @java.lang.Override - public com.google.protobuf.ByteString getContentTypeBytes() { + public com.google.protobuf.ByteString + getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentType_ = b; return b; } else { @@ -174,14 +150,11 @@ public com.google.protobuf.ByteString getContentTypeBytes() { public static final int RESOURCE_URL_FIELD_NUMBER = 2; private volatile java.lang.Object resourceUrl_; /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The resourceUrl. */ @java.lang.Override @@ -190,29 +163,29 @@ public java.lang.String getResourceUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -221,7 +194,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contentType_); } @@ -263,16 +236,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ViolatingResource)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ViolatingResource other = - (com.google.cloud.websecurityscanner.v1.ViolatingResource) obj; + com.google.cloud.websecurityscanner.v1.ViolatingResource other = (com.google.cloud.websecurityscanner.v1.ViolatingResource) obj; - if (!getContentType().equals(other.getContentType())) return false; - if (!getResourceUrl().equals(other.getResourceUrl())) return false; + if (!getContentType() + .equals(other.getContentType())) return false; + if (!getResourceUrl() + .equals(other.getResourceUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,104 +268,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.ViolatingResource prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ViolatingResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information regarding any resource causing the vulnerability such
    * as JavaScript sources, image, audio files, etc.
@@ -399,23 +365,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.ViolatingResource}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ViolatingResource)
       com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.ViolatingResource.class,
-              com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder.class);
+              com.google.cloud.websecurityscanner.v1.ViolatingResource.class, com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.ViolatingResource.newBuilder()
@@ -423,15 +387,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -443,9 +408,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
@@ -464,8 +429,7 @@ public com.google.cloud.websecurityscanner.v1.ViolatingResource build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.ViolatingResource buildPartial() {
-      com.google.cloud.websecurityscanner.v1.ViolatingResource result =
-          new com.google.cloud.websecurityscanner.v1.ViolatingResource(this);
+      com.google.cloud.websecurityscanner.v1.ViolatingResource result = new com.google.cloud.websecurityscanner.v1.ViolatingResource(this);
       result.contentType_ = contentType_;
       result.resourceUrl_ = resourceUrl_;
       onBuilt();
@@ -476,39 +440,38 @@ public com.google.cloud.websecurityscanner.v1.ViolatingResource buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.ViolatingResource) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.ViolatingResource) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.ViolatingResource)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -516,8 +479,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ViolatingResource other) {
-      if (other == com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance()) return this;
       if (!other.getContentType().isEmpty()) {
         contentType_ = other.contentType_;
         onChanged();
@@ -545,8 +507,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1.ViolatingResource) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1.ViolatingResource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -558,20 +519,18 @@ public Builder mergeFrom(
 
     private java.lang.Object contentType_ = "";
     /**
-     *
-     *
      * 
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return The contentType. */ public java.lang.String getContentType() { java.lang.Object ref = contentType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; @@ -580,21 +539,20 @@ public java.lang.String getContentType() { } } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return The bytes for contentType. */ - public com.google.protobuf.ByteString getContentTypeBytes() { + public com.google.protobuf.ByteString + getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentType_ = b; return b; } else { @@ -602,61 +560,54 @@ public com.google.protobuf.ByteString getContentTypeBytes() { } } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @param value The contentType to set. * @return This builder for chaining. */ - public Builder setContentType(java.lang.String value) { + public Builder setContentType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contentType_ = value; onChanged(); return this; } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = getDefaultInstance().getContentType(); onChanged(); return this; } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @param value The bytes for contentType to set. * @return This builder for chaining. */ - public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { + public Builder setContentTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentType_ = value; onChanged(); return this; @@ -664,20 +615,18 @@ public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceUrl_ = ""; /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; @@ -686,21 +635,20 @@ public java.lang.String getResourceUrl() { } } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -708,68 +656,61 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @param value The resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrl(java.lang.String value) { + public Builder setResourceUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUrl_ = value; onChanged(); return this; } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return This builder for chaining. */ public Builder clearResourceUrl() { - + resourceUrl_ = getDefaultInstance().getResourceUrl(); onChanged(); return this; } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { + public Builder setResourceUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUrl_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -779,12 +720,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ViolatingResource) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ViolatingResource) private static final com.google.cloud.websecurityscanner.v1.ViolatingResource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ViolatingResource(); } @@ -793,16 +734,16 @@ public static com.google.cloud.websecurityscanner.v1.ViolatingResource getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ViolatingResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ViolatingResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ViolatingResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ViolatingResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -817,4 +758,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ViolatingResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java similarity index 55% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java index ba3decef..e4000fa5 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface ViolatingResourceOrBuilder - extends +public interface ViolatingResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ViolatingResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The contentType. */ java.lang.String getContentType(); /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The bytes for contentType. */ - com.google.protobuf.ByteString getContentTypeBytes(); + com.google.protobuf.ByteString + getContentTypeBytes(); /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ - com.google.protobuf.ByteString getResourceUrlBytes(); + com.google.protobuf.ByteString + getResourceUrlBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java index f1b41ec6..5742f73f 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Information about vulnerable or missing HTTP Headers.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableHeaders} */ -public final class VulnerableHeaders extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VulnerableHeaders extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.VulnerableHeaders) VulnerableHeadersOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VulnerableHeaders.newBuilder() to construct. private VulnerableHeaders(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VulnerableHeaders() { headers_ = java.util.Collections.emptyList(); missingHeaders_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private VulnerableHeaders() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableHeaders(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VulnerableHeaders( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,41 +55,31 @@ private VulnerableHeaders( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000001; - } - headers_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + headers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000002; - } - missingHeaders_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; + headers_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + missingHeaders_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + missingHeaders_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,7 +87,8 @@ private VulnerableHeaders( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -126,96 +100,79 @@ private VulnerableHeaders( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.class, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder.class); } - public interface HeaderOrBuilder - extends + public interface HeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); } /** - * - * *
    * Describes a HTTP Header.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableHeaders.Header} */ - public static final class Header extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Header extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) HeaderOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Header.newBuilder() to construct. private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Header() { name_ = ""; value_ = ""; @@ -223,15 +180,16 @@ private Header() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Header(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Header( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -250,27 +208,25 @@ private Header( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -278,39 +234,34 @@ private Header( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.class, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -319,29 +270,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -352,14 +303,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -368,29 +316,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -399,7 +347,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -411,7 +358,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -441,16 +389,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header other = - (com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) obj; + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header other = (com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) obj; - if (!getName().equals(other.getName())) return false; - if (!getValue().equals(other.getValue())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -472,95 +421,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -570,49 +511,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Describes a HTTP Header.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableHeaders.Header} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.class, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -624,14 +560,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance(); } @@ -646,8 +581,7 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header buildPartial() { - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header result = - new com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header(this); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header result = new com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header(this); result.name_ = name_; result.value_ = value_; onBuilt(); @@ -658,52 +592,46 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header other) { - if (other - == com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header other) { + if (other == com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -731,9 +659,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -745,20 +671,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -767,21 +691,20 @@ public java.lang.String getName() { } } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -789,61 +712,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -851,20 +767,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -873,21 +787,20 @@ public java.lang.String getValue() { } } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -895,66 +808,58 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -967,32 +872,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) - private static final com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header(); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser
PARSER = - new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Header parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Header parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Header(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -1004,17 +907,15 @@ public com.google.protobuf.Parser
getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int HEADERS_FIELD_NUMBER = 1; private java.util.List headers_; /** - * - * *
    * List of vulnerable headers.
    * 
@@ -1022,13 +923,10 @@ public com.google.protobuf.Parser
getParserForType() { * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public java.util.List - getHeadersList() { + public java.util.List getHeadersList() { return headers_; } /** - * - * *
    * List of vulnerable headers.
    * 
@@ -1036,14 +934,11 @@ public com.google.protobuf.Parser
getParserForType() { * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> + public java.util.List getHeadersOrBuilderList() { return headers_; } /** - * - * *
    * List of vulnerable headers.
    * 
@@ -1055,8 +950,6 @@ public int getHeadersCount() { return headers_.size(); } /** - * - * *
    * List of vulnerable headers.
    * 
@@ -1068,8 +961,6 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getHeader return headers_.get(index); } /** - * - * *
    * List of vulnerable headers.
    * 
@@ -1077,97 +968,72 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getHeader * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder - getHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( + int index) { return headers_.get(index); } public static final int MISSING_HEADERS_FIELD_NUMBER = 2; - private java.util.List - missingHeaders_; + private java.util.List missingHeaders_; /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public java.util.List - getMissingHeadersList() { + public java.util.List getMissingHeadersList() { return missingHeaders_; } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> + public java.util.List getMissingHeadersOrBuilderList() { return missingHeaders_; } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override public int getMissingHeadersCount() { return missingHeaders_.size(); } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissingHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissingHeaders(int index) { return missingHeaders_.get(index); } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index) { return missingHeaders_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1179,7 +1045,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < headers_.size(); i++) { output.writeMessage(1, headers_.get(i)); } @@ -1196,10 +1063,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < headers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, headers_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, headers_.get(i)); } for (int i = 0; i < missingHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, missingHeaders_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, missingHeaders_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1209,16 +1078,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.VulnerableHeaders)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.VulnerableHeaders other = - (com.google.cloud.websecurityscanner.v1.VulnerableHeaders) obj; + com.google.cloud.websecurityscanner.v1.VulnerableHeaders other = (com.google.cloud.websecurityscanner.v1.VulnerableHeaders) obj; - if (!getHeadersList().equals(other.getHeadersList())) return false; - if (!getMissingHeadersList().equals(other.getMissingHeadersList())) return false; + if (!getHeadersList() + .equals(other.getHeadersList())) return false; + if (!getMissingHeadersList() + .equals(other.getMissingHeadersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1244,127 +1114,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.VulnerableHeaders prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about vulnerable or missing HTTP Headers.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableHeaders} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.VulnerableHeaders) com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.class, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.VulnerableHeaders.newBuilder() @@ -1372,18 +1232,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getHeadersFieldBuilder(); getMissingHeadersFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1403,9 +1263,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; } @java.lang.Override @@ -1424,8 +1284,7 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.VulnerableHeaders buildPartial() { - com.google.cloud.websecurityscanner.v1.VulnerableHeaders result = - new com.google.cloud.websecurityscanner.v1.VulnerableHeaders(this); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders result = new com.google.cloud.websecurityscanner.v1.VulnerableHeaders(this); int from_bitField0_ = bitField0_; if (headersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1453,39 +1312,38 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.VulnerableHeaders) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableHeaders) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableHeaders)other); } else { super.mergeFrom(other); return this; @@ -1493,8 +1351,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.VulnerableHeaders other) { - if (other == com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance()) return this; if (headersBuilder_ == null) { if (!other.headers_.isEmpty()) { if (headers_.isEmpty()) { @@ -1513,10 +1370,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.VulnerableHeader headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000001); - headersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHeadersFieldBuilder() - : null; + headersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHeadersFieldBuilder() : null; } else { headersBuilder_.addAllMessages(other.headers_); } @@ -1540,10 +1396,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.VulnerableHeader missingHeadersBuilder_ = null; missingHeaders_ = other.missingHeaders_; bitField0_ = (bitField0_ & ~0x00000002); - missingHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMissingHeadersFieldBuilder() - : null; + missingHeadersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMissingHeadersFieldBuilder() : null; } else { missingHeadersBuilder_.addAllMessages(other.missingHeaders_); } @@ -1568,8 +1423,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.VulnerableHeaders) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.VulnerableHeaders) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1578,39 +1432,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - headers_ = java.util.Collections.emptyList(); - + private java.util.List headers_ = + java.util.Collections.emptyList(); private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - headers_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header>(headers_); + headers_ = new java.util.ArrayList(headers_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> - headersBuilder_; + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> headersBuilder_; /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - public java.util.List - getHeadersList() { + public java.util.List getHeadersList() { if (headersBuilder_ == null) { return java.util.Collections.unmodifiableList(headers_); } else { @@ -1618,14 +1461,11 @@ private void ensureHeadersIsMutable() { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public int getHeadersCount() { if (headersBuilder_ == null) { @@ -1635,14 +1475,11 @@ public int getHeadersCount() { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getHeaders(int index) { if (headersBuilder_ == null) { @@ -1652,14 +1489,11 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getHeader } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public Builder setHeaders( int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { @@ -1676,18 +1510,14 @@ public Builder setHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public Builder setHeaders( - int index, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.set(index, builderForValue.build()); @@ -1698,17 +1528,13 @@ public Builder setHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - public Builder addHeaders( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { + public Builder addHeaders(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1722,14 +1548,11 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { @@ -1746,14 +1569,11 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { @@ -1767,18 +1587,14 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( - int index, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(index, builderForValue.build()); @@ -1789,22 +1605,18 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public Builder addAllHeaders( - java.lang.Iterable< - ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header> - values) { + java.lang.Iterable values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); @@ -1812,14 +1624,11 @@ public Builder addAllHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public Builder clearHeaders() { if (headersBuilder_ == null) { @@ -1832,14 +1641,11 @@ public Builder clearHeaders() { return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ public Builder removeHeaders(int index) { if (headersBuilder_ == null) { @@ -1852,50 +1658,39 @@ public Builder removeHeaders(int index) { return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder - getHeadersBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder getHeadersBuilder( + int index) { return getHeadersFieldBuilder().getBuilder(index); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder - getHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( + int index) { if (headersBuilder_ == null) { - return headers_.get(index); - } else { + return headers_.get(index); } else { return headersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> - getHeadersOrBuilderList() { + public java.util.List + getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { @@ -1903,101 +1698,74 @@ public Builder removeHeaders(int index) { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder - addHeadersBuilder() { - return getHeadersFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder addHeadersBuilder() { + return getHeadersFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder - addHeadersBuilder(int index) { - return getHeadersFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder addHeadersBuilder( + int index) { + return getHeadersFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - public java.util.List - getHeadersBuilderList() { + public java.util.List + getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { - headersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder>( - headers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder>( + headers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); headers_ = null; } return headersBuilder_; } - private java.util.List - missingHeaders_ = java.util.Collections.emptyList(); - + private java.util.List missingHeaders_ = + java.util.Collections.emptyList(); private void ensureMissingHeadersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header>(missingHeaders_); + missingHeaders_ = new java.util.ArrayList(missingHeaders_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> - missingHeadersBuilder_; + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> missingHeadersBuilder_; /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List - getMissingHeadersList() { + public java.util.List getMissingHeadersList() { if (missingHeadersBuilder_ == null) { return java.util.Collections.unmodifiableList(missingHeaders_); } else { @@ -2005,15 +1773,11 @@ private void ensureMissingHeadersIsMutable() { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public int getMissingHeadersCount() { if (missingHeadersBuilder_ == null) { @@ -2023,18 +1787,13 @@ public int getMissingHeadersCount() { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissingHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissingHeaders(int index) { if (missingHeadersBuilder_ == null) { return missingHeaders_.get(index); } else { @@ -2042,15 +1801,11 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissin } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public Builder setMissingHeaders( int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { @@ -2067,19 +1822,14 @@ public Builder setMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public Builder setMissingHeaders( - int index, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.set(index, builderForValue.build()); @@ -2090,18 +1840,13 @@ public Builder setMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public Builder addMissingHeaders( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { + public Builder addMissingHeaders(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { if (missingHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2115,15 +1860,11 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { @@ -2140,15 +1881,11 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { @@ -2162,19 +1899,14 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( - int index, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.add(index, builderForValue.build()); @@ -2185,23 +1917,18 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public Builder addAllMissingHeaders( - java.lang.Iterable< - ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header> - values) { + java.lang.Iterable values) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingHeaders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, missingHeaders_); onChanged(); } else { missingHeadersBuilder_.addAllMessages(values); @@ -2209,15 +1936,11 @@ public Builder addAllMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public Builder clearMissingHeaders() { if (missingHeadersBuilder_ == null) { @@ -2230,15 +1953,11 @@ public Builder clearMissingHeaders() { return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ public Builder removeMissingHeaders(int index) { if (missingHeadersBuilder_ == null) { @@ -2251,53 +1970,39 @@ public Builder removeMissingHeaders(int index) { return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder - getMissingHeadersBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder getMissingHeadersBuilder( + int index) { return getMissingHeadersFieldBuilder().getBuilder(index); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index) { if (missingHeadersBuilder_ == null) { - return missingHeaders_.get(index); - } else { + return missingHeaders_.get(index); } else { return missingHeadersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> - getMissingHeadersOrBuilderList() { + public java.util.List + getMissingHeadersOrBuilderList() { if (missingHeadersBuilder_ != null) { return missingHeadersBuilder_.getMessageOrBuilderList(); } else { @@ -2305,67 +2010,45 @@ public Builder removeMissingHeaders(int index) { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder - addMissingHeadersBuilder() { - return getMissingHeadersFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder addMissingHeadersBuilder() { + return getMissingHeadersFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder - addMissingHeadersBuilder(int index) { - return getMissingHeadersFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder addMissingHeadersBuilder( + int index) { + return getMissingHeadersFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List - getMissingHeadersBuilderList() { + public java.util.List + getMissingHeadersBuilderList() { return getMissingHeadersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> getMissingHeadersFieldBuilder() { if (missingHeadersBuilder_ == null) { - missingHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder>( + missingHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder>( missingHeaders_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2374,9 +2057,9 @@ public Builder removeMissingHeaders(int index) { } return missingHeadersBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2386,12 +2069,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.VulnerableHeaders) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.VulnerableHeaders) private static final com.google.cloud.websecurityscanner.v1.VulnerableHeaders DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.VulnerableHeaders(); } @@ -2400,16 +2083,16 @@ public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableHeaders parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableHeaders(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableHeaders parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableHeaders(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2424,4 +2107,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.VulnerableHeaders getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java similarity index 60% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java index 742d0ca4..0c7a2d04 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface VulnerableHeadersOrBuilder - extends +public interface VulnerableHeadersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.VulnerableHeaders) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of vulnerable headers.
    * 
* * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - java.util.List getHeadersList(); + java.util.List + getHeadersList(); /** - * - * *
    * List of vulnerable headers.
    * 
@@ -44,8 +25,6 @@ public interface VulnerableHeadersOrBuilder */ com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getHeaders(int index); /** - * - * *
    * List of vulnerable headers.
    * 
@@ -54,19 +33,15 @@ public interface VulnerableHeadersOrBuilder */ int getHeadersCount(); /** - * - * *
    * List of vulnerable headers.
    * 
* * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - java.util.List + java.util.List getHeadersOrBuilderList(); /** - * - * *
    * List of vulnerable headers.
    * 
@@ -77,66 +52,46 @@ com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getHead int index); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - java.util.List + java.util.List getMissingHeadersList(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissingHeaders(int index); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ int getMissingHeadersCount(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - java.util.List + java.util.List getMissingHeadersOrBuilderList(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; */ - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java similarity index 71% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java index 86717048..b1a93d91 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; /** - * - * *
  * Information about vulnerable request parameters.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableParameters} */ -public final class VulnerableParameters extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VulnerableParameters extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.VulnerableParameters) VulnerableParametersOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VulnerableParameters.newBuilder() to construct. private VulnerableParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VulnerableParameters() { parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableParameters(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VulnerableParameters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,23 +54,22 @@ private VulnerableParameters( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameterNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - parameterNames_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + parameterNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parameterNames_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,7 +77,8 @@ private VulnerableParameters( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -104,61 +87,50 @@ private VulnerableParameters( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableParameters.class, - com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder.class); } public static final int PARAMETER_NAMES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList parameterNames_; /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList getParameterNamesList() { + public com.google.protobuf.ProtocolStringList + getParameterNamesList() { return parameterNames_; } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -166,23 +138,20 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString + getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,7 +163,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < parameterNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameterNames_.getRaw(i)); } @@ -223,15 +193,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.VulnerableParameters)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.VulnerableParameters other = - (com.google.cloud.websecurityscanner.v1.VulnerableParameters) obj; + com.google.cloud.websecurityscanner.v1.VulnerableParameters other = (com.google.cloud.websecurityscanner.v1.VulnerableParameters) obj; - if (!getParameterNamesList().equals(other.getParameterNamesList())) return false; + if (!getParameterNamesList() + .equals(other.getParameterNamesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -253,127 +223,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1.VulnerableParameters prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.VulnerableParameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about vulnerable request parameters.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableParameters} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.VulnerableParameters) com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableParameters.class, - com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.VulnerableParameters.newBuilder() @@ -381,15 +341,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -399,9 +360,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; } @java.lang.Override @@ -420,8 +381,7 @@ public com.google.cloud.websecurityscanner.v1.VulnerableParameters build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.VulnerableParameters buildPartial() { - com.google.cloud.websecurityscanner.v1.VulnerableParameters result = - new com.google.cloud.websecurityscanner.v1.VulnerableParameters(this); + com.google.cloud.websecurityscanner.v1.VulnerableParameters result = new com.google.cloud.websecurityscanner.v1.VulnerableParameters(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -436,39 +396,38 @@ public com.google.cloud.websecurityscanner.v1.VulnerableParameters buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.VulnerableParameters) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableParameters) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableParameters)other); } else { super.mergeFrom(other); return this; @@ -476,8 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.VulnerableParameters other) { - if (other == com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance()) return this; if (!other.parameterNames_.isEmpty()) { if (parameterNames_.isEmpty()) { parameterNames_ = other.parameterNames_; @@ -507,8 +465,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1.VulnerableParameters) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1.VulnerableParameters) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -517,55 +474,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList parameterNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureParameterNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { parameterNames_ = new com.google.protobuf.LazyStringArrayList(parameterNames_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList getParameterNamesList() { + public com.google.protobuf.ProtocolStringList + getParameterNamesList() { return parameterNames_.getUnmodifiableView(); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -573,90 +519,80 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString + getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index to set the value at. * @param value The parameterNames to set. * @return This builder for chaining. */ - public Builder setParameterNames(int index, java.lang.String value) { + public Builder setParameterNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.set(index, value); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param value The parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNames(java.lang.String value) { + public Builder addParameterNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param values The parameterNames to add. * @return This builder for chaining. */ - public Builder addAllParameterNames(java.lang.Iterable values) { + public Builder addAllParameterNames( + java.lang.Iterable values) { ensureParameterNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameterNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, parameterNames_); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return This builder for chaining. */ public Builder clearParameterNames() { @@ -666,30 +602,28 @@ public Builder clearParameterNames() { return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param value The bytes of the parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNamesBytes(com.google.protobuf.ByteString value) { + public Builder addParameterNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -699,12 +633,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.VulnerableParameters) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.VulnerableParameters) private static final com.google.cloud.websecurityscanner.v1.VulnerableParameters DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.VulnerableParameters(); } @@ -713,16 +647,16 @@ public static com.google.cloud.websecurityscanner.v1.VulnerableParameters getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableParameters(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableParameters(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -737,4 +671,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.VulnerableParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java similarity index 59% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java index edcdf61b..101f456a 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java @@ -1,76 +1,50 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface VulnerableParametersOrBuilder - extends +public interface VulnerableParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.VulnerableParameters) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - java.util.List getParameterNamesList(); + java.util.List + getParameterNamesList(); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ int getParameterNamesCount(); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ java.lang.String getParameterNames(int index); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - com.google.protobuf.ByteString getParameterNamesBytes(int index); + com.google.protobuf.ByteString + getParameterNamesBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java new file mode 100644 index 00000000..c0821985 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java @@ -0,0 +1,376 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class WebSecurityScannerProto { + private WebSecurityScannerProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n=google/cloud/websecurityscanner/v1/web" + + "_security_scanner.proto\022\"google.cloud.we" + + "bsecurityscanner.v1\032\034google/api/annotati" + + "ons.proto\0324google/cloud/websecurityscann" + + "er/v1/crawled_url.proto\0320google/cloud/we" + + "bsecurityscanner/v1/finding.proto\032;googl" + + "e/cloud/websecurityscanner/v1/finding_ty" + + "pe_stats.proto\0324google/cloud/websecurity" + + "scanner/v1/scan_config.proto\0321google/clo" + + "ud/websecurityscanner/v1/scan_run.proto\032" + + "\033google/protobuf/empty.proto\032 google/pro" + + "tobuf/field_mask.proto\032\027google/api/clien" + + "t.proto\"n\n\027CreateScanConfigRequest\022\016\n\006pa" + + "rent\030\001 \001(\t\022C\n\013scan_config\030\002 \001(\0132..google" + + ".cloud.websecurityscanner.v1.ScanConfig\"" + + "\'\n\027DeleteScanConfigRequest\022\014\n\004name\030\001 \001(\t" + + "\"$\n\024GetScanConfigRequest\022\014\n\004name\030\001 \001(\t\"O" + + "\n\026ListScanConfigsRequest\022\016\n\006parent\030\001 \001(\t" + + "\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"" + + "\217\001\n\027UpdateScanConfigRequest\022C\n\013scan_conf" + + "ig\030\002 \001(\0132..google.cloud.websecurityscann" + + "er.v1.ScanConfig\022/\n\013update_mask\030\003 \001(\0132\032." + + "google.protobuf.FieldMask\"x\n\027ListScanCon" + + "figsResponse\022D\n\014scan_configs\030\001 \003(\0132..goo" + + "gle.cloud.websecurityscanner.v1.ScanConf" + + "ig\022\027\n\017next_page_token\030\002 \001(\t\"#\n\023StartScan" + + "RunRequest\022\014\n\004name\030\001 \001(\t\"!\n\021GetScanRunRe" + + "quest\022\014\n\004name\030\001 \001(\t\"L\n\023ListScanRunsReque" + + "st\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021" + + "\n\tpage_size\030\003 \001(\005\"o\n\024ListScanRunsRespons" + + "e\022>\n\tscan_runs\030\001 \003(\0132+.google.cloud.webs" + + "ecurityscanner.v1.ScanRun\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"\"\n\022StopScanRunRequest\022\014\n\004name" + + "\030\001 \001(\t\"O\n\026ListCrawledUrlsRequest\022\016\n\006pare" + + "nt\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_siz" + + "e\030\003 \001(\005\"x\n\027ListCrawledUrlsResponse\022D\n\014cr" + + "awled_urls\030\001 \003(\0132..google.cloud.websecur" + + "ityscanner.v1.CrawledUrl\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"!\n\021GetFindingRequest\022\014\n\004name\030\001" + + " \001(\t\"\\\n\023ListFindingsRequest\022\016\n\006parent\030\001 " + + "\001(\t\022\016\n\006filter\030\002 \001(\t\022\022\n\npage_token\030\003 \001(\t\022" + + "\021\n\tpage_size\030\004 \001(\005\"n\n\024ListFindingsRespon" + + "se\022=\n\010findings\030\001 \003(\0132+.google.cloud.webs" + + "ecurityscanner.v1.Finding\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"-\n\033ListFindingTypeStatsReques" + + "t\022\016\n\006parent\030\001 \001(\t\"p\n\034ListFindingTypeStat" + + "sResponse\022P\n\022finding_type_stats\030\001 \003(\01324." + + "google.cloud.websecurityscanner.v1.Findi" + + "ngTypeStats2\351\023\n\022WebSecurityScanner\022\271\001\n\020C" + + "reateScanConfig\022;.google.cloud.websecuri" + + "tyscanner.v1.CreateScanConfigRequest\032..g" + + "oogle.cloud.websecurityscanner.v1.ScanCo" + + "nfig\"8\202\323\344\223\0022\"#/v1/{parent=projects/*}/sc" + + "anConfigs:\013scan_config\022\224\001\n\020DeleteScanCon" + + "fig\022;.google.cloud.websecurityscanner.v1" + + ".DeleteScanConfigRequest\032\026.google.protob" + + "uf.Empty\"+\202\323\344\223\002%*#/v1/{name=projects/*/s" + + "canConfigs/*}\022\246\001\n\rGetScanConfig\0228.google" + + ".cloud.websecurityscanner.v1.GetScanConf" + + "igRequest\032..google.cloud.websecurityscan" + + "ner.v1.ScanConfig\"+\202\323\344\223\002%\022#/v1/{name=pro" + + "jects/*/scanConfigs/*}\022\267\001\n\017ListScanConfi" + + "gs\022:.google.cloud.websecurityscanner.v1." + + "ListScanConfigsRequest\032;.google.cloud.we" + + "bsecurityscanner.v1.ListScanConfigsRespo" + + "nse\"+\202\323\344\223\002%\022#/v1/{parent=projects/*}/sca" + + "nConfigs\022\305\001\n\020UpdateScanConfig\022;.google.c" + + "loud.websecurityscanner.v1.UpdateScanCon" + + "figRequest\032..google.cloud.websecuritysca" + + "nner.v1.ScanConfig\"D\202\323\344\223\002>2//v1/{scan_co" + + "nfig.name=projects/*/scanConfigs/*}:\013sca" + + "n_config\022\252\001\n\014StartScanRun\0227.google.cloud" + + ".websecurityscanner.v1.StartScanRunReque" + + "st\032+.google.cloud.websecurityscanner.v1." + + "ScanRun\"4\202\323\344\223\002.\")/v1/{name=projects/*/sc" + + "anConfigs/*}:start:\001*\022\250\001\n\nGetScanRun\0225.g" + + "oogle.cloud.websecurityscanner.v1.GetSca" + + "nRunRequest\032+.google.cloud.websecuritysc" + + "anner.v1.ScanRun\"6\202\323\344\223\0020\022./v1/{name=proj" + + "ects/*/scanConfigs/*/scanRuns/*}\022\271\001\n\014Lis" + + "tScanRuns\0227.google.cloud.websecurityscan" + + "ner.v1.ListScanRunsRequest\0328.google.clou" + + "d.websecurityscanner.v1.ListScanRunsResp" + + "onse\"6\202\323\344\223\0020\022./v1/{parent=projects/*/sca" + + "nConfigs/*}/scanRuns\022\262\001\n\013StopScanRun\0226.g" + + "oogle.cloud.websecurityscanner.v1.StopSc" + + "anRunRequest\032+.google.cloud.websecuritys" + + "canner.v1.ScanRun\">\202\323\344\223\0028\"3/v1/{name=pro" + + "jects/*/scanConfigs/*/scanRuns/*}:stop:\001" + + "*\022\320\001\n\017ListCrawledUrls\022:.google.cloud.web" + + "securityscanner.v1.ListCrawledUrlsReques" + + "t\032;.google.cloud.websecurityscanner.v1.L" + + "istCrawledUrlsResponse\"D\202\323\344\223\002>\022 * Information reported for an XSS. *
* * Protobuf type {@code google.cloud.websecurityscanner.v1.Xss} */ -public final class Xss extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Xss extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.Xss) XssOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Xss.newBuilder() to construct. private Xss(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Xss() { stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; errorMessage_ = ""; @@ -46,15 +28,16 @@ private Xss() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Xss(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Xss( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,44 +57,40 @@ private Xss( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stackTraces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - stackTraces_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stackTraces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + stackTraces_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + errorMessage_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - attackVector_ = rawValue; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + attackVector_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - storedXssSeedingUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + storedXssSeedingUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -119,7 +98,8 @@ private Xss( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -128,35 +108,29 @@ private Xss( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.Xss.class, - com.google.cloud.websecurityscanner.v1.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1.Xss.class, com.google.cloud.websecurityscanner.v1.Xss.Builder.class); } /** - * - * *
    * Types of XSS attack vector.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.Xss.AttackVector} */ - public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { + public enum AttackVector + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown attack vector.
      * 
@@ -165,8 +139,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ ATTACK_VECTOR_UNSPECIFIED(0), /** - * - * *
      * The attack comes from fuzzing the browser's localStorage.
      * 
@@ -175,8 +147,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ LOCAL_STORAGE(1), /** - * - * *
      * The attack comes from fuzzing the browser's sessionStorage.
      * 
@@ -185,8 +155,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ SESSION_STORAGE(2), /** - * - * *
      * The attack comes from fuzzing the window's name property.
      * 
@@ -195,8 +163,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ WINDOW_NAME(3), /** - * - * *
      * The attack comes from fuzzing the referrer property.
      * 
@@ -205,8 +171,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ REFERRER(4), /** - * - * *
      * The attack comes from fuzzing an input element.
      * 
@@ -215,8 +179,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ FORM_INPUT(5), /** - * - * *
      * The attack comes from fuzzing the browser's cookies.
      * 
@@ -225,8 +187,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ COOKIE(6), /** - * - * *
      * The attack comes from hijacking the post messaging mechanism.
      * 
@@ -235,8 +195,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ POST_MESSAGE(7), /** - * - * *
      * The attack comes from fuzzing parameters in the url.
      * 
@@ -245,8 +203,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ GET_PARAMETERS(8), /** - * - * *
      * The attack comes from fuzzing the fragment in the url.
      * 
@@ -255,8 +211,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ URL_FRAGMENT(9), /** - * - * *
      * The attack comes from fuzzing the HTML comments.
      * 
@@ -265,8 +219,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ HTML_COMMENT(10), /** - * - * *
      * The attack comes from fuzzing the POST parameters.
      * 
@@ -275,8 +227,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ POST_PARAMETERS(11), /** - * - * *
      * The attack comes from fuzzing the protocol.
      * 
@@ -285,8 +235,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ PROTOCOL(12), /** - * - * *
      * The attack comes from the server side and is stored.
      * 
@@ -295,8 +243,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ STORED_XSS(13), /** - * - * *
      * The attack is a Same-Origin Method Execution attack via a GET parameter.
      * 
@@ -305,8 +251,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ SAME_ORIGIN(14), /** - * - * *
      * The attack payload is received from a third-party host via a URL that is
      * user-controllable
@@ -319,8 +263,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unknown attack vector.
      * 
@@ -329,8 +271,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ATTACK_VECTOR_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The attack comes from fuzzing the browser's localStorage.
      * 
@@ -339,8 +279,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOCAL_STORAGE_VALUE = 1; /** - * - * *
      * The attack comes from fuzzing the browser's sessionStorage.
      * 
@@ -349,8 +287,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SESSION_STORAGE_VALUE = 2; /** - * - * *
      * The attack comes from fuzzing the window's name property.
      * 
@@ -359,8 +295,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WINDOW_NAME_VALUE = 3; /** - * - * *
      * The attack comes from fuzzing the referrer property.
      * 
@@ -369,8 +303,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REFERRER_VALUE = 4; /** - * - * *
      * The attack comes from fuzzing an input element.
      * 
@@ -379,8 +311,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FORM_INPUT_VALUE = 5; /** - * - * *
      * The attack comes from fuzzing the browser's cookies.
      * 
@@ -389,8 +319,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COOKIE_VALUE = 6; /** - * - * *
      * The attack comes from hijacking the post messaging mechanism.
      * 
@@ -399,8 +327,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POST_MESSAGE_VALUE = 7; /** - * - * *
      * The attack comes from fuzzing parameters in the url.
      * 
@@ -409,8 +335,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GET_PARAMETERS_VALUE = 8; /** - * - * *
      * The attack comes from fuzzing the fragment in the url.
      * 
@@ -419,8 +343,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int URL_FRAGMENT_VALUE = 9; /** - * - * *
      * The attack comes from fuzzing the HTML comments.
      * 
@@ -429,8 +351,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HTML_COMMENT_VALUE = 10; /** - * - * *
      * The attack comes from fuzzing the POST parameters.
      * 
@@ -439,8 +359,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POST_PARAMETERS_VALUE = 11; /** - * - * *
      * The attack comes from fuzzing the protocol.
      * 
@@ -449,8 +367,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROTOCOL_VALUE = 12; /** - * - * *
      * The attack comes from the server side and is stored.
      * 
@@ -459,8 +375,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STORED_XSS_VALUE = 13; /** - * - * *
      * The attack is a Same-Origin Method Execution attack via a GET parameter.
      * 
@@ -469,8 +383,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SAME_ORIGIN_VALUE = 14; /** - * - * *
      * The attack payload is received from a third-party host via a URL that is
      * user-controllable
@@ -480,6 +392,7 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int USER_CONTROLLABLE_URL_VALUE = 15;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -504,75 +417,62 @@ public static AttackVector valueOf(int value) {
      */
     public static AttackVector forNumber(int value) {
       switch (value) {
-        case 0:
-          return ATTACK_VECTOR_UNSPECIFIED;
-        case 1:
-          return LOCAL_STORAGE;
-        case 2:
-          return SESSION_STORAGE;
-        case 3:
-          return WINDOW_NAME;
-        case 4:
-          return REFERRER;
-        case 5:
-          return FORM_INPUT;
-        case 6:
-          return COOKIE;
-        case 7:
-          return POST_MESSAGE;
-        case 8:
-          return GET_PARAMETERS;
-        case 9:
-          return URL_FRAGMENT;
-        case 10:
-          return HTML_COMMENT;
-        case 11:
-          return POST_PARAMETERS;
-        case 12:
-          return PROTOCOL;
-        case 13:
-          return STORED_XSS;
-        case 14:
-          return SAME_ORIGIN;
-        case 15:
-          return USER_CONTROLLABLE_URL;
-        default:
-          return null;
+        case 0: return ATTACK_VECTOR_UNSPECIFIED;
+        case 1: return LOCAL_STORAGE;
+        case 2: return SESSION_STORAGE;
+        case 3: return WINDOW_NAME;
+        case 4: return REFERRER;
+        case 5: return FORM_INPUT;
+        case 6: return COOKIE;
+        case 7: return POST_MESSAGE;
+        case 8: return GET_PARAMETERS;
+        case 9: return URL_FRAGMENT;
+        case 10: return HTML_COMMENT;
+        case 11: return POST_PARAMETERS;
+        case 12: return PROTOCOL;
+        case 13: return STORED_XSS;
+        case 14: return SAME_ORIGIN;
+        case 15: return USER_CONTROLLABLE_URL;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        AttackVector> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public AttackVector findValueByNumber(int number) {
+              return AttackVector.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public AttackVector findValueByNumber(int number) {
-            return AttackVector.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.websecurityscanner.v1.Xss.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final AttackVector[] VALUES = values();
 
-    public static AttackVector valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static AttackVector valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -592,42 +492,34 @@ private AttackVector(int value) {
   public static final int STACK_TRACES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList stackTraces_;
   /**
-   *
-   *
    * 
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList getStackTracesList() { + public com.google.protobuf.ProtocolStringList + getStackTracesList() { return stackTraces_; } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -635,32 +527,27 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString getStackTracesBytes(int index) { + public com.google.protobuf.ByteString + getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object errorMessage_; /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The errorMessage. */ @java.lang.Override @@ -669,29 +556,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -702,52 +589,38 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { public static final int ATTACK_VECTOR_FIELD_NUMBER = 3; private int attackVector_; /** - * - * *
    * The attack vector of the payload triggering this XSS.
    * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @return The enum numeric value on the wire for attackVector. */ - @java.lang.Override - public int getAttackVectorValue() { + @java.lang.Override public int getAttackVectorValue() { return attackVector_; } /** - * - * *
    * The attack vector of the payload triggering this XSS.
    * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @return The attackVector. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.Xss.AttackVector getAttackVector() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xss.AttackVector getAttackVector() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = - com.google.cloud.websecurityscanner.v1.Xss.AttackVector.valueOf(attackVector_); - return result == null - ? com.google.cloud.websecurityscanner.v1.Xss.AttackVector.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = com.google.cloud.websecurityscanner.v1.Xss.AttackVector.valueOf(attackVector_); + return result == null ? com.google.cloud.websecurityscanner.v1.Xss.AttackVector.UNRECOGNIZED : result; } public static final int STORED_XSS_SEEDING_URL_FIELD_NUMBER = 4; private volatile java.lang.Object storedXssSeedingUrl_; /** - * - * *
    * The reproduction url for the seeding POST request of a Stored XSS.
    * 
* * string stored_xss_seeding_url = 4; - * * @return The storedXssSeedingUrl. */ @java.lang.Override @@ -756,29 +629,29 @@ public java.lang.String getStoredXssSeedingUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storedXssSeedingUrl_ = s; return s; } } /** - * - * *
    * The reproduction url for the seeding POST request of a Stored XSS.
    * 
* * string stored_xss_seeding_url = 4; - * * @return The bytes for storedXssSeedingUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getStoredXssSeedingUrlBytes() { + public com.google.protobuf.ByteString + getStoredXssSeedingUrlBytes() { java.lang.Object ref = storedXssSeedingUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); storedXssSeedingUrl_ = b; return b; } else { @@ -787,7 +660,6 @@ public com.google.protobuf.ByteString getStoredXssSeedingUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -799,16 +671,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < stackTraces_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stackTraces_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); } - if (attackVector_ - != com.google.cloud.websecurityscanner.v1.Xss.AttackVector.ATTACK_VECTOR_UNSPECIFIED - .getNumber()) { + if (attackVector_ != com.google.cloud.websecurityscanner.v1.Xss.AttackVector.ATTACK_VECTOR_UNSPECIFIED.getNumber()) { output.writeEnum(3, attackVector_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storedXssSeedingUrl_)) { @@ -834,10 +705,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); } - if (attackVector_ - != com.google.cloud.websecurityscanner.v1.Xss.AttackVector.ATTACK_VECTOR_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, attackVector_); + if (attackVector_ != com.google.cloud.websecurityscanner.v1.Xss.AttackVector.ATTACK_VECTOR_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, attackVector_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storedXssSeedingUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storedXssSeedingUrl_); @@ -850,18 +720,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.Xss)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.Xss other = - (com.google.cloud.websecurityscanner.v1.Xss) obj; + com.google.cloud.websecurityscanner.v1.Xss other = (com.google.cloud.websecurityscanner.v1.Xss) obj; - if (!getStackTracesList().equals(other.getStackTracesList())) return false; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getStackTracesList() + .equals(other.getStackTracesList())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; if (attackVector_ != other.attackVector_) return false; - if (!getStoredXssSeedingUrl().equals(other.getStoredXssSeedingUrl())) return false; + if (!getStoredXssSeedingUrl() + .equals(other.getStoredXssSeedingUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -888,127 +760,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1.Xss parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.Xss parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Xss parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.Xss prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information reported for an XSS.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.Xss} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.Xss) com.google.cloud.websecurityscanner.v1.XssOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.Xss.class, - com.google.cloud.websecurityscanner.v1.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1.Xss.class, com.google.cloud.websecurityscanner.v1.Xss.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.Xss.newBuilder() @@ -1016,15 +879,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1040,9 +904,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; } @java.lang.Override @@ -1061,8 +925,7 @@ public com.google.cloud.websecurityscanner.v1.Xss build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xss buildPartial() { - com.google.cloud.websecurityscanner.v1.Xss result = - new com.google.cloud.websecurityscanner.v1.Xss(this); + com.google.cloud.websecurityscanner.v1.Xss result = new com.google.cloud.websecurityscanner.v1.Xss(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -1080,39 +943,38 @@ public com.google.cloud.websecurityscanner.v1.Xss buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.Xss) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.Xss) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.Xss)other); } else { super.mergeFrom(other); return this; @@ -1170,55 +1032,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList stackTraces_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStackTracesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { stackTraces_ = new com.google.protobuf.LazyStringArrayList(stackTraces_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList getStackTracesList() { + public com.google.protobuf.ProtocolStringList + getStackTracesList() { return stackTraces_.getUnmodifiableView(); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -1226,90 +1077,80 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString getStackTracesBytes(int index) { + public com.google.protobuf.ByteString + getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index to set the value at. * @param value The stackTraces to set. * @return This builder for chaining. */ - public Builder setStackTraces(int index, java.lang.String value) { + public Builder setStackTraces( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.set(index, value); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param value The stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTraces(java.lang.String value) { + public Builder addStackTraces( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param values The stackTraces to add. * @return This builder for chaining. */ - public Builder addAllStackTraces(java.lang.Iterable values) { + public Builder addAllStackTraces( + java.lang.Iterable values) { ensureStackTracesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stackTraces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stackTraces_); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return This builder for chaining. */ public Builder clearStackTraces() { @@ -1319,22 +1160,20 @@ public Builder clearStackTraces() { return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param value The bytes of the stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { + public Builder addStackTracesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); @@ -1343,20 +1182,18 @@ public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { private java.lang.Object errorMessage_ = ""; /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -1365,21 +1202,20 @@ public java.lang.String getErrorMessage() { } } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -1387,61 +1223,54 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage(java.lang.String value) { + public Builder setErrorMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; @@ -1449,67 +1278,51 @@ public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { private int attackVector_ = 0; /** - * - * *
      * The attack vector of the payload triggering this XSS.
      * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @return The enum numeric value on the wire for attackVector. */ - @java.lang.Override - public int getAttackVectorValue() { + @java.lang.Override public int getAttackVectorValue() { return attackVector_; } /** - * - * *
      * The attack vector of the payload triggering this XSS.
      * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @param value The enum numeric value on the wire for attackVector to set. * @return This builder for chaining. */ public Builder setAttackVectorValue(int value) { - + attackVector_ = value; onChanged(); return this; } /** - * - * *
      * The attack vector of the payload triggering this XSS.
      * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @return The attackVector. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xss.AttackVector getAttackVector() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = - com.google.cloud.websecurityscanner.v1.Xss.AttackVector.valueOf(attackVector_); - return result == null - ? com.google.cloud.websecurityscanner.v1.Xss.AttackVector.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = com.google.cloud.websecurityscanner.v1.Xss.AttackVector.valueOf(attackVector_); + return result == null ? com.google.cloud.websecurityscanner.v1.Xss.AttackVector.UNRECOGNIZED : result; } /** - * - * *
      * The attack vector of the payload triggering this XSS.
      * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @param value The attackVector to set. * @return This builder for chaining. */ @@ -1517,24 +1330,21 @@ public Builder setAttackVector(com.google.cloud.websecurityscanner.v1.Xss.Attack if (value == null) { throw new NullPointerException(); } - + attackVector_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The attack vector of the payload triggering this XSS.
      * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @return This builder for chaining. */ public Builder clearAttackVector() { - + attackVector_ = 0; onChanged(); return this; @@ -1542,20 +1352,18 @@ public Builder clearAttackVector() { private java.lang.Object storedXssSeedingUrl_ = ""; /** - * - * *
      * The reproduction url for the seeding POST request of a Stored XSS.
      * 
* * string stored_xss_seeding_url = 4; - * * @return The storedXssSeedingUrl. */ public java.lang.String getStoredXssSeedingUrl() { java.lang.Object ref = storedXssSeedingUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storedXssSeedingUrl_ = s; return s; @@ -1564,21 +1372,20 @@ public java.lang.String getStoredXssSeedingUrl() { } } /** - * - * *
      * The reproduction url for the seeding POST request of a Stored XSS.
      * 
* * string stored_xss_seeding_url = 4; - * * @return The bytes for storedXssSeedingUrl. */ - public com.google.protobuf.ByteString getStoredXssSeedingUrlBytes() { + public com.google.protobuf.ByteString + getStoredXssSeedingUrlBytes() { java.lang.Object ref = storedXssSeedingUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); storedXssSeedingUrl_ = b; return b; } else { @@ -1586,68 +1393,61 @@ public com.google.protobuf.ByteString getStoredXssSeedingUrlBytes() { } } /** - * - * *
      * The reproduction url for the seeding POST request of a Stored XSS.
      * 
* * string stored_xss_seeding_url = 4; - * * @param value The storedXssSeedingUrl to set. * @return This builder for chaining. */ - public Builder setStoredXssSeedingUrl(java.lang.String value) { + public Builder setStoredXssSeedingUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + storedXssSeedingUrl_ = value; onChanged(); return this; } /** - * - * *
      * The reproduction url for the seeding POST request of a Stored XSS.
      * 
* * string stored_xss_seeding_url = 4; - * * @return This builder for chaining. */ public Builder clearStoredXssSeedingUrl() { - + storedXssSeedingUrl_ = getDefaultInstance().getStoredXssSeedingUrl(); onChanged(); return this; } /** - * - * *
      * The reproduction url for the seeding POST request of a Stored XSS.
      * 
* * string stored_xss_seeding_url = 4; - * * @param value The bytes for storedXssSeedingUrl to set. * @return This builder for chaining. */ - public Builder setStoredXssSeedingUrlBytes(com.google.protobuf.ByteString value) { + public Builder setStoredXssSeedingUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storedXssSeedingUrl_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1657,12 +1457,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.Xss) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.Xss) private static final com.google.cloud.websecurityscanner.v1.Xss DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.Xss(); } @@ -1671,16 +1471,16 @@ public static com.google.cloud.websecurityscanner.v1.Xss getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Xss parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Xss(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Xss parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Xss(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1695,4 +1495,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.Xss getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java index 28d99d6c..881b7416 100644 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java @@ -1,151 +1,109 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface XssOrBuilder - extends +public interface XssOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.Xss) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - java.util.List getStackTracesList(); + java.util.List + getStackTracesList(); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ int getStackTracesCount(); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ java.lang.String getStackTraces(int index); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - com.google.protobuf.ByteString getStackTracesBytes(int index); + com.google.protobuf.ByteString + getStackTracesBytes(int index); /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString getErrorMessageBytes(); + com.google.protobuf.ByteString + getErrorMessageBytes(); /** - * - * *
    * The attack vector of the payload triggering this XSS.
    * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @return The enum numeric value on the wire for attackVector. */ int getAttackVectorValue(); /** - * - * *
    * The attack vector of the payload triggering this XSS.
    * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; - * * @return The attackVector. */ com.google.cloud.websecurityscanner.v1.Xss.AttackVector getAttackVector(); /** - * - * *
    * The reproduction url for the seeding POST request of a Stored XSS.
    * 
* * string stored_xss_seeding_url = 4; - * * @return The storedXssSeedingUrl. */ java.lang.String getStoredXssSeedingUrl(); /** - * - * *
    * The reproduction url for the seeding POST request of a Stored XSS.
    * 
* * string stored_xss_seeding_url = 4; - * * @return The bytes for storedXssSeedingUrl. */ - com.google.protobuf.ByteString getStoredXssSeedingUrlBytes(); + com.google.protobuf.ByteString + getStoredXssSeedingUrlBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto new file mode 100644 index 00000000..1ff167e3 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto @@ -0,0 +1,55 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.websecurityscanner.v1; + +import "google/cloud/websecurityscanner/v1/scan_run.proto"; +import "google/cloud/websecurityscanner/v1/scan_run_error_trace.proto"; + +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; +option java_multiple_files = true; +option java_outer_classname = "ScanRunLogProto"; +option java_package = "com.google.cloud.websecurityscanner.v1"; +option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1"; + +// A ScanRunLog is an output-only proto used for Stackdriver customer logging. +// It is used for logs covering the start and end of scan pipelines. +// Other than an added summary, this is a subset of the ScanRun. +// Representation in logs is either a proto Struct, or converted to JSON. +// Next id: 9 +message ScanRunLog { + // Human friendly message about the event. + string summary = 1; + + // The resource name of the ScanRun being logged. + string name = 2; + + // The execution state of the ScanRun. + google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + + // The result state of the ScanRun. + google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + + int64 urls_crawled_count = 5; + + int64 urls_tested_count = 6; + + bool has_findings = 7; + + google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; +} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto rename to owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java similarity index 98% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java index 6b4db15e..664e46b3 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java +++ b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java @@ -62,13 +62,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1718,10 +1718,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListScanConfigsPagedResponse extends AbstractPagedListResponse< - ListScanConfigsRequest, - ListScanConfigsResponse, - ScanConfig, - ListScanConfigsPage, + ListScanConfigsRequest, ListScanConfigsResponse, ScanConfig, ListScanConfigsPage, ListScanConfigsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1771,10 +1768,7 @@ public ApiFuture createPageAsync( public static class ListScanConfigsFixedSizeCollection extends AbstractFixedSizeCollection< - ListScanConfigsRequest, - ListScanConfigsResponse, - ScanConfig, - ListScanConfigsPage, + ListScanConfigsRequest, ListScanConfigsResponse, ScanConfig, ListScanConfigsPage, ListScanConfigsFixedSizeCollection> { private ListScanConfigsFixedSizeCollection( @@ -1795,10 +1789,7 @@ protected ListScanConfigsFixedSizeCollection createCollection( public static class ListScanRunsPagedResponse extends AbstractPagedListResponse< - ListScanRunsRequest, - ListScanRunsResponse, - ScanRun, - ListScanRunsPage, + ListScanRunsRequest, ListScanRunsResponse, ScanRun, ListScanRunsPage, ListScanRunsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1847,10 +1838,7 @@ public ApiFuture createPageAsync( public static class ListScanRunsFixedSizeCollection extends AbstractFixedSizeCollection< - ListScanRunsRequest, - ListScanRunsResponse, - ScanRun, - ListScanRunsPage, + ListScanRunsRequest, ListScanRunsResponse, ScanRun, ListScanRunsPage, ListScanRunsFixedSizeCollection> { private ListScanRunsFixedSizeCollection(List pages, int collectionSize) { @@ -1870,10 +1858,7 @@ protected ListScanRunsFixedSizeCollection createCollection( public static class ListCrawledUrlsPagedResponse extends AbstractPagedListResponse< - ListCrawledUrlsRequest, - ListCrawledUrlsResponse, - CrawledUrl, - ListCrawledUrlsPage, + ListCrawledUrlsRequest, ListCrawledUrlsResponse, CrawledUrl, ListCrawledUrlsPage, ListCrawledUrlsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1923,10 +1908,7 @@ public ApiFuture createPageAsync( public static class ListCrawledUrlsFixedSizeCollection extends AbstractFixedSizeCollection< - ListCrawledUrlsRequest, - ListCrawledUrlsResponse, - CrawledUrl, - ListCrawledUrlsPage, + ListCrawledUrlsRequest, ListCrawledUrlsResponse, CrawledUrl, ListCrawledUrlsPage, ListCrawledUrlsFixedSizeCollection> { private ListCrawledUrlsFixedSizeCollection( @@ -1947,10 +1929,7 @@ protected ListCrawledUrlsFixedSizeCollection createCollection( public static class ListFindingsPagedResponse extends AbstractPagedListResponse< - ListFindingsRequest, - ListFindingsResponse, - Finding, - ListFindingsPage, + ListFindingsRequest, ListFindingsResponse, Finding, ListFindingsPage, ListFindingsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1999,10 +1978,7 @@ public ApiFuture createPageAsync( public static class ListFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFindingsRequest, - ListFindingsResponse, - Finding, - ListFindingsPage, + ListFindingsRequest, ListFindingsResponse, Finding, ListFindingsPage, ListFindingsFixedSizeCollection> { private ListFindingsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java similarity index 97% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java index 430ab763..d58e4a91 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java +++ b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java @@ -31,6 +31,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.websecurityscanner.v1alpha.stub.WebSecurityScannerStubSettings; @@ -46,10 +47,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are + *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java similarity index 99% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java index 0abb7f0f..0ca6e3f7 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java +++ b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java @@ -55,6 +55,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java similarity index 99% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java index 518a4b1c..eedb2b0d 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java +++ b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java @@ -85,10 +85,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are + *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java similarity index 100% rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java similarity index 100% rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java similarity index 100% rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java b/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java similarity index 100% rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java rename to owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java diff --git a/owl-bot-staging/v1alpha/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java b/owl-bot-staging/v1alpha/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java new file mode 100644 index 00000000..f6714aa1 --- /dev/null +++ b/owl-bot-staging/v1alpha/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java @@ -0,0 +1,1349 @@ +package com.google.cloud.websecurityscanner.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+ * applications hosted on Google Cloud Platform. It crawls your application, and
+ * attempts to exercise as many user inputs and event handlers as possible.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WebSecurityScannerGrpc { + + private WebSecurityScannerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateScanConfigMethod() { + io.grpc.MethodDescriptor getCreateScanConfigMethod; + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { + WebSecurityScannerGrpc.getCreateScanConfigMethod = getCreateScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) + .build(); + } + } + } + return getCreateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", + requestType = com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteScanConfigMethod() { + io.grpc.MethodDescriptor getDeleteScanConfigMethod; + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { + WebSecurityScannerGrpc.getDeleteScanConfigMethod = getDeleteScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) + .build(); + } + } + } + return getDeleteScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", + requestType = com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetScanConfigMethod() { + io.grpc.MethodDescriptor getGetScanConfigMethod; + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + WebSecurityScannerGrpc.getGetScanConfigMethod = getGetScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) + .build(); + } + } + } + return getGetScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getListScanConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", + requestType = com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListScanConfigsMethod() { + io.grpc.MethodDescriptor getListScanConfigsMethod; + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + WebSecurityScannerGrpc.getListScanConfigsMethod = getListScanConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) + .build(); + } + } + } + return getListScanConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateScanConfigMethod() { + io.grpc.MethodDescriptor getUpdateScanConfigMethod; + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { + WebSecurityScannerGrpc.getUpdateScanConfigMethod = getUpdateScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) + .build(); + } + } + } + return getUpdateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartScanRun", + requestType = com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartScanRunMethod() { + io.grpc.MethodDescriptor getStartScanRunMethod; + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + WebSecurityScannerGrpc.getStartScanRunMethod = getStartScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) + .build(); + } + } + } + return getStartScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanRun", + requestType = com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetScanRunMethod() { + io.grpc.MethodDescriptor getGetScanRunMethod; + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + WebSecurityScannerGrpc.getGetScanRunMethod = getGetScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) + .build(); + } + } + } + return getGetScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListScanRunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", + requestType = com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListScanRunsMethod() { + io.grpc.MethodDescriptor getListScanRunsMethod; + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + WebSecurityScannerGrpc.getListScanRunsMethod = getListScanRunsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) + .build(); + } + } + } + return getListScanRunsMethod; + } + + private static volatile io.grpc.MethodDescriptor getStopScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopScanRun", + requestType = com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStopScanRunMethod() { + io.grpc.MethodDescriptor getStopScanRunMethod; + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + WebSecurityScannerGrpc.getStopScanRunMethod = getStopScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) + .build(); + } + } + } + return getStopScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCrawledUrlsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", + requestType = com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCrawledUrlsMethod() { + io.grpc.MethodDescriptor getListCrawledUrlsMethod; + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + WebSecurityScannerGrpc.getListCrawledUrlsMethod = getListCrawledUrlsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) + .build(); + } + } + } + return getListCrawledUrlsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFinding", + requestType = com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFindingMethod() { + io.grpc.MethodDescriptor getGetFindingMethod; + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + WebSecurityScannerGrpc.getGetFindingMethod = getGetFindingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) + .build(); + } + } + } + return getGetFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindings", + requestType = com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFindingsMethod() { + io.grpc.MethodDescriptor getListFindingsMethod; + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + WebSecurityScannerGrpc.getListFindingsMethod = getListFindingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) + .build(); + } + } + } + return getListFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFindingTypeStatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", + requestType = com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFindingTypeStatsMethod() { + io.grpc.MethodDescriptor getListFindingTypeStatsMethod; + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { + WebSecurityScannerGrpc.getListFindingTypeStatsMethod = getListFindingTypeStatsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) + .build(); + } + } + } + return getListFindingTypeStatsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + }; + return WebSecurityScannerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WebSecurityScannerBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + }; + return WebSecurityScannerBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static WebSecurityScannerFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + }; + return WebSecurityScannerFutureStub.newStub(factory, channel); + } + + /** + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static abstract class WebSecurityScannerImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig(com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateScanConfigMethod(), responseObserver); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteScanConfigMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanConfigMethod(), responseObserver); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanConfigsMethod(), responseObserver); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig(com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateScanConfigMethod(), responseObserver); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartScanRunMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanRunsMethod(), responseObserver); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopScanRunMethod(), responseObserver); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCrawledUrlsMethod(), responseObserver); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingsMethod(), responseObserver); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingTypeStatsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( + this, METHODID_CREATE_SCAN_CONFIG))) + .addMethod( + getDeleteScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SCAN_CONFIG))) + .addMethod( + getGetScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( + this, METHODID_GET_SCAN_CONFIG))) + .addMethod( + getListScanConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse>( + this, METHODID_LIST_SCAN_CONFIGS))) + .addMethod( + getUpdateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( + this, METHODID_UPDATE_SCAN_CONFIG))) + .addMethod( + getStartScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun>( + this, METHODID_START_SCAN_RUN))) + .addMethod( + getGetScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun>( + this, METHODID_GET_SCAN_RUN))) + .addMethod( + getListScanRunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse>( + this, METHODID_LIST_SCAN_RUNS))) + .addMethod( + getStopScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun>( + this, METHODID_STOP_SCAN_RUN))) + .addMethod( + getListCrawledUrlsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse>( + this, METHODID_LIST_CRAWLED_URLS))) + .addMethod( + getGetFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest, + com.google.cloud.websecurityscanner.v1alpha.Finding>( + this, METHODID_GET_FINDING))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse>( + this, METHODID_LIST_FINDINGS))) + .addMethod( + getListFindingTypeStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse>( + this, METHODID_LIST_FINDING_TYPE_STATS))) + .build(); + } + } + + /** + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerStub extends io.grpc.stub.AbstractAsyncStub { + private WebSecurityScannerStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig(com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig(com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private WebSecurityScannerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig createScanConfig(com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.protobuf.Empty deleteScanConfig(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse listScanConfigs(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig updateScanConfig(com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanRun startScanRun(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRun(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse listScanRuns(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanRunsMethod(), getCallOptions(), request); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanRun stopScanRun(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse listCrawledUrls(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.Finding getFinding(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFindingMethod(), getCallOptions(), request); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse listFindings(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingsMethod(), getCallOptions(), request); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse listFindingTypeStats(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerFutureStub extends io.grpc.stub.AbstractFutureStub { + private WebSecurityScannerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createScanConfig( + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteScanConfig( + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getScanConfig( + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listScanConfigs( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateScanConfig( + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startScanRun( + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getScanRun( + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listScanRuns( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture stopScanRun( + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCrawledUrls( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getFinding( + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFindings( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFindingTypeStats( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SCAN_CONFIG = 0; + private static final int METHODID_DELETE_SCAN_CONFIG = 1; + private static final int METHODID_GET_SCAN_CONFIG = 2; + private static final int METHODID_LIST_SCAN_CONFIGS = 3; + private static final int METHODID_UPDATE_SCAN_CONFIG = 4; + private static final int METHODID_START_SCAN_RUN = 5; + private static final int METHODID_GET_SCAN_RUN = 6; + private static final int METHODID_LIST_SCAN_RUNS = 7; + private static final int METHODID_STOP_SCAN_RUN = 8; + private static final int METHODID_LIST_CRAWLED_URLS = 9; + private static final int METHODID_GET_FINDING = 10; + private static final int METHODID_LIST_FINDINGS = 11; + private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final WebSecurityScannerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SCAN_CONFIG: + serviceImpl.createScanConfig((com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCAN_CONFIG: + serviceImpl.deleteScanConfig((com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCAN_CONFIG: + serviceImpl.getScanConfig((com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCAN_CONFIGS: + serviceImpl.listScanConfigs((com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SCAN_CONFIG: + serviceImpl.updateScanConfig((com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_SCAN_RUN: + serviceImpl.startScanRun((com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCAN_RUN: + serviceImpl.getScanRun((com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCAN_RUNS: + serviceImpl.listScanRuns((com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_SCAN_RUN: + serviceImpl.stopScanRun((com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CRAWLED_URLS: + serviceImpl.listCrawledUrls((com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FINDING: + serviceImpl.getFinding((com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FINDINGS: + serviceImpl.listFindings((com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FINDING_TYPE_STATS: + serviceImpl.listFindingTypeStats((com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WebSecurityScannerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("WebSecurityScanner"); + } + } + + private static final class WebSecurityScannerFileDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier { + WebSecurityScannerFileDescriptorSupplier() {} + } + + private static final class WebSecurityScannerMethodDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + WebSecurityScannerMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (WebSecurityScannerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) + .addMethod(getCreateScanConfigMethod()) + .addMethod(getDeleteScanConfigMethod()) + .addMethod(getGetScanConfigMethod()) + .addMethod(getListScanConfigsMethod()) + .addMethod(getUpdateScanConfigMethod()) + .addMethod(getStartScanRunMethod()) + .addMethod(getGetScanRunMethod()) + .addMethod(getListScanRunsMethod()) + .addMethod(getStopScanRunMethod()) + .addMethod(getListCrawledUrlsMethod()) + .addMethod(getGetFindingMethod()) + .addMethod(getListFindingsMethod()) + .addMethod(getListFindingTypeStatsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java similarity index 71% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java index 2d700ee5..8d2f05ff 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/crawled_url.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
  * Security Scanner Service crawls the web applications, following all links
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.CrawledUrl}
  */
-public final class CrawledUrl extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CrawledUrl extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.CrawledUrl)
     CrawledUrlOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CrawledUrl.newBuilder() to construct.
   private CrawledUrl(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CrawledUrl() {
     httpMethod_ = "";
     url_ = "";
@@ -47,15 +29,16 @@ private CrawledUrl() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CrawledUrl();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CrawledUrl(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,34 +57,31 @@ private CrawledUrl(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              httpMethod_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            httpMethod_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              url_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            url_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              body_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            body_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -109,40 +89,35 @@ private CrawledUrl(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.class,
-            com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder.class);
+            com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.class, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder.class);
   }
 
   public static final int HTTP_METHOD_FIELD_NUMBER = 1;
   private volatile java.lang.Object httpMethod_;
   /**
-   *
-   *
    * 
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The httpMethod. */ @java.lang.Override @@ -151,30 +126,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** - * - * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -185,14 +160,11 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { public static final int URL_FIELD_NUMBER = 2; private volatile java.lang.Object url_; /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The url. */ @java.lang.Override @@ -201,29 +173,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -234,14 +206,11 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int BODY_FIELD_NUMBER = 3; private volatile java.lang.Object body_; /** - * - * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The body. */ @java.lang.Override @@ -250,29 +219,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** - * - * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -281,7 +250,6 @@ public com.google.protobuf.ByteString getBodyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpMethod_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpMethod_); } @@ -329,17 +298,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.CrawledUrl)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl other = - (com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) obj; + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl other = (com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) obj; - if (!getHttpMethod().equals(other.getHttpMethod())) return false; - if (!getUrl().equals(other.getUrl())) return false; - if (!getBody().equals(other.getBody())) return false; + if (!getHttpMethod() + .equals(other.getHttpMethod())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; + if (!getBody() + .equals(other.getBody())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -363,104 +334,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.CrawledUrl prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
    * Security Scanner Service crawls the web applications, following all links
@@ -469,23 +432,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.CrawledUrl}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.CrawledUrl)
       com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.class,
-              com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder.class);
+              com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.class, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.newBuilder()
@@ -493,15 +454,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -515,9 +477,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
@@ -536,8 +498,7 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl buildPartial() {
-      com.google.cloud.websecurityscanner.v1alpha.CrawledUrl result =
-          new com.google.cloud.websecurityscanner.v1alpha.CrawledUrl(this);
+      com.google.cloud.websecurityscanner.v1alpha.CrawledUrl result = new com.google.cloud.websecurityscanner.v1alpha.CrawledUrl(this);
       result.httpMethod_ = httpMethod_;
       result.url_ = url_;
       result.body_ = body_;
@@ -549,39 +510,38 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.CrawledUrl)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -589,8 +549,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.CrawledUrl other) {
-      if (other == com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance()) return this;
       if (!other.getHttpMethod().isEmpty()) {
         httpMethod_ = other.httpMethod_;
         onChanged();
@@ -622,8 +581,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -635,21 +593,19 @@ public Builder mergeFrom(
 
     private java.lang.Object httpMethod_ = "";
     /**
-     *
-     *
      * 
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -658,22 +614,21 @@ public java.lang.String getHttpMethod() { } } /** - * - * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -681,64 +636,57 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } } /** - * - * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod(java.lang.String value) { + public Builder setHttpMethod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** - * - * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -746,20 +694,18 @@ public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { private java.lang.Object url_ = ""; /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -768,21 +714,20 @@ public java.lang.String getUrl() { } } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -790,61 +735,54 @@ public com.google.protobuf.ByteString getUrlBytes() { } } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; @@ -852,20 +790,18 @@ public Builder setUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object body_ = ""; /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -874,21 +810,20 @@ public java.lang.String getBody() { } } /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return The bytes for body. */ - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -896,68 +831,61 @@ public com.google.protobuf.ByteString getBodyBytes() { } } /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody(java.lang.String value) { + public Builder setBody( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** - * - * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes(com.google.protobuf.ByteString value) { + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -967,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.CrawledUrl) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.CrawledUrl) private static final com.google.cloud.websecurityscanner.v1alpha.CrawledUrl DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.CrawledUrl(); } @@ -981,16 +909,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CrawledUrl parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CrawledUrl(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CrawledUrl parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CrawledUrl(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1005,4 +933,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java similarity index 62% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java index d92bd9a1..16190d96 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java @@ -1,102 +1,71 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/crawled_url.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface CrawledUrlOrBuilder - extends +public interface CrawledUrlOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.CrawledUrl) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** - * - * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString getHttpMethodBytes(); + com.google.protobuf.ByteString + getHttpMethodBytes(); /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The url. */ java.lang.String getUrl(); /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The body. */ java.lang.String getBody(); /** - * - * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The bytes for body. */ - com.google.protobuf.ByteString getBodyBytes(); + com.google.protobuf.ByteString + getBodyBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java new file mode 100644 index 00000000..a7546587 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java @@ -0,0 +1,54 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/crawled_url.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class CrawledUrlProto { + private CrawledUrlProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/websecurityscanner/v1alph" + + "a/crawled_url.proto\022\'google.cloud.websec" + + "urityscanner.v1alpha\"<\n\nCrawledUrl\022\023\n\013ht" + + "tp_method\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001" + + "(\tB\233\001\n+com.google.cloud.websecurityscann" + + "er.v1alphaB\017CrawledUrlProtoP\001ZYgoogle.go" + + "lang.org/genproto/googleapis/cloud/webse" + + "curityscanner/v1alpha;websecurityscanner" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor, + new java.lang.String[] { "HttpMethod", "Url", "Body", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java similarity index 61% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java index 0f68af4a..b0a8845e 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `CreateScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest} */ -public final class CreateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) CreateScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateScanConfigRequest.newBuilder() to construct. private CreateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateScanConfigRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,37 +53,32 @@ private CreateScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); } - case 18: - { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } - - break; + scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,42 +86,35 @@ private CreateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -152,32 +123,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,16 +157,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1alpha.ScanConfig scanConfig_; /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -205,34 +169,23 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig() { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; } /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder() { @@ -240,7 +193,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -272,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (scanConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getScanConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -282,18 +236,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasScanConfig() != other.hasScanConfig()) return false; if (hasScanConfig()) { - if (!getScanConfig().equals(other.getScanConfig())) return false; + if (!getScanConfig() + .equals(other.getScanConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -318,145 +273,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `CreateScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -472,16 +416,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -495,8 +437,7 @@ public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest build @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest(this); result.parent_ = parent_; if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; @@ -511,51 +452,46 @@ public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -582,9 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -596,23 +530,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -621,24 +551,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -646,70 +573,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -717,58 +631,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1alpha.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> - scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> scanConfigBuilder_; /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -784,15 +679,11 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanCon return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setScanConfig( com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder builderForValue) { @@ -806,23 +697,17 @@ public Builder setScanConfig( return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanConfig value) { if (scanConfigBuilder_ == null) { if (scanConfig_ != null) { scanConfig_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.newBuilder(scanConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial(); } else { scanConfig_ = value; } @@ -834,15 +719,11 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanC return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearScanConfig() { if (scanConfigBuilder_ == null) { @@ -856,72 +737,55 @@ public Builder clearScanConfig() { return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanConfigBuilder() { - + onChanged(); return getScanConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder - getScanConfigOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder() { if (scanConfigBuilder_ != null) { return scanConfigBuilder_.getMessageOrBuilder(); } else { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; } } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> getScanConfigFieldBuilder() { if (scanConfigBuilder_ == null) { - scanConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( - getScanConfig(), getParentForChildren(), isClean()); + scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( + getScanConfig(), + getParentForChildren(), + isClean()); scanConfig_ = null; } return scanConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -931,32 +795,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -968,8 +830,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..42ad6f50 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface CreateScanConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent resource name where the scan is created, which should be a
+   * project resource name in the format 'projects/{projectId}'.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent resource name where the scan is created, which should be a
+   * project resource name in the format 'projects/{projectId}'.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the scanConfig field is set. + */ + boolean hasScanConfig(); + /** + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The scanConfig. + */ + com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig(); + /** + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder(); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java similarity index 63% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java index 757144a2..5f14e639 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `DeleteScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest} */ -public final class DeleteScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) DeleteScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteScanConfigRequest.newBuilder() to construct. private DeleteScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeleteScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest other = (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `DeleteScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -404,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest build @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest result = new com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,51 +374,46 @@ public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -483,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -522,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..19772138 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface DeleteScanConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanConfig to be deleted. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanConfig to be deleted. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java index c980481d..e450b824 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * A Finding resource represents a vulnerability instance identified during a
  * ScanRun.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.Finding}
  */
-public final class Finding extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Finding extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.Finding)
     FindingOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Finding.newBuilder() to construct.
   private Finding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Finding() {
     name_ = "";
     findingType_ = 0;
@@ -53,15 +35,16 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Finding();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Finding(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -80,170 +63,138 @@ private Finding(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            name_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              findingType_ = rawValue;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            findingType_ = rawValue;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              httpMethod_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            httpMethod_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              fuzzedUrl_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            fuzzedUrl_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              body_ = s;
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            body_ = s;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            description_ = s;
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              reproductionUrl_ = s;
-              break;
-            }
-          case 66:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            reproductionUrl_ = s;
+            break;
+          }
+          case 66: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              frameUrl_ = s;
-              break;
-            }
-          case 74:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            frameUrl_ = s;
+            break;
+          }
+          case 74: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              finalUrl_ = s;
-              break;
-            }
-          case 82:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            finalUrl_ = s;
+            break;
+          }
+          case 82: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              trackingId_ = s;
-              break;
+            trackingId_ = s;
+            break;
+          }
+          case 90: {
+            com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder subBuilder = null;
+            if (outdatedLibrary_ != null) {
+              subBuilder = outdatedLibrary_.toBuilder();
             }
-          case 90:
-            {
-              com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder subBuilder = null;
-              if (outdatedLibrary_ != null) {
-                subBuilder = outdatedLibrary_.toBuilder();
-              }
-              outdatedLibrary_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outdatedLibrary_);
-                outdatedLibrary_ = subBuilder.buildPartial();
-              }
-
-              break;
+            outdatedLibrary_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outdatedLibrary_);
+              outdatedLibrary_ = subBuilder.buildPartial();
             }
-          case 98:
-            {
-              com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder subBuilder =
-                  null;
-              if (violatingResource_ != null) {
-                subBuilder = violatingResource_.toBuilder();
-              }
-              violatingResource_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(violatingResource_);
-                violatingResource_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 98: {
+            com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder subBuilder = null;
+            if (violatingResource_ != null) {
+              subBuilder = violatingResource_.toBuilder();
+            }
+            violatingResource_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(violatingResource_);
+              violatingResource_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder subBuilder =
-                  null;
-              if (vulnerableParameters_ != null) {
-                subBuilder = vulnerableParameters_.toBuilder();
-              }
-              vulnerableParameters_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(vulnerableParameters_);
-                vulnerableParameters_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 106: {
+            com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder subBuilder = null;
+            if (vulnerableParameters_ != null) {
+              subBuilder = vulnerableParameters_.toBuilder();
+            }
+            vulnerableParameters_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(vulnerableParameters_);
+              vulnerableParameters_ = subBuilder.buildPartial();
             }
-          case 114:
-            {
-              com.google.cloud.websecurityscanner.v1alpha.Xss.Builder subBuilder = null;
-              if (xss_ != null) {
-                subBuilder = xss_.toBuilder();
-              }
-              xss_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1alpha.Xss.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(xss_);
-                xss_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 114: {
+            com.google.cloud.websecurityscanner.v1alpha.Xss.Builder subBuilder = null;
+            if (xss_ != null) {
+              subBuilder = xss_.toBuilder();
+            }
+            xss_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.Xss.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(xss_);
+              xss_ = subBuilder.buildPartial();
             }
-          case 122:
-            {
-              com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder subBuilder =
-                  null;
-              if (vulnerableHeaders_ != null) {
-                subBuilder = vulnerableHeaders_.toBuilder();
-              }
-              vulnerableHeaders_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(vulnerableHeaders_);
-                vulnerableHeaders_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 122: {
+            com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder subBuilder = null;
+            if (vulnerableHeaders_ != null) {
+              subBuilder = vulnerableHeaders_.toBuilder();
+            }
+            vulnerableHeaders_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(vulnerableHeaders_);
+              vulnerableHeaders_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -251,41 +202,36 @@ private Finding(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1alpha.FindingProto.internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1alpha.FindingProto.internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1alpha.Finding.class,
-            com.google.cloud.websecurityscanner.v1alpha.Finding.Builder.class);
+            com.google.cloud.websecurityscanner.v1alpha.Finding.class, com.google.cloud.websecurityscanner.v1alpha.Finding.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Types of Findings.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1alpha.Finding.FindingType} */ - public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { + public enum FindingType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The invalid finding type.
      * 
@@ -294,8 +240,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { */ FINDING_TYPE_UNSPECIFIED(0), /** - * - * *
      * A page that was served over HTTPS also resources over HTTP. A
      * man-in-the-middle attacker could tamper with the HTTP resource and gain
@@ -307,8 +251,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     MIXED_CONTENT(1),
     /**
-     *
-     *
      * 
      * The version of an included library is known to contain a security issue.
      * The scanner checks the version of library in use against a known list of
@@ -320,8 +262,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     OUTDATED_LIBRARY(2),
     /**
-     *
-     *
      * 
      * This type of vulnerability occurs when the value of a request parameter
      * is reflected at the beginning of the response, for example, in requests
@@ -335,8 +275,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     ROSETTA_FLASH(5),
     /**
-     *
-     *
      * 
      * A cross-site scripting (XSS) bug is found via JavaScript callback. For
      * detailed explanations on XSS, see
@@ -347,8 +285,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     XSS_CALLBACK(3),
     /**
-     *
-     *
      * 
      * A potential cross-site scripting (XSS) bug due to JavaScript breakage.
      * In some circumstances, the application under test might modify the test
@@ -365,8 +301,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     XSS_ERROR(4),
     /**
-     *
-     *
      * 
      * An application appears to be transmitting a password field in clear text.
      * An attacker can eavesdrop network traffic and sniff the password field.
@@ -376,8 +310,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     CLEAR_TEXT_PASSWORD(6),
     /**
-     *
-     *
      * 
      * An application returns sensitive content with an invalid content type,
      * or without an 'X-Content-Type-Options: nosniff' header.
@@ -387,8 +319,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     INVALID_CONTENT_TYPE(7),
     /**
-     *
-     *
      * 
      * A cross-site scripting (XSS) vulnerability in AngularJS module that
      * occurs when a user-provided string is interpolated by Angular.
@@ -398,8 +328,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     XSS_ANGULAR_CALLBACK(8),
     /**
-     *
-     *
      * 
      * A malformed or invalid valued header.
      * 
@@ -408,8 +336,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { */ INVALID_HEADER(9), /** - * - * *
      * Misspelled security header name.
      * 
@@ -418,8 +344,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { */ MISSPELLED_SECURITY_HEADER_NAME(10), /** - * - * *
      * Mismatching values in a duplicate security header.
      * 
@@ -431,8 +355,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The invalid finding type.
      * 
@@ -441,8 +363,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FINDING_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * A page that was served over HTTPS also resources over HTTP. A
      * man-in-the-middle attacker could tamper with the HTTP resource and gain
@@ -454,8 +374,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MIXED_CONTENT_VALUE = 1;
     /**
-     *
-     *
      * 
      * The version of an included library is known to contain a security issue.
      * The scanner checks the version of library in use against a known list of
@@ -467,8 +385,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int OUTDATED_LIBRARY_VALUE = 2;
     /**
-     *
-     *
      * 
      * This type of vulnerability occurs when the value of a request parameter
      * is reflected at the beginning of the response, for example, in requests
@@ -482,8 +398,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ROSETTA_FLASH_VALUE = 5;
     /**
-     *
-     *
      * 
      * A cross-site scripting (XSS) bug is found via JavaScript callback. For
      * detailed explanations on XSS, see
@@ -494,8 +408,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int XSS_CALLBACK_VALUE = 3;
     /**
-     *
-     *
      * 
      * A potential cross-site scripting (XSS) bug due to JavaScript breakage.
      * In some circumstances, the application under test might modify the test
@@ -512,8 +424,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int XSS_ERROR_VALUE = 4;
     /**
-     *
-     *
      * 
      * An application appears to be transmitting a password field in clear text.
      * An attacker can eavesdrop network traffic and sniff the password field.
@@ -523,8 +433,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CLEAR_TEXT_PASSWORD_VALUE = 6;
     /**
-     *
-     *
      * 
      * An application returns sensitive content with an invalid content type,
      * or without an 'X-Content-Type-Options: nosniff' header.
@@ -534,8 +442,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INVALID_CONTENT_TYPE_VALUE = 7;
     /**
-     *
-     *
      * 
      * A cross-site scripting (XSS) vulnerability in AngularJS module that
      * occurs when a user-provided string is interpolated by Angular.
@@ -545,8 +451,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int XSS_ANGULAR_CALLBACK_VALUE = 8;
     /**
-     *
-     *
      * 
      * A malformed or invalid valued header.
      * 
@@ -555,8 +459,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INVALID_HEADER_VALUE = 9; /** - * - * *
      * Misspelled security header name.
      * 
@@ -565,8 +467,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MISSPELLED_SECURITY_HEADER_NAME_VALUE = 10; /** - * - * *
      * Mismatching values in a duplicate security header.
      * 
@@ -575,6 +475,7 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MISMATCHING_SECURITY_HEADER_VALUES_VALUE = 11; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -599,69 +500,58 @@ public static FindingType valueOf(int value) { */ public static FindingType forNumber(int value) { switch (value) { - case 0: - return FINDING_TYPE_UNSPECIFIED; - case 1: - return MIXED_CONTENT; - case 2: - return OUTDATED_LIBRARY; - case 5: - return ROSETTA_FLASH; - case 3: - return XSS_CALLBACK; - case 4: - return XSS_ERROR; - case 6: - return CLEAR_TEXT_PASSWORD; - case 7: - return INVALID_CONTENT_TYPE; - case 8: - return XSS_ANGULAR_CALLBACK; - case 9: - return INVALID_HEADER; - case 10: - return MISSPELLED_SECURITY_HEADER_NAME; - case 11: - return MISMATCHING_SECURITY_HEADER_VALUES; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + case 0: return FINDING_TYPE_UNSPECIFIED; + case 1: return MIXED_CONTENT; + case 2: return OUTDATED_LIBRARY; + case 5: return ROSETTA_FLASH; + case 3: return XSS_CALLBACK; + case 4: return XSS_ERROR; + case 6: return CLEAR_TEXT_PASSWORD; + case 7: return INVALID_CONTENT_TYPE; + case 8: return XSS_ANGULAR_CALLBACK; + case 9: return INVALID_HEADER; + case 10: return MISSPELLED_SECURITY_HEADER_NAME; + case 11: return MISMATCHING_SECURITY_HEADER_VALUES; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + FindingType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FindingType findValueByNumber(int number) { + return FindingType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FindingType findValueByNumber(int number) { - return FindingType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.Finding.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.Finding.getDescriptor().getEnumTypes().get(0); } private static final FindingType[] VALUES = values(); - public static FindingType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static FindingType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -681,8 +571,6 @@ private FindingType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -690,7 +578,6 @@ private FindingType(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -699,15 +586,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -715,15 +601,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -734,53 +621,39 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FINDING_TYPE_FIELD_NUMBER = 2; private int findingType_; /** - * - * *
    * The type of the Finding.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @return The enum numeric value on the wire for findingType. */ - @java.lang.Override - public int getFindingTypeValue() { + @java.lang.Override public int getFindingTypeValue() { return findingType_; } /** - * - * *
    * The type of the Finding.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @return The findingType. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED : result; } public static final int HTTP_METHOD_FIELD_NUMBER = 3; private volatile java.lang.Object httpMethod_; /** - * - * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The httpMethod. */ @java.lang.Override @@ -789,30 +662,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** - * - * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -823,15 +696,12 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { public static final int FUZZED_URL_FIELD_NUMBER = 4; private volatile java.lang.Object fuzzedUrl_; /** - * - * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ @java.lang.Override @@ -840,30 +710,30 @@ public java.lang.String getFuzzedUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; } } /** - * - * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFuzzedUrlBytes() { + public com.google.protobuf.ByteString + getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -874,14 +744,11 @@ public com.google.protobuf.ByteString getFuzzedUrlBytes() { public static final int BODY_FIELD_NUMBER = 5; private volatile java.lang.Object body_; /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The body. */ @java.lang.Override @@ -890,29 +757,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -923,14 +790,11 @@ public com.google.protobuf.ByteString getBodyBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The description. */ @java.lang.Override @@ -939,29 +803,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -972,15 +836,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int REPRODUCTION_URL_FIELD_NUMBER = 7; private volatile java.lang.Object reproductionUrl_; /** - * - * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ @java.lang.Override @@ -989,30 +850,30 @@ public java.lang.String getReproductionUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; } } /** - * - * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getReproductionUrlBytes() { + public com.google.protobuf.ByteString + getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -1023,15 +884,12 @@ public com.google.protobuf.ByteString getReproductionUrlBytes() { public static final int FRAME_URL_FIELD_NUMBER = 8; private volatile java.lang.Object frameUrl_; /** - * - * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The frameUrl. */ @java.lang.Override @@ -1040,30 +898,30 @@ public java.lang.String getFrameUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; } } /** - * - * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFrameUrlBytes() { + public com.google.protobuf.ByteString + getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -1074,14 +932,11 @@ public com.google.protobuf.ByteString getFrameUrlBytes() { public static final int FINAL_URL_FIELD_NUMBER = 9; private volatile java.lang.Object finalUrl_; /** - * - * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The finalUrl. */ @java.lang.Override @@ -1090,29 +945,29 @@ public java.lang.String getFinalUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; } } /** - * - * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFinalUrlBytes() { + public com.google.protobuf.ByteString + getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -1123,15 +978,12 @@ public com.google.protobuf.ByteString getFinalUrlBytes() { public static final int TRACKING_ID_FIELD_NUMBER = 10; private volatile java.lang.Object trackingId_; /** - * - * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The trackingId. */ @java.lang.Override @@ -1140,30 +992,30 @@ public java.lang.String getTrackingId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; } } /** - * - * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ @java.lang.Override - public com.google.protobuf.ByteString getTrackingIdBytes() { + public com.google.protobuf.ByteString + getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trackingId_ = b; return b; } else { @@ -1174,14 +1026,11 @@ public com.google.protobuf.ByteString getTrackingIdBytes() { public static final int OUTDATED_LIBRARY_FIELD_NUMBER = 11; private com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdatedLibrary_; /** - * - * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ @java.lang.Override @@ -1189,25 +1038,18 @@ public boolean hasOutdatedLibrary() { return outdatedLibrary_ != null; } /** - * - * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getOutdatedLibrary() { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } /** - * - * *
    * An addon containing information about outdated libraries.
    * 
@@ -1215,24 +1057,19 @@ public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getOutdatedLi * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder - getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { return getOutdatedLibrary(); } public static final int VIOLATING_RESOURCE_FIELD_NUMBER = 12; private com.google.cloud.websecurityscanner.v1alpha.ViolatingResource violatingResource_; /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; * @return Whether the violatingResource field is set. */ @java.lang.Override @@ -1240,53 +1077,39 @@ public boolean hasViolatingResource() { return violatingResource_ != null; } /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; * @return The violatingResource. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getViolatingResource() { - return violatingResource_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() - : violatingResource_; + return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() : violatingResource_; } /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder - getViolatingResourceOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() { return getViolatingResource(); } public static final int VULNERABLE_HEADERS_FIELD_NUMBER = 15; private com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerableHeaders_; /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; * @return Whether the vulnerableHeaders field is set. */ @java.lang.Override @@ -1294,52 +1117,38 @@ public boolean hasVulnerableHeaders() { return vulnerableHeaders_ != null; } /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; * @return The vulnerableHeaders. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getVulnerableHeaders() { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder - getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { return getVulnerableHeaders(); } public static final int VULNERABLE_PARAMETERS_FIELD_NUMBER = 13; private com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerableParameters_; /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ @java.lang.Override @@ -1347,53 +1156,39 @@ public boolean hasVulnerableParameters() { return vulnerableParameters_ != null; } /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters - getVulnerableParameters() { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getVulnerableParameters() { + return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { return getVulnerableParameters(); } public static final int XSS_FIELD_NUMBER = 14; private com.google.cloud.websecurityscanner.v1alpha.Xss xss_; /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; - * * @return Whether the xss field is set. */ @java.lang.Override @@ -1401,25 +1196,18 @@ public boolean hasXss() { return xss_ != null; } /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; - * * @return The xss. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Xss getXss() { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() : xss_; } /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
@@ -1432,7 +1220,6 @@ public com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder getXssOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1444,13 +1231,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (findingType_ - != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED - .getNumber()) { + if (findingType_ != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, findingType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpMethod_)) { @@ -1504,10 +1290,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (findingType_ - != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, findingType_); + if (findingType_ != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, findingType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpMethod_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, httpMethod_); @@ -1534,20 +1319,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, trackingId_); } if (outdatedLibrary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getOutdatedLibrary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getOutdatedLibrary()); } if (violatingResource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getViolatingResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getViolatingResource()); } if (vulnerableParameters_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(13, getVulnerableParameters()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getVulnerableParameters()); } if (xss_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getXss()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getXss()); } if (vulnerableHeaders_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getVulnerableHeaders()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getVulnerableHeaders()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1557,43 +1346,56 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.Finding)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.Finding other = - (com.google.cloud.websecurityscanner.v1alpha.Finding) obj; + com.google.cloud.websecurityscanner.v1alpha.Finding other = (com.google.cloud.websecurityscanner.v1alpha.Finding) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (findingType_ != other.findingType_) return false; - if (!getHttpMethod().equals(other.getHttpMethod())) return false; - if (!getFuzzedUrl().equals(other.getFuzzedUrl())) return false; - if (!getBody().equals(other.getBody())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getReproductionUrl().equals(other.getReproductionUrl())) return false; - if (!getFrameUrl().equals(other.getFrameUrl())) return false; - if (!getFinalUrl().equals(other.getFinalUrl())) return false; - if (!getTrackingId().equals(other.getTrackingId())) return false; + if (!getHttpMethod() + .equals(other.getHttpMethod())) return false; + if (!getFuzzedUrl() + .equals(other.getFuzzedUrl())) return false; + if (!getBody() + .equals(other.getBody())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getReproductionUrl() + .equals(other.getReproductionUrl())) return false; + if (!getFrameUrl() + .equals(other.getFrameUrl())) return false; + if (!getFinalUrl() + .equals(other.getFinalUrl())) return false; + if (!getTrackingId() + .equals(other.getTrackingId())) return false; if (hasOutdatedLibrary() != other.hasOutdatedLibrary()) return false; if (hasOutdatedLibrary()) { - if (!getOutdatedLibrary().equals(other.getOutdatedLibrary())) return false; + if (!getOutdatedLibrary() + .equals(other.getOutdatedLibrary())) return false; } if (hasViolatingResource() != other.hasViolatingResource()) return false; if (hasViolatingResource()) { - if (!getViolatingResource().equals(other.getViolatingResource())) return false; + if (!getViolatingResource() + .equals(other.getViolatingResource())) return false; } if (hasVulnerableHeaders() != other.hasVulnerableHeaders()) return false; if (hasVulnerableHeaders()) { - if (!getVulnerableHeaders().equals(other.getVulnerableHeaders())) return false; + if (!getVulnerableHeaders() + .equals(other.getVulnerableHeaders())) return false; } if (hasVulnerableParameters() != other.hasVulnerableParameters()) return false; if (hasVulnerableParameters()) { - if (!getVulnerableParameters().equals(other.getVulnerableParameters())) return false; + if (!getVulnerableParameters() + .equals(other.getVulnerableParameters())) return false; } if (hasXss() != other.hasXss()) return false; if (hasXss()) { - if (!getXss().equals(other.getXss())) return false; + if (!getXss() + .equals(other.getXss())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1652,103 +1454,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.Finding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.Finding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Finding resource represents a vulnerability instance identified during a
    * ScanRun.
@@ -1756,23 +1551,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.Finding}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.Finding)
       com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingProto.internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1alpha.FindingProto.internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1alpha.Finding.class,
-              com.google.cloud.websecurityscanner.v1alpha.Finding.Builder.class);
+              com.google.cloud.websecurityscanner.v1alpha.Finding.class, com.google.cloud.websecurityscanner.v1alpha.Finding.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1alpha.Finding.newBuilder()
@@ -1780,15 +1573,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1846,9 +1640,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingProto.internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
     }
 
     @java.lang.Override
@@ -1867,8 +1661,7 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1alpha.Finding buildPartial() {
-      com.google.cloud.websecurityscanner.v1alpha.Finding result =
-          new com.google.cloud.websecurityscanner.v1alpha.Finding(this);
+      com.google.cloud.websecurityscanner.v1alpha.Finding result = new com.google.cloud.websecurityscanner.v1alpha.Finding(this);
       result.name_ = name_;
       result.findingType_ = findingType_;
       result.httpMethod_ = httpMethod_;
@@ -1912,39 +1705,38 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1alpha.Finding) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.Finding) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.Finding)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1952,8 +1744,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.Finding other) {
-      if (other == com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -2027,8 +1818,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1alpha.Finding) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.Finding) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2040,8 +1830,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2049,13 +1837,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2064,8 +1852,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2073,14 +1859,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2088,8 +1875,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2097,22 +1882,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2120,18 +1903,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2139,16 +1919,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -2156,93 +1936,73 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int findingType_ = 0; /** - * - * *
      * The type of the Finding.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @return The enum numeric value on the wire for findingType. */ - @java.lang.Override - public int getFindingTypeValue() { + @java.lang.Override public int getFindingTypeValue() { return findingType_; } /** - * - * *
      * The type of the Finding.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @param value The enum numeric value on the wire for findingType to set. * @return This builder for chaining. */ public Builder setFindingTypeValue(int value) { - + findingType_ = value; onChanged(); return this; } /** - * - * *
      * The type of the Finding.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @return The findingType. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED : result; } /** - * - * *
      * The type of the Finding.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType( - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType value) { + public Builder setFindingType(com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType value) { if (value == null) { throw new NullPointerException(); } - + findingType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The type of the Finding.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = 0; onChanged(); return this; @@ -2250,21 +2010,19 @@ public Builder clearFindingType() { private java.lang.Object httpMethod_ = ""; /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -2273,22 +2031,21 @@ public java.lang.String getHttpMethod() { } } /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -2296,64 +2053,57 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } } /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod(java.lang.String value) { + public Builder setHttpMethod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -2361,21 +2111,19 @@ public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { private java.lang.Object fuzzedUrl_ = ""; /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ public java.lang.String getFuzzedUrl() { java.lang.Object ref = fuzzedUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; @@ -2384,22 +2132,21 @@ public java.lang.String getFuzzedUrl() { } } /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ - public com.google.protobuf.ByteString getFuzzedUrlBytes() { + public com.google.protobuf.ByteString + getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -2407,64 +2154,57 @@ public com.google.protobuf.ByteString getFuzzedUrlBytes() { } } /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @param value The fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrl(java.lang.String value) { + public Builder setFuzzedUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fuzzedUrl_ = value; onChanged(); return this; } /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return This builder for chaining. */ public Builder clearFuzzedUrl() { - + fuzzedUrl_ = getDefaultInstance().getFuzzedUrl(); onChanged(); return this; } /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @param value The bytes for fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFuzzedUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fuzzedUrl_ = value; onChanged(); return this; @@ -2472,20 +2212,18 @@ public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object body_ = ""; /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -2494,21 +2232,20 @@ public java.lang.String getBody() { } } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return The bytes for body. */ - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -2516,61 +2253,54 @@ public com.google.protobuf.ByteString getBodyBytes() { } } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody(java.lang.String value) { + public Builder setBody( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes(com.google.protobuf.ByteString value) { + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; @@ -2578,20 +2308,18 @@ public Builder setBodyBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2600,21 +2328,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2622,61 +2349,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2684,21 +2404,19 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object reproductionUrl_ = ""; /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ public java.lang.String getReproductionUrl() { java.lang.Object ref = reproductionUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; @@ -2707,22 +2425,21 @@ public java.lang.String getReproductionUrl() { } } /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ - public com.google.protobuf.ByteString getReproductionUrlBytes() { + public com.google.protobuf.ByteString + getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -2730,64 +2447,57 @@ public com.google.protobuf.ByteString getReproductionUrlBytes() { } } /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @param value The reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrl(java.lang.String value) { + public Builder setReproductionUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reproductionUrl_ = value; onChanged(); return this; } /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return This builder for chaining. */ public Builder clearReproductionUrl() { - + reproductionUrl_ = getDefaultInstance().getReproductionUrl(); onChanged(); return this; } /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @param value The bytes for reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { + public Builder setReproductionUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reproductionUrl_ = value; onChanged(); return this; @@ -2795,21 +2505,19 @@ public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object frameUrl_ = ""; /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return The frameUrl. */ public java.lang.String getFrameUrl() { java.lang.Object ref = frameUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; @@ -2818,22 +2526,21 @@ public java.lang.String getFrameUrl() { } } /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ - public com.google.protobuf.ByteString getFrameUrlBytes() { + public com.google.protobuf.ByteString + getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -2841,64 +2548,57 @@ public com.google.protobuf.ByteString getFrameUrlBytes() { } } /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @param value The frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrl(java.lang.String value) { + public Builder setFrameUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + frameUrl_ = value; onChanged(); return this; } /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return This builder for chaining. */ public Builder clearFrameUrl() { - + frameUrl_ = getDefaultInstance().getFrameUrl(); onChanged(); return this; } /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @param value The bytes for frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFrameUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + frameUrl_ = value; onChanged(); return this; @@ -2906,20 +2606,18 @@ public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object finalUrl_ = ""; /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return The finalUrl. */ public java.lang.String getFinalUrl() { java.lang.Object ref = finalUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; @@ -2928,21 +2626,20 @@ public java.lang.String getFinalUrl() { } } /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ - public com.google.protobuf.ByteString getFinalUrlBytes() { + public com.google.protobuf.ByteString + getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -2950,61 +2647,54 @@ public com.google.protobuf.ByteString getFinalUrlBytes() { } } /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @param value The finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrl(java.lang.String value) { + public Builder setFinalUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + finalUrl_ = value; onChanged(); return this; } /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return This builder for chaining. */ public Builder clearFinalUrl() { - + finalUrl_ = getDefaultInstance().getFinalUrl(); onChanged(); return this; } /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @param value The bytes for finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFinalUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + finalUrl_ = value; onChanged(); return this; @@ -3012,21 +2702,19 @@ public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object trackingId_ = ""; /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return The trackingId. */ public java.lang.String getTrackingId() { java.lang.Object ref = trackingId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; @@ -3035,22 +2723,21 @@ public java.lang.String getTrackingId() { } } /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ - public com.google.protobuf.ByteString getTrackingIdBytes() { + public com.google.protobuf.ByteString + getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trackingId_ = b; return b; } else { @@ -3058,64 +2745,57 @@ public com.google.protobuf.ByteString getTrackingIdBytes() { } } /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @param value The trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingId(java.lang.String value) { + public Builder setTrackingId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trackingId_ = value; onChanged(); return this; } /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return This builder for chaining. */ public Builder clearTrackingId() { - + trackingId_ = getDefaultInstance().getTrackingId(); onChanged(); return this; } /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @param value The bytes for trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { + public Builder setTrackingIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trackingId_ = value; onChanged(); return this; @@ -3123,55 +2803,41 @@ public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdatedLibrary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder> - outdatedLibraryBuilder_; + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder> outdatedLibraryBuilder_; /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ public boolean hasOutdatedLibrary() { return outdatedLibraryBuilder_ != null || outdatedLibrary_ != null; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getOutdatedLibrary() { if (outdatedLibraryBuilder_ == null) { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } else { return outdatedLibraryBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ - public Builder setOutdatedLibrary( - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary value) { + public Builder setOutdatedLibrary(com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3185,8 +2851,6 @@ public Builder setOutdatedLibrary( return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
@@ -3205,23 +2869,17 @@ public Builder setOutdatedLibrary( return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ - public Builder mergeOutdatedLibrary( - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary value) { + public Builder mergeOutdatedLibrary(com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (outdatedLibrary_ != null) { outdatedLibrary_ = - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.newBuilder( - outdatedLibrary_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.newBuilder(outdatedLibrary_).mergeFrom(value).buildPartial(); } else { outdatedLibrary_ = value; } @@ -3233,8 +2891,6 @@ public Builder mergeOutdatedLibrary( return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
@@ -3253,42 +2909,33 @@ public Builder clearOutdatedLibrary() { return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder - getOutdatedLibraryBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder getOutdatedLibraryBuilder() { + onChanged(); return getOutdatedLibraryFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder - getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { if (outdatedLibraryBuilder_ != null) { return outdatedLibraryBuilder_.getMessageOrBuilder(); } else { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
@@ -3296,17 +2943,14 @@ public Builder clearOutdatedLibrary() { * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder> getOutdatedLibraryFieldBuilder() { if (outdatedLibraryBuilder_ == null) { - outdatedLibraryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder>( - getOutdatedLibrary(), getParentForChildren(), isClean()); + outdatedLibraryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder>( + getOutdatedLibrary(), + getParentForChildren(), + isClean()); outdatedLibrary_ = null; } return outdatedLibraryBuilder_; @@ -3314,61 +2958,44 @@ public Builder clearOutdatedLibrary() { private com.google.cloud.websecurityscanner.v1alpha.ViolatingResource violatingResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, - com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder> - violatingResourceBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder> violatingResourceBuilder_; /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; * @return Whether the violatingResource field is set. */ public boolean hasViolatingResource() { return violatingResourceBuilder_ != null || violatingResource_ != null; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; * @return The violatingResource. */ public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getViolatingResource() { if (violatingResourceBuilder_ == null) { - return violatingResource_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() - : violatingResource_; + return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() : violatingResource_; } else { return violatingResourceBuilder_.getMessage(); } } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ - public Builder setViolatingResource( - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource value) { + public Builder setViolatingResource(com.google.cloud.websecurityscanner.v1alpha.ViolatingResource value) { if (violatingResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3382,15 +3009,12 @@ public Builder setViolatingResource( return this; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ public Builder setViolatingResource( com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder builderForValue) { @@ -3404,25 +3028,18 @@ public Builder setViolatingResource( return this; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ - public Builder mergeViolatingResource( - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource value) { + public Builder mergeViolatingResource(com.google.cloud.websecurityscanner.v1alpha.ViolatingResource value) { if (violatingResourceBuilder_ == null) { if (violatingResource_ != null) { violatingResource_ = - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.newBuilder( - violatingResource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.newBuilder(violatingResource_).mergeFrom(value).buildPartial(); } else { violatingResource_ = value; } @@ -3434,15 +3051,12 @@ public Builder mergeViolatingResource( return this; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ public Builder clearViolatingResource() { if (violatingResourceBuilder_ == null) { @@ -3456,66 +3070,51 @@ public Builder clearViolatingResource() { return this; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ - public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder - getViolatingResourceBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder getViolatingResourceBuilder() { + onChanged(); return getViolatingResourceFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ - public com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder - getViolatingResourceOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() { if (violatingResourceBuilder_ != null) { return violatingResourceBuilder_.getMessageOrBuilder(); } else { - return violatingResource_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() - : violatingResource_; + return violatingResource_ == null ? + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() : violatingResource_; } } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, - com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder> getViolatingResourceFieldBuilder() { if (violatingResourceBuilder_ == null) { - violatingResourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, - com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder>( - getViolatingResource(), getParentForChildren(), isClean()); + violatingResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder>( + getViolatingResource(), + getParentForChildren(), + isClean()); violatingResource_ = null; } return violatingResourceBuilder_; @@ -3523,58 +3122,41 @@ public Builder clearViolatingResource() { private com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerableHeaders_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder> - vulnerableHeadersBuilder_; + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder> vulnerableHeadersBuilder_; /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; * @return Whether the vulnerableHeaders field is set. */ public boolean hasVulnerableHeaders() { return vulnerableHeadersBuilder_ != null || vulnerableHeaders_ != null; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; * @return The vulnerableHeaders. */ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getVulnerableHeaders() { if (vulnerableHeadersBuilder_ == null) { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } else { return vulnerableHeadersBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ - public Builder setVulnerableHeaders( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders value) { + public Builder setVulnerableHeaders(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3588,14 +3170,11 @@ public Builder setVulnerableHeaders( return this; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ public Builder setVulnerableHeaders( com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder builderForValue) { @@ -3609,24 +3188,17 @@ public Builder setVulnerableHeaders( return this; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ - public Builder mergeVulnerableHeaders( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders value) { + public Builder mergeVulnerableHeaders(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (vulnerableHeaders_ != null) { vulnerableHeaders_ = - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.newBuilder( - vulnerableHeaders_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.newBuilder(vulnerableHeaders_).mergeFrom(value).buildPartial(); } else { vulnerableHeaders_ = value; } @@ -3638,14 +3210,11 @@ public Builder mergeVulnerableHeaders( return this; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ public Builder clearVulnerableHeaders() { if (vulnerableHeadersBuilder_ == null) { @@ -3659,63 +3228,48 @@ public Builder clearVulnerableHeaders() { return this; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder - getVulnerableHeadersBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder getVulnerableHeadersBuilder() { + onChanged(); return getVulnerableHeadersFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder - getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { if (vulnerableHeadersBuilder_ != null) { return vulnerableHeadersBuilder_.getMessageOrBuilder(); } else { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder> getVulnerableHeadersFieldBuilder() { if (vulnerableHeadersBuilder_ == null) { - vulnerableHeadersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder>( - getVulnerableHeaders(), getParentForChildren(), isClean()); + vulnerableHeadersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder>( + getVulnerableHeaders(), + getParentForChildren(), + isClean()); vulnerableHeaders_ = null; } return vulnerableHeadersBuilder_; @@ -3723,65 +3277,44 @@ public Builder clearVulnerableHeaders() { private com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerableParameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder> - vulnerableParametersBuilder_; + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder> vulnerableParametersBuilder_; /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ public boolean hasVulnerableParameters() { return vulnerableParametersBuilder_ != null || vulnerableParameters_ != null; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters - getVulnerableParameters() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } else { return vulnerableParametersBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ - public Builder setVulnerableParameters( - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters value) { + public Builder setVulnerableParameters(com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3795,16 +3328,12 @@ public Builder setVulnerableParameters( return this; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ public Builder setVulnerableParameters( com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder builderForValue) { @@ -3818,26 +3347,18 @@ public Builder setVulnerableParameters( return this; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ - public Builder mergeVulnerableParameters( - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters value) { + public Builder mergeVulnerableParameters(com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (vulnerableParameters_ != null) { vulnerableParameters_ = - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.newBuilder( - vulnerableParameters_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.newBuilder(vulnerableParameters_).mergeFrom(value).buildPartial(); } else { vulnerableParameters_ = value; } @@ -3849,16 +3370,12 @@ public Builder mergeVulnerableParameters( return this; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ public Builder clearVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { @@ -3872,69 +3389,51 @@ public Builder clearVulnerableParameters() { return this; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder - getVulnerableParametersBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder getVulnerableParametersBuilder() { + onChanged(); return getVulnerableParametersFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { if (vulnerableParametersBuilder_ != null) { return vulnerableParametersBuilder_.getMessageOrBuilder(); } else { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + return vulnerableParameters_ == null ? + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder> getVulnerableParametersFieldBuilder() { if (vulnerableParametersBuilder_ == null) { - vulnerableParametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder>( - getVulnerableParameters(), getParentForChildren(), isClean()); + vulnerableParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder>( + getVulnerableParameters(), + getParentForChildren(), + isClean()); vulnerableParameters_ = null; } return vulnerableParametersBuilder_; @@ -3942,47 +3441,34 @@ public Builder clearVulnerableParameters() { private com.google.cloud.websecurityscanner.v1alpha.Xss xss_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Xss, - com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, - com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder> - xssBuilder_; + com.google.cloud.websecurityscanner.v1alpha.Xss, com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder> xssBuilder_; /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; - * * @return Whether the xss field is set. */ public boolean hasXss() { return xssBuilder_ != null || xss_ != null; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; - * * @return The xss. */ public com.google.cloud.websecurityscanner.v1alpha.Xss getXss() { if (xssBuilder_ == null) { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() : xss_; } else { return xssBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4003,15 +3489,14 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1alpha.Xss value) { return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; */ - public Builder setXss(com.google.cloud.websecurityscanner.v1alpha.Xss.Builder builderForValue) { + public Builder setXss( + com.google.cloud.websecurityscanner.v1alpha.Xss.Builder builderForValue) { if (xssBuilder_ == null) { xss_ = builderForValue.build(); onChanged(); @@ -4022,8 +3507,6 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1alpha.Xss.Builder bu return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4034,9 +3517,7 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1alpha.Xss value) { if (xssBuilder_ == null) { if (xss_ != null) { xss_ = - com.google.cloud.websecurityscanner.v1alpha.Xss.newBuilder(xss_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.Xss.newBuilder(xss_).mergeFrom(value).buildPartial(); } else { xss_ = value; } @@ -4048,8 +3529,6 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1alpha.Xss value) { return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4068,8 +3547,6 @@ public Builder clearXss() { return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4077,13 +3554,11 @@ public Builder clearXss() { * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; */ public com.google.cloud.websecurityscanner.v1alpha.Xss.Builder getXssBuilder() { - + onChanged(); return getXssFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4094,14 +3569,11 @@ public com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder getXssOrBuilder( if (xssBuilder_ != null) { return xssBuilder_.getMessageOrBuilder(); } else { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? + com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() : xss_; } } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4109,24 +3581,21 @@ public com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder getXssOrBuilder( * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Xss, - com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, - com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.Xss, com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder> getXssFieldBuilder() { if (xssBuilder_ == null) { - xssBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Xss, - com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, - com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder>( - getXss(), getParentForChildren(), isClean()); + xssBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.Xss, com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder>( + getXss(), + getParentForChildren(), + isClean()); xss_ = null; } return xssBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4136,12 +3605,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.Finding) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.Finding) private static final com.google.cloud.websecurityscanner.v1alpha.Finding DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.Finding(); } @@ -4150,16 +3619,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.Finding getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Finding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Finding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Finding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4174,4 +3643,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java new file mode 100644 index 00000000..d9047d69 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java @@ -0,0 +1,119 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class FindingAddonProto { + private FindingAddonProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n;google/cloud/websecurityscanner/v1alph" + + "a/finding_addon.proto\022\'google.cloud.webs" + + "ecurityscanner.v1alpha\"Q\n\017OutdatedLibrar" + + "y\022\024\n\014library_name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t" + + "\022\027\n\017learn_more_urls\030\003 \003(\t\"?\n\021ViolatingRe" + + "source\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resource" + + "_url\030\002 \001(\t\"/\n\024VulnerableParameters\022\027\n\017pa" + + "rameter_names\030\001 \003(\t\"\352\001\n\021VulnerableHeader" + + "s\022R\n\007headers\030\001 \003(\0132A.google.cloud.websec" + + "urityscanner.v1alpha.VulnerableHeaders.H" + + "eader\022Z\n\017missing_headers\030\002 \003(\0132A.google." + + "cloud.websecurityscanner.v1alpha.Vulnera" + + "bleHeaders.Header\032%\n\006Header\022\014\n\004name\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t\"2\n\003Xss\022\024\n\014stack_traces\030" + + "\001 \003(\t\022\025\n\rerror_message\030\002 \001(\tB\235\001\n+com.goo" + + "gle.cloud.websecurityscanner.v1alphaB\021Fi" + + "ndingAddonProtoP\001ZYgoogle.golang.org/gen" + + "proto/googleapis/cloud/websecurityscanne" + + "r/v1alpha;websecurityscannerb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor, + new java.lang.String[] { "LibraryName", "Version", "LearnMoreUrls", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor, + new java.lang.String[] { "ContentType", "ResourceUrl", }); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor, + new java.lang.String[] { "ParameterNames", }); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor, + new java.lang.String[] { "Headers", "MissingHeaders", }); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor = + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor, + new java.lang.String[] { "StackTraces", "ErrorMessage", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java similarity index 80% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java index a66e52d5..fda89e42 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface FindingOrBuilder - extends +public interface FindingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.Finding) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -33,13 +15,10 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -47,432 +26,333 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The type of the Finding.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @return The enum numeric value on the wire for findingType. */ int getFindingTypeValue(); /** - * - * *
    * The type of the Finding.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @return The findingType. */ com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType(); /** - * - * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** - * - * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString getHttpMethodBytes(); + com.google.protobuf.ByteString + getHttpMethodBytes(); /** - * - * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ java.lang.String getFuzzedUrl(); /** - * - * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ - com.google.protobuf.ByteString getFuzzedUrlBytes(); + com.google.protobuf.ByteString + getFuzzedUrlBytes(); /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The body. */ java.lang.String getBody(); /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The bytes for body. */ - com.google.protobuf.ByteString getBodyBytes(); + com.google.protobuf.ByteString + getBodyBytes(); /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ java.lang.String getReproductionUrl(); /** - * - * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ - com.google.protobuf.ByteString getReproductionUrlBytes(); + com.google.protobuf.ByteString + getReproductionUrlBytes(); /** - * - * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The frameUrl. */ java.lang.String getFrameUrl(); /** - * - * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ - com.google.protobuf.ByteString getFrameUrlBytes(); + com.google.protobuf.ByteString + getFrameUrlBytes(); /** - * - * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The finalUrl. */ java.lang.String getFinalUrl(); /** - * - * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ - com.google.protobuf.ByteString getFinalUrlBytes(); + com.google.protobuf.ByteString + getFinalUrlBytes(); /** - * - * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The trackingId. */ java.lang.String getTrackingId(); /** - * - * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ - com.google.protobuf.ByteString getTrackingIdBytes(); + com.google.protobuf.ByteString + getTrackingIdBytes(); /** - * - * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ boolean hasOutdatedLibrary(); /** - * - * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getOutdatedLibrary(); /** - * - * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder - getOutdatedLibraryOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder(); /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; * @return Whether the violatingResource field is set. */ boolean hasViolatingResource(); /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; * @return The violatingResource. */ com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getViolatingResource(); /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; */ - com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder - getViolatingResourceOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder getViolatingResourceOrBuilder(); /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; * @return Whether the vulnerableHeaders field is set. */ boolean hasVulnerableHeaders(); /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; * @return The vulnerableHeaders. */ com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getVulnerableHeaders(); /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; */ - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder - getVulnerableHeadersOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder(); /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ boolean hasVulnerableParameters(); /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getVulnerableParameters(); /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; */ - com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder(); /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; - * * @return Whether the xss field is set. */ boolean hasXss(); /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; - * * @return The xss. */ com.google.cloud.websecurityscanner.v1alpha.Xss getXss(); /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java new file mode 100644 index 00000000..4ba38326 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java @@ -0,0 +1,91 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/finding.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class FindingProto { + private FindingProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/websecurityscanner/v1alph" + + "a/finding.proto\022\'google.cloud.websecurit" + + "yscanner.v1alpha\032\031google/api/resource.pr" + + "oto\032;google/cloud/websecurityscanner/v1a" + + "lpha/finding_addon.proto\"\351\010\n\007Finding\022\014\n\004" + + "name\030\001 \001(\t\022R\n\014finding_type\030\002 \001(\0162<.googl" + + "e.cloud.websecurityscanner.v1alpha.Findi" + + "ng.FindingType\022\023\n\013http_method\030\003 \001(\t\022\022\n\nf" + + "uzzed_url\030\004 \001(\t\022\014\n\004body\030\005 \001(\t\022\023\n\013descrip" + + "tion\030\006 \001(\t\022\030\n\020reproduction_url\030\007 \001(\t\022\021\n\t" + + "frame_url\030\010 \001(\t\022\021\n\tfinal_url\030\t \001(\t\022\023\n\013tr" + + "acking_id\030\n \001(\t\022R\n\020outdated_library\030\013 \001(" + + "\01328.google.cloud.websecurityscanner.v1al" + + "pha.OutdatedLibrary\022V\n\022violating_resourc" + + "e\030\014 \001(\0132:.google.cloud.websecurityscanne" + + "r.v1alpha.ViolatingResource\022V\n\022vulnerabl" + + "e_headers\030\017 \001(\0132:.google.cloud.websecuri" + + "tyscanner.v1alpha.VulnerableHeaders\022\\\n\025v" + + "ulnerable_parameters\030\r \001(\0132=.google.clou" + + "d.websecurityscanner.v1alpha.VulnerableP" + + "arameters\0229\n\003xss\030\016 \001(\0132,.google.cloud.we" + + "bsecurityscanner.v1alpha.Xss\"\266\002\n\013Finding" + + "Type\022\034\n\030FINDING_TYPE_UNSPECIFIED\020\000\022\021\n\rMI" + + "XED_CONTENT\020\001\022\024\n\020OUTDATED_LIBRARY\020\002\022\021\n\rR" + + "OSETTA_FLASH\020\005\022\020\n\014XSS_CALLBACK\020\003\022\r\n\tXSS_" + + "ERROR\020\004\022\027\n\023CLEAR_TEXT_PASSWORD\020\006\022\030\n\024INVA" + + "LID_CONTENT_TYPE\020\007\022\030\n\024XSS_ANGULAR_CALLBA" + + "CK\020\010\022\022\n\016INVALID_HEADER\020\t\022#\n\037MISSPELLED_S" + + "ECURITY_HEADER_NAME\020\n\022&\n\"MISMATCHING_SEC" + + "URITY_HEADER_VALUES\020\013:\204\001\352A\200\001\n)websecurit" + + "yscanner.googleapis.com/Finding\022Sproject" + + "s/{project}/scanConfigs/{scan_config}/sc" + + "anRuns/{scan_run}/findings/{finding}B\230\001\n" + + "+com.google.cloud.websecurityscanner.v1a" + + "lphaB\014FindingProtoP\001ZYgoogle.golang.org/" + + "genproto/googleapis/cloud/websecuritysca" + + "nner/v1alpha;websecurityscannerb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor, + new java.lang.String[] { "Name", "FindingType", "HttpMethod", "FuzzedUrl", "Body", "Description", "ReproductionUrl", "FrameUrl", "FinalUrl", "TrackingId", "OutdatedLibrary", "ViolatingResource", "VulnerableHeaders", "VulnerableParameters", "Xss", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java index 3fa56903..53bba4a7 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * A FindingTypeStats resource represents stats regarding a specific FindingType
  * of Findings under a given ScanRun.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.FindingTypeStats}
  */
-public final class FindingTypeStats extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FindingTypeStats extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.FindingTypeStats)
     FindingTypeStatsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FindingTypeStats.newBuilder() to construct.
   private FindingTypeStats(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FindingTypeStats() {
     findingType_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FindingTypeStats();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FindingTypeStats(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,25 +54,24 @@ private FindingTypeStats(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              findingType_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              findingCount_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            findingType_ = rawValue;
+            break;
+          }
+          case 16: {
+
+            findingCount_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,77 +79,61 @@ private FindingTypeStats(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.class,
-            com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder.class);
+            com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder.class);
   }
 
   public static final int FINDING_TYPE_FIELD_NUMBER = 1;
   private int findingType_;
   /**
-   *
-   *
    * 
    * The finding type associated with the stats.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @return The enum numeric value on the wire for findingType. */ - @java.lang.Override - public int getFindingTypeValue() { + @java.lang.Override public int getFindingTypeValue() { return findingType_; } /** - * - * *
    * The finding type associated with the stats.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @return The findingType. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED : result; } public static final int FINDING_COUNT_FIELD_NUMBER = 2; private int findingCount_; /** - * - * *
    * The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; - * * @return The findingCount. */ @java.lang.Override @@ -176,7 +142,6 @@ public int getFindingCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,10 +153,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (findingType_ - != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (findingType_ != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, findingType_); } if (findingCount_ != 0) { @@ -206,13 +170,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (findingType_ - != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, findingType_); + if (findingType_ != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, findingType_); } if (findingCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, findingCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, findingCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -222,16 +186,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats other = - (com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) obj; + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats other = (com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) obj; if (findingType_ != other.findingType_) return false; - if (getFindingCount() != other.getFindingCount()) return false; + if (getFindingCount() + != other.getFindingCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -253,104 +217,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A FindingTypeStats resource represents stats regarding a specific FindingType
    * of Findings under a given ScanRun.
@@ -358,23 +314,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.FindingTypeStats}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.FindingTypeStats)
       com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.class,
-              com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder.class);
+              com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.newBuilder()
@@ -382,15 +336,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -402,14 +357,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats
-        getDefaultInstanceForType() {
+    public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getDefaultInstanceForType() {
       return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance();
     }
 
@@ -424,8 +378,7 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats buildPartial() {
-      com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats result =
-          new com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats(this);
+      com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats result = new com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats(this);
       result.findingType_ = findingType_;
       result.findingCount_ = findingCount_;
       onBuilt();
@@ -436,39 +389,38 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -476,9 +428,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats other) {
-      if (other
-          == com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance()) return this;
       if (other.findingType_ != 0) {
         setFindingTypeValue(other.getFindingTypeValue());
       }
@@ -504,8 +454,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -517,108 +466,85 @@ public Builder mergeFrom(
 
     private int findingType_ = 0;
     /**
-     *
-     *
      * 
      * The finding type associated with the stats.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @return The enum numeric value on the wire for findingType. */ - @java.lang.Override - public int getFindingTypeValue() { + @java.lang.Override public int getFindingTypeValue() { return findingType_; } /** - * - * *
      * The finding type associated with the stats.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @param value The enum numeric value on the wire for findingType to set. * @return This builder for chaining. */ public Builder setFindingTypeValue(int value) { - + findingType_ = value; onChanged(); return this; } /** - * - * *
      * The finding type associated with the stats.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @return The findingType. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED : result; } /** - * - * *
      * The finding type associated with the stats.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType( - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType value) { + public Builder setFindingType(com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType value) { if (value == null) { throw new NullPointerException(); } - + findingType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The finding type associated with the stats.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = 0; onChanged(); return this; } - private int findingCount_; + private int findingCount_ ; /** - * - * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @return The findingCount. */ @java.lang.Override @@ -626,43 +552,37 @@ public int getFindingCount() { return findingCount_; } /** - * - * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @param value The findingCount to set. * @return This builder for chaining. */ public Builder setFindingCount(int value) { - + findingCount_ = value; onChanged(); return this; } /** - * - * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @return This builder for chaining. */ public Builder clearFindingCount() { - + findingCount_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -672,13 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.FindingTypeStats) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.FindingTypeStats) - private static final com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats(); } @@ -687,16 +606,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FindingTypeStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FindingTypeStats(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindingTypeStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FindingTypeStats(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -711,4 +630,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java similarity index 61% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java index e6025438..2da6562f 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java @@ -1,62 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface FindingTypeStatsOrBuilder - extends +public interface FindingTypeStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.FindingTypeStats) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The finding type associated with the stats.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @return The enum numeric value on the wire for findingType. */ int getFindingTypeValue(); /** - * - * *
    * The finding type associated with the stats.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; - * * @return The findingType. */ com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType(); /** - * - * *
    * The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; - * * @return The findingCount. */ int getFindingCount(); diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java new file mode 100644 index 00000000..b2e45018 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class FindingTypeStatsProto { + private FindingTypeStatsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n@google/cloud/websecurityscanner/v1alph" + + "a/finding_type_stats.proto\022\'google.cloud" + + ".websecurityscanner.v1alpha\0325google/clou" + + "d/websecurityscanner/v1alpha/finding.pro" + + "to\"}\n\020FindingTypeStats\022R\n\014finding_type\030\001" + + " \001(\0162<.google.cloud.websecurityscanner.v" + + "1alpha.Finding.FindingType\022\025\n\rfinding_co" + + "unt\030\002 \001(\005B\241\001\n+com.google.cloud.websecuri" + + "tyscanner.v1alphaB\025FindingTypeStatsProto" + + "P\001ZYgoogle.golang.org/genproto/googleapi" + + "s/cloud/websecurityscanner/v1alpha;webse" + + "curityscannerb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor, + new java.lang.String[] { "FindingType", "FindingCount", }); + com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java index cfe8db4f..af43c13a 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `GetFinding` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetFindingRequest} */ -public final class GetFindingRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFindingRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) GetFindingRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFindingRequest.newBuilder() to construct. private GetFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFindingRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetFindingRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private GetFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest other = - (com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest other = (com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetFinding` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetFindingRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) com.google.cloud.websecurityscanner.v1alpha.GetFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +345,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.getDefaultInstance(); } @@ -403,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest result = - new com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest(this); + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest result = new com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest)other); } else { super.mergeFrom(other); return this; @@ -454,9 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -494,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -546,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -629,13 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest(); } @@ -644,16 +580,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFindingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFindingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -668,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java new file mode 100644 index 00000000..171e1636 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface GetFindingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the Finding to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the Finding to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java similarity index 64% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java index a84f8936..22e698f2 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `GetScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest} */ -public final class GetScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) GetScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetScanConfigRequest.newBuilder() to construct. private GetScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest other = (com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest build() @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest result = new com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,50 +374,46 @@ public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -479,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -518,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..90b3a5d6 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface GetScanConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanConfig to be returned. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanConfig to be returned. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java index 2073d4e2..a3975c92 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `GetScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetScanRunRequest} */ -public final class GetScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) GetScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetScanRunRequest.newBuilder() to construct. private GetScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private GetScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest other = - (com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest other = (com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +345,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.getDefaultInstance(); } @@ -403,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest result = - new com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest(this); + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest result = new com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest)other); } else { super.mergeFrom(other); return this; @@ -454,9 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -494,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -546,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -629,13 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest(); } @@ -644,16 +580,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -668,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java new file mode 100644 index 00000000..7daa852d --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface GetScanRunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanRun to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanRun to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java index 13be1c66..584b0f21 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest} */ -public final class ListCrawledUrlsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCrawledUrlsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) ListCrawledUrlsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCrawledUrlsRequest.newBuilder() to construct. private ListCrawledUrlsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCrawledUrlsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListCrawledUrlsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListCrawledUrlsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,43 +85,36 @@ private ListCrawledUrlsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,33 +123,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -186,8 +158,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -195,7 +165,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -204,15 +173,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -220,15 +188,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -239,8 +208,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -248,7 +215,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -257,7 +223,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,7 +234,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -295,7 +261,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -305,17 +272,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest other = - (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest other = (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -339,145 +308,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -491,16 +449,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.getDefaultInstance(); } @java.lang.Override @@ -514,8 +470,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest result = - new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest(this); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -527,51 +482,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -602,9 +552,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -616,24 +564,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -642,25 +586,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -668,73 +609,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -742,8 +670,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -751,13 +677,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -766,8 +692,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -775,14 +699,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -790,8 +715,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -799,22 +722,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -822,18 +743,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -841,25 +759,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -867,7 +783,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -875,8 +790,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -884,19 +797,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -904,18 +814,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -925,32 +834,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -962,8 +869,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java index 18822600..ea234ea5 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListCrawledUrlsRequestOrBuilder - extends +public interface ListCrawledUrlsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -66,13 +39,10 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -80,14 +50,12 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -95,7 +63,6 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java index 3b2986b1..6afbaf1a 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Response for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse} */ -public final class ListCrawledUrlsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCrawledUrlsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) ListCrawledUrlsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCrawledUrlsResponse.newBuilder() to construct. private ListCrawledUrlsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCrawledUrlsResponse() { crawledUrls_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListCrawledUrlsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,28 @@ private ListCrawledUrlsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl>(); - mutable_bitField0_ |= 0x00000001; - } - crawledUrls_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + crawledUrls_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + crawledUrls_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,7 +84,8 @@ private ListCrawledUrlsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); @@ -116,27 +94,22 @@ private ListCrawledUrlsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.Builder.class); } public static final int CRAWLED_URLS_FIELD_NUMBER = 1; private java.util.List crawledUrls_; /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -144,13 +117,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ @java.lang.Override - public java.util.List - getCrawledUrlsList() { + public java.util.List getCrawledUrlsList() { return crawledUrls_; } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -158,13 +128,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCrawledUrlsOrBuilderList() { return crawledUrls_; } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -176,8 +144,6 @@ public int getCrawledUrlsCount() { return crawledUrls_.size(); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -189,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getCrawledUrls(int return crawledUrls_.get(index); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -206,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawle public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -223,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -255,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < crawledUrls_.size(); i++) { output.writeMessage(1, crawledUrls_.get(i)); } @@ -284,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < crawledUrls_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, crawledUrls_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, crawledUrls_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -297,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse other = - (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) obj; + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse other = (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) obj; - if (!getCrawledUrlsList().equals(other.getCrawledUrlsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getCrawledUrlsList() + .equals(other.getCrawledUrlsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,147 +293,135 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCrawledUrlsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,16 +437,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.getDefaultInstance(); } @java.lang.Override @@ -509,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse build @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse result = - new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse(this); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse result = new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse(this); int from_bitField0_ = bitField0_; if (crawledUrlsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -530,51 +478,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.getDefaultInstance()) return this; if (crawledUrlsBuilder_ == null) { if (!other.crawledUrls_.isEmpty()) { if (crawledUrls_.isEmpty()) { @@ -593,10 +536,9 @@ public Builder mergeFrom( crawledUrlsBuilder_ = null; crawledUrls_ = other.crawledUrls_; bitField0_ = (bitField0_ & ~0x00000001); - crawledUrlsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCrawledUrlsFieldBuilder() - : null; + crawledUrlsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCrawledUrlsFieldBuilder() : null; } else { crawledUrlsBuilder_.addAllMessages(other.crawledUrls_); } @@ -625,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -636,38 +576,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List crawledUrls_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCrawledUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = - new java.util.ArrayList( - crawledUrls_); + crawledUrls_ = new java.util.ArrayList(crawledUrls_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder> - crawledUrlsBuilder_; + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder> crawledUrlsBuilder_; /** - * - * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsList() { + public java.util.List getCrawledUrlsList() { if (crawledUrlsBuilder_ == null) { return java.util.Collections.unmodifiableList(crawledUrls_); } else { @@ -675,8 +605,6 @@ private void ensureCrawledUrlsIsMutable() { } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -691,8 +619,6 @@ public int getCrawledUrlsCount() { } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -707,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getCrawledUrls(int } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -730,8 +654,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -750,8 +672,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -772,8 +692,6 @@ public Builder addCrawledUrls(com.google.cloud.websecurityscanner.v1alpha.Crawle return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -795,8 +713,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -815,8 +731,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -835,8 +749,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -844,11 +756,11 @@ public Builder addCrawledUrls( * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ public Builder addAllCrawledUrls( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (crawledUrlsBuilder_ == null) { ensureCrawledUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crawledUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, crawledUrls_); onChanged(); } else { crawledUrlsBuilder_.addAllMessages(values); @@ -856,8 +768,6 @@ public Builder addAllCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -875,8 +785,6 @@ public Builder clearCrawledUrls() { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -894,8 +802,6 @@ public Builder removeCrawledUrls(int index) { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -907,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder getCrawled return getCrawledUrlsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -918,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder getCrawled public com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawledUrlsOrBuilder( int index) { if (crawledUrlsBuilder_ == null) { - return crawledUrls_.get(index); - } else { + return crawledUrls_.get(index); } else { return crawledUrlsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsOrBuilderList() { + public java.util.List + getCrawledUrlsOrBuilderList() { if (crawledUrlsBuilder_ != null) { return crawledUrlsBuilder_.getMessageOrBuilderList(); } else { @@ -941,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawle } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -950,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawle * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder addCrawledUrlsBuilder() { - return getCrawledUrlsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance()); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -964,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder addCrawled */ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder addCrawledUrlsBuilder( int index) { - return getCrawledUrlsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance()); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsBuilderList() { + public java.util.List + getCrawledUrlsBuilderList() { return getCrawledUrlsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder> getCrawledUrlsFieldBuilder() { if (crawledUrlsBuilder_ == null) { - crawledUrlsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder>( - crawledUrls_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + crawledUrlsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder>( + crawledUrls_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); crawledUrls_ = null; } return crawledUrlsBuilder_; @@ -1001,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder addCrawled private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1024,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1047,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) - private static final com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java index d8f6d0aa..0b93f80c 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListCrawledUrlsResponseOrBuilder - extends +public interface ListCrawledUrlsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ - java.util.List getCrawledUrlsList(); + java.util.List + getCrawledUrlsList(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -44,8 +25,6 @@ public interface ListCrawledUrlsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getCrawledUrls(int index); /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -54,19 +33,15 @@ public interface ListCrawledUrlsResponseOrBuilder */ int getCrawledUrlsCount(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ - java.util.List + java.util.List getCrawledUrlsOrBuilderList(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -77,29 +52,24 @@ com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawledUrlsOr int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java similarity index 62% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java index 8edfe8f9..7491dab8 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest} */ -public final class ListFindingTypeStatsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingTypeStatsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) ListFindingTypeStatsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsRequest.newBuilder() to construct. private ListFindingTypeStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingTypeStatsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingTypeStatsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private ListFindingTypeStatsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private ListFindingTypeStatsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest other = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest other = (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,146 +208,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.Builder - .class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -384,22 +345,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest build() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result = - buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -408,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest b @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result = - new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest(this); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -419,52 +376,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest b public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) other); + if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) { + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -488,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -502,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -528,25 +473,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -554,80 +496,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -637,33 +566,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -675,8 +601,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java new file mode 100644 index 00000000..0ee10079 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface ListFindingTypeStatsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent resource name, which should be a scan run resource name in the
+   * format
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent resource name, which should be a scan run resource name in the
+   * format
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java similarity index 60% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java index 6d0b1ac7..0fd167ae 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Response for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse} */ -public final class ListFindingTypeStatsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingTypeStatsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) ListFindingTypeStatsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsResponse.newBuilder() to construct. private ListFindingTypeStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingTypeStatsResponse() { findingTypeStats_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingTypeStatsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private ListFindingTypeStatsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats>(); - mutable_bitField0_ |= 0x00000001; - } - findingTypeStats_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findingTypeStats_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + findingTypeStats_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private ListFindingTypeStatsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); @@ -108,108 +87,80 @@ private ListFindingTypeStatsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.Builder.class); } public static final int FINDING_TYPE_STATS_FIELD_NUMBER = 1; - private java.util.List - findingTypeStats_; + private java.util.List findingTypeStats_; /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public java.util.List - getFindingTypeStatsList() { + public java.util.List getFindingTypeStatsList() { return findingTypeStats_; } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> + public java.util.List getFindingTypeStatsOrBuilderList() { return findingTypeStats_; } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override public int getFindingTypeStatsCount() { return findingTypeStats_.size(); } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats(int index) { return findingTypeStats_.get(index); } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder - getFindingTypeStatsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( + int index) { return findingTypeStats_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < findingTypeStats_.size(); i++) { output.writeMessage(1, findingTypeStats_.get(i)); } @@ -235,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findingTypeStats_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findingTypeStats_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, findingTypeStats_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -245,16 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse other = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) obj; + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse other = (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) obj; - if (!getFindingTypeStatsList().equals(other.getFindingTypeStatsList())) return false; + if (!getFindingTypeStatsList() + .equals(other.getFindingTypeStatsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -276,148 +228,135 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.Builder - .class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFindingTypeStatsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -431,22 +370,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse build() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result = - buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -455,8 +391,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result = - new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse(this); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result = new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse(this); int from_bitField0_ = bitField0_; if (findingTypeStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -475,52 +410,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) other); + if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) { + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.getDefaultInstance()) return this; if (findingTypeStatsBuilder_ == null) { if (!other.findingTypeStats_.isEmpty()) { if (findingTypeStats_.isEmpty()) { @@ -539,10 +468,9 @@ public Builder mergeFrom( findingTypeStatsBuilder_ = null; findingTypeStats_ = other.findingTypeStats_; bitField0_ = (bitField0_ & ~0x00000001); - findingTypeStatsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFindingTypeStatsFieldBuilder() - : null; + findingTypeStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFindingTypeStatsFieldBuilder() : null; } else { findingTypeStatsBuilder_.addAllMessages(other.findingTypeStats_); } @@ -567,9 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -578,40 +504,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - findingTypeStats_ = java.util.Collections.emptyList(); - + private java.util.List findingTypeStats_ = + java.util.Collections.emptyList(); private void ensureFindingTypeStatsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = - new java.util.ArrayList( - findingTypeStats_); + findingTypeStats_ = new java.util.ArrayList(findingTypeStats_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> - findingTypeStatsBuilder_; + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> findingTypeStatsBuilder_; /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public java.util.List - getFindingTypeStatsList() { + public java.util.List getFindingTypeStatsList() { if (findingTypeStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(findingTypeStats_); } else { @@ -619,15 +533,11 @@ private void ensureFindingTypeStatsIsMutable() { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public int getFindingTypeStatsCount() { if (findingTypeStatsBuilder_ == null) { @@ -637,18 +547,13 @@ public int getFindingTypeStatsCount() { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats(int index) { if (findingTypeStatsBuilder_ == null) { return findingTypeStats_.get(index); } else { @@ -656,15 +561,11 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTy } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public Builder setFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats value) { @@ -681,19 +582,14 @@ public Builder setFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public Builder setFindingTypeStats( - int index, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.set(index, builderForValue.build()); @@ -704,18 +600,13 @@ public Builder setFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public Builder addFindingTypeStats( - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats value) { + public Builder addFindingTypeStats(com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats value) { if (findingTypeStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -729,15 +620,11 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats value) { @@ -754,15 +641,11 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder builderForValue) { @@ -776,19 +659,14 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( - int index, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.add(index, builderForValue.build()); @@ -799,22 +677,18 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public Builder addAllFindingTypeStats( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findingTypeStats_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, findingTypeStats_); onChanged(); } else { findingTypeStatsBuilder_.addAllMessages(values); @@ -822,15 +696,11 @@ public Builder addAllFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public Builder clearFindingTypeStats() { if (findingTypeStatsBuilder_ == null) { @@ -843,15 +713,11 @@ public Builder clearFindingTypeStats() { return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ public Builder removeFindingTypeStats(int index) { if (findingTypeStatsBuilder_ == null) { @@ -864,53 +730,39 @@ public Builder removeFindingTypeStats(int index) { return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder - getFindingTypeStatsBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder getFindingTypeStatsBuilder( + int index) { return getFindingTypeStatsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder - getFindingTypeStatsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( + int index) { if (findingTypeStatsBuilder_ == null) { - return findingTypeStats_.get(index); - } else { + return findingTypeStats_.get(index); } else { return findingTypeStatsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> - getFindingTypeStatsOrBuilderList() { + public java.util.List + getFindingTypeStatsOrBuilderList() { if (findingTypeStatsBuilder_ != null) { return findingTypeStatsBuilder_.getMessageOrBuilderList(); } else { @@ -918,67 +770,45 @@ public Builder removeFindingTypeStats(int index) { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder - addFindingTypeStatsBuilder() { - return getFindingTypeStatsFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder addFindingTypeStatsBuilder() { + return getFindingTypeStatsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance()); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder - addFindingTypeStatsBuilder(int index) { - return getFindingTypeStatsFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder addFindingTypeStatsBuilder( + int index) { + return getFindingTypeStatsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance()); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; */ - public java.util.List - getFindingTypeStatsBuilderList() { + public java.util.List + getFindingTypeStatsBuilderList() { return getFindingTypeStatsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> getFindingTypeStatsFieldBuilder() { if (findingTypeStatsBuilder_ == null) { - findingTypeStatsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder>( + findingTypeStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder>( findingTypeStats_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -987,9 +817,9 @@ public Builder removeFindingTypeStats(int index) { } return findingTypeStatsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -999,33 +829,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) - private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,8 +864,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java new file mode 100644 index 00000000..c9d44f1c --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface ListFindingTypeStatsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The list of FindingTypeStats returned.
+   * 
+ * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + */ + java.util.List + getFindingTypeStatsList(); + /** + *
+   * The list of FindingTypeStats returned.
+   * 
+ * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + */ + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats(int index); + /** + *
+   * The list of FindingTypeStats returned.
+   * 
+ * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + */ + int getFindingTypeStatsCount(); + /** + *
+   * The list of FindingTypeStats returned.
+   * 
+ * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + */ + java.util.List + getFindingTypeStatsOrBuilderList(); + /** + *
+   * The list of FindingTypeStats returned.
+   * 
+ * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + */ + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( + int index); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java similarity index 70% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java index 97037754..6c3a1380 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingsRequest} */ -public final class ListFindingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) ListFindingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsRequest.newBuilder() to construct. private ListFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListFindingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 32: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 32: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,43 +92,36 @@ private ListFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -157,33 +130,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -194,8 +165,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -204,7 +173,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -213,15 +181,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -230,15 +197,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -249,8 +217,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -258,7 +224,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -267,15 +232,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -283,15 +247,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -302,8 +267,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -311,7 +274,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -320,7 +282,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,7 +293,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -364,7 +326,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -374,18 +337,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest other = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest other = (com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -411,127 +377,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.newBuilder() @@ -539,15 +495,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -563,14 +520,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.getDefaultInstance(); } @@ -585,8 +541,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest result = - new com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest(this); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageToken_ = pageToken_; @@ -599,50 +554,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -677,9 +628,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -691,24 +640,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -717,25 +662,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -743,73 +685,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -817,8 +746,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -827,13 +754,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -842,8 +769,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -852,14 +777,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -867,8 +793,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -877,22 +801,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -901,18 +823,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -921,16 +840,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -938,8 +857,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -947,13 +864,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -962,8 +879,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -971,14 +886,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -986,8 +902,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -995,22 +909,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -1018,18 +930,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -1037,25 +946,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1063,7 +970,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -1071,8 +977,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1080,19 +984,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1100,18 +1001,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,32 +1021,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,8 +1056,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java index a5bd85c0..0ea02890 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListFindingsRequestOrBuilder - extends +public interface ListFindingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -67,13 +40,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -82,14 +52,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -97,13 +65,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -111,14 +76,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -126,7 +89,6 @@ public interface ListFindingsRequestOrBuilder
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java index db67ac92..8c0f649d 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Response for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingsResponse} */ -public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) ListFindingsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsResponse.newBuilder() to construct. private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsResponse() { findings_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListFindingsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findings_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - findings_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.Finding.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findings_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + findings_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.Finding.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -115,27 +94,22 @@ private ListFindingsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.Builder.class); } public static final int FINDINGS_FIELD_NUMBER = 1; private java.util.List findings_; /** - * - * *
    * The list of Findings returned.
    * 
@@ -147,8 +121,6 @@ public java.util.List getFi return findings_; } /** - * - * *
    * The list of Findings returned.
    * 
@@ -156,13 +128,11 @@ public java.util.List getFi * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFindingsOrBuilderList() { return findings_; } /** - * - * *
    * The list of Findings returned.
    * 
@@ -174,8 +144,6 @@ public int getFindingsCount() { return findings_.size(); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -187,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding getFindings(int index return findings_.get(index); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -204,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsO public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -253,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < findings_.size(); i++) { output.writeMessage(1, findings_.get(i)); } @@ -282,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findings_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, findings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -295,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse other = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) obj; + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse other = (com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) obj; - if (!getFindingsList().equals(other.getFindingsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getFindingsList() + .equals(other.getFindingsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.newBuilder() @@ -456,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFindingsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.getDefaultInstance(); } @@ -504,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse build() @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse result = - new com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse(this); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse result = new com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse(this); int from_bitField0_ = bitField0_; if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -525,50 +478,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.getDefaultInstance()) return this; if (findingsBuilder_ == null) { if (!other.findings_.isEmpty()) { if (findings_.isEmpty()) { @@ -587,10 +536,9 @@ public Builder mergeFrom( findingsBuilder_ = null; findings_ = other.findings_; bitField0_ = (bitField0_ & ~0x00000001); - findingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFindingsFieldBuilder() - : null; + findingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFindingsFieldBuilder() : null; } else { findingsBuilder_.addAllMessages(other.findings_); } @@ -619,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -630,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List findings_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFindingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findings_ = - new java.util.ArrayList(findings_); + findings_ = new java.util.ArrayList(findings_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Finding, - com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, - com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder> - findingsBuilder_; + com.google.cloud.websecurityscanner.v1alpha.Finding, com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder> findingsBuilder_; /** - * - * *
      * The list of Findings returned.
      * 
@@ -667,8 +605,6 @@ public java.util.List getFi } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -683,8 +619,6 @@ public int getFindingsCount() { } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -699,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding getFindings(int index } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -722,8 +654,6 @@ public Builder setFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -742,8 +672,6 @@ public Builder setFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -764,8 +692,6 @@ public Builder addFindings(com.google.cloud.websecurityscanner.v1alpha.Finding v return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -787,8 +713,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -807,8 +731,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -827,8 +749,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -839,7 +759,8 @@ public Builder addAllFindings( java.lang.Iterable values) { if (findingsBuilder_ == null) { ensureFindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, findings_); onChanged(); } else { findingsBuilder_.addAllMessages(values); @@ -847,8 +768,6 @@ public Builder addAllFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -866,8 +785,6 @@ public Builder clearFindings() { return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -885,8 +802,6 @@ public Builder removeFindings(int index) { return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -898,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder getFindingsBu return getFindingsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of Findings returned.
      * 
@@ -909,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder getFindingsBu public com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsOrBuilder( int index) { if (findingsBuilder_ == null) { - return findings_.get(index); - } else { + return findings_.get(index); } else { return findingsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ - public java.util.List - getFindingsOrBuilderList() { + public java.util.List + getFindingsOrBuilderList() { if (findingsBuilder_ != null) { return findingsBuilder_.getMessageOrBuilderList(); } else { @@ -932,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsO } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -941,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsO * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder addFindingsBuilder() { - return getFindingsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance()); + return getFindingsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance()); } /** - * - * *
      * The list of Findings returned.
      * 
@@ -955,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder addFindingsBu */ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder addFindingsBuilder( int index) { - return getFindingsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance()); + return getFindingsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance()); } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ - public java.util.List - getFindingsBuilderList() { + public java.util.List + getFindingsBuilderList() { return getFindingsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Finding, - com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, - com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.Finding, com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder> getFindingsFieldBuilder() { if (findingsBuilder_ == null) { - findingsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Finding, - com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, - com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder>( - findings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + findingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.Finding, com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder>( + findings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); findings_ = null; } return findingsBuilder_; @@ -992,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder addFindingsBu private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1015,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1038,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) - private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java index b3f1b237..08fb2b10 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListFindingsResponseOrBuilder - extends +public interface ListFindingsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ - java.util.List getFindingsList(); + java.util.List + getFindingsList(); /** - * - * *
    * The list of Findings returned.
    * 
@@ -44,8 +25,6 @@ public interface ListFindingsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1alpha.Finding getFindings(int index); /** - * - * *
    * The list of Findings returned.
    * 
@@ -54,51 +33,43 @@ public interface ListFindingsResponseOrBuilder */ int getFindingsCount(); /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ - java.util.List + java.util.List getFindingsOrBuilderList(); /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ - com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java index c3cc336c..9c830226 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest} */ -public final class ListScanConfigsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) ListScanConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanConfigsRequest.newBuilder() to construct. private ListScanConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanConfigsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListScanConfigsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListScanConfigsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,8 +156,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -193,7 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -202,15 +171,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -218,15 +186,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -237,8 +206,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -246,7 +213,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -255,7 +221,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest other = - (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest other = (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,145 +306,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -489,16 +447,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.getDefaultInstance(); } @java.lang.Override @@ -512,8 +468,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest result = - new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest(this); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -525,51 +480,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -600,9 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -614,23 +562,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -639,24 +583,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -664,70 +605,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -735,8 +663,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -744,13 +670,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -759,8 +685,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -768,14 +692,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -783,8 +708,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -792,22 +715,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -815,18 +736,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -834,25 +752,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -860,7 +776,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -868,8 +783,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -877,19 +790,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -897,18 +807,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -918,32 +827,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -955,8 +862,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java index 7cfe3b7f..57f8ce2d 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListScanConfigsRequestOrBuilder - extends +public interface ListScanConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -64,13 +37,10 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -78,14 +48,12 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -93,7 +61,6 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java index c891010e..3214eeb4 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Response for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse} */ -public final class ListScanConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) ListScanConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanConfigsResponse.newBuilder() to construct. private ListScanConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanConfigsResponse() { scanConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanConfigsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,28 @@ private ListScanConfigsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig>(); - mutable_bitField0_ |= 0x00000001; - } - scanConfigs_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + scanConfigs_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,7 +84,8 @@ private ListScanConfigsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); @@ -116,27 +94,22 @@ private ListScanConfigsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.Builder.class); } public static final int SCAN_CONFIGS_FIELD_NUMBER = 1; private java.util.List scanConfigs_; /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -144,13 +117,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ @java.lang.Override - public java.util.List - getScanConfigsList() { + public java.util.List getScanConfigsList() { return scanConfigs_; } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -158,13 +128,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanConfigsOrBuilderList() { return scanConfigs_; } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -176,8 +144,6 @@ public int getScanConfigsCount() { return scanConfigs_.size(); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -189,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfigs(int return scanConfigs_.get(index); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -206,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -223,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -255,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < scanConfigs_.size(); i++) { output.writeMessage(1, scanConfigs_.get(i)); } @@ -284,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, scanConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -297,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse other = - (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) obj; + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse other = (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) obj; - if (!getScanConfigsList().equals(other.getScanConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getScanConfigsList() + .equals(other.getScanConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,147 +293,135 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getScanConfigsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,16 +437,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.getDefaultInstance(); } @java.lang.Override @@ -509,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse build @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse result = - new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse(this); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse result = new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse(this); int from_bitField0_ = bitField0_; if (scanConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -530,51 +478,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.getDefaultInstance()) return this; if (scanConfigsBuilder_ == null) { if (!other.scanConfigs_.isEmpty()) { if (scanConfigs_.isEmpty()) { @@ -593,10 +536,9 @@ public Builder mergeFrom( scanConfigsBuilder_ = null; scanConfigs_ = other.scanConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - scanConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getScanConfigsFieldBuilder() - : null; + scanConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getScanConfigsFieldBuilder() : null; } else { scanConfigsBuilder_.addAllMessages(other.scanConfigs_); } @@ -625,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -636,38 +576,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List scanConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureScanConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = - new java.util.ArrayList( - scanConfigs_); + scanConfigs_ = new java.util.ArrayList(scanConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> - scanConfigsBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> scanConfigsBuilder_; /** - * - * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsList() { + public java.util.List getScanConfigsList() { if (scanConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(scanConfigs_); } else { @@ -675,8 +605,6 @@ private void ensureScanConfigsIsMutable() { } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -691,8 +619,6 @@ public int getScanConfigsCount() { } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -707,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfigs(int } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -730,8 +654,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -750,8 +672,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -772,8 +692,6 @@ public Builder addScanConfigs(com.google.cloud.websecurityscanner.v1alpha.ScanCo return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -795,8 +713,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -815,8 +731,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -835,8 +749,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -844,11 +756,11 @@ public Builder addScanConfigs( * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ public Builder addAllScanConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (scanConfigsBuilder_ == null) { ensureScanConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scanConfigs_); onChanged(); } else { scanConfigsBuilder_.addAllMessages(values); @@ -856,8 +768,6 @@ public Builder addAllScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -875,8 +785,6 @@ public Builder clearScanConfigs() { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -894,8 +802,6 @@ public Builder removeScanConfigs(int index) { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -907,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanCon return getScanConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -918,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanCon public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigsOrBuilder( int index) { if (scanConfigsBuilder_ == null) { - return scanConfigs_.get(index); - } else { + return scanConfigs_.get(index); } else { return scanConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsOrBuilderList() { + public java.util.List + getScanConfigsOrBuilderList() { if (scanConfigsBuilder_ != null) { return scanConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -941,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -950,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder addScanConfigsBuilder() { - return getScanConfigsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -964,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder addScanCon */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder addScanConfigsBuilder( int index) { - return getScanConfigsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsBuilderList() { + public java.util.List + getScanConfigsBuilderList() { return getScanConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> getScanConfigsFieldBuilder() { if (scanConfigsBuilder_ == null) { - scanConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( - scanConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + scanConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( + scanConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); scanConfigs_ = null; } return scanConfigsBuilder_; @@ -1001,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder addScanCon private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1024,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1047,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) - private static final com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java index d44d28c3..03bb5e60 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListScanConfigsResponseOrBuilder - extends +public interface ListScanConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ - java.util.List getScanConfigsList(); + java.util.List + getScanConfigsList(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -44,8 +25,6 @@ public interface ListScanConfigsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfigs(int index); /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -54,19 +33,15 @@ public interface ListScanConfigsResponseOrBuilder */ int getScanConfigsCount(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ - java.util.List + java.util.List getScanConfigsOrBuilderList(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -77,29 +52,24 @@ com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigsOr int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java index e595bbab..9df40675 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest} */ -public final class ListScanRunsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanRunsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) ListScanRunsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanRunsRequest.newBuilder() to construct. private ListScanRunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanRunsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanRunsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListScanRunsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListScanRunsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,8 +156,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -193,7 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -202,15 +171,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -218,15 +186,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -237,8 +206,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -246,7 +213,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -255,7 +221,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest other = - (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest other = (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,127 +306,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.newBuilder() @@ -465,15 +424,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,14 +447,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.getDefaultInstance(); } @@ -509,8 +468,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest result = - new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest(this); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -522,50 +480,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -596,9 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -610,23 +562,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -635,24 +583,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -660,70 +605,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -731,8 +663,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -740,13 +670,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -755,8 +685,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -764,14 +692,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -779,8 +708,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -788,22 +715,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -811,18 +736,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -830,25 +752,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -856,7 +776,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -864,8 +783,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -873,19 +790,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -893,18 +807,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -914,32 +827,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,8 +862,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java index 030d5799..9d35ecb9 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListScanRunsRequestOrBuilder - extends +public interface ListScanRunsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -64,13 +37,10 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -78,14 +48,12 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -93,7 +61,6 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java index 892663f5..61db79ae 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Response for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse} */ -public final class ListScanRunsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanRunsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) ListScanRunsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanRunsResponse.newBuilder() to construct. private ListScanRunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanRunsResponse() { scanRuns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanRunsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListScanRunsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanRuns_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - scanRuns_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanRuns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + scanRuns_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListScanRunsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); @@ -115,27 +94,22 @@ private ListScanRunsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.Builder.class); } public static final int SCAN_RUNS_FIELD_NUMBER = 1; private java.util.List scanRuns_; /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -147,8 +121,6 @@ public java.util.List getSc return scanRuns_; } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -156,13 +128,11 @@ public java.util.List getSc * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanRunsOrBuilderList() { return scanRuns_; } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -174,8 +144,6 @@ public int getScanRunsCount() { return scanRuns_.size(); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -187,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRuns(int index return scanRuns_.get(index); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -204,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsO public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -253,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < scanRuns_.size(); i++) { output.writeMessage(1, scanRuns_.get(i)); } @@ -282,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanRuns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanRuns_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, scanRuns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -295,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse other = - (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) obj; + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse other = (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) obj; - if (!getScanRunsList().equals(other.getScanRunsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getScanRunsList() + .equals(other.getScanRunsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.newBuilder() @@ -456,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getScanRunsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.getDefaultInstance(); } @@ -504,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse build() @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse result = - new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse(this); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse result = new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse(this); int from_bitField0_ = bitField0_; if (scanRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -525,50 +478,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.getDefaultInstance()) return this; if (scanRunsBuilder_ == null) { if (!other.scanRuns_.isEmpty()) { if (scanRuns_.isEmpty()) { @@ -587,10 +536,9 @@ public Builder mergeFrom( scanRunsBuilder_ = null; scanRuns_ = other.scanRuns_; bitField0_ = (bitField0_ & ~0x00000001); - scanRunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getScanRunsFieldBuilder() - : null; + scanRunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getScanRunsFieldBuilder() : null; } else { scanRunsBuilder_.addAllMessages(other.scanRuns_); } @@ -619,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -630,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List scanRuns_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureScanRunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanRuns_ = - new java.util.ArrayList(scanRuns_); + scanRuns_ = new java.util.ArrayList(scanRuns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, - com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> - scanRunsBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> scanRunsBuilder_; /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -667,8 +605,6 @@ public java.util.List getSc } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -683,8 +619,6 @@ public int getScanRunsCount() { } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -699,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRuns(int index } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -722,8 +654,6 @@ public Builder setScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -742,8 +672,6 @@ public Builder setScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -764,8 +692,6 @@ public Builder addScanRuns(com.google.cloud.websecurityscanner.v1alpha.ScanRun v return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -787,8 +713,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -807,8 +731,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -827,8 +749,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -839,7 +759,8 @@ public Builder addAllScanRuns( java.lang.Iterable values) { if (scanRunsBuilder_ == null) { ensureScanRunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanRuns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scanRuns_); onChanged(); } else { scanRunsBuilder_.addAllMessages(values); @@ -847,8 +768,6 @@ public Builder addAllScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -866,8 +785,6 @@ public Builder clearScanRuns() { return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -885,8 +802,6 @@ public Builder removeScanRuns(int index) { return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -898,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder getScanRunsBu return getScanRunsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -909,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder getScanRunsBu public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsOrBuilder( int index) { if (scanRunsBuilder_ == null) { - return scanRuns_.get(index); - } else { + return scanRuns_.get(index); } else { return scanRunsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsOrBuilderList() { + public java.util.List + getScanRunsOrBuilderList() { if (scanRunsBuilder_ != null) { return scanRunsBuilder_.getMessageOrBuilderList(); } else { @@ -932,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsO } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -941,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsO * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder addScanRunsBuilder() { - return getScanRunsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()); + return getScanRunsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()); } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -955,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder addScanRunsBu */ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder addScanRunsBuilder( int index) { - return getScanRunsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()); + return getScanRunsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()); } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsBuilderList() { + public java.util.List + getScanRunsBuilderList() { return getScanRunsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, - com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> getScanRunsFieldBuilder() { if (scanRunsBuilder_ == null) { - scanRunsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, - com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder>( - scanRuns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + scanRunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder>( + scanRuns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); scanRuns_ = null; } return scanRunsBuilder_; @@ -992,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder addScanRunsBu private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1015,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1038,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) - private static final com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java index 457cb69f..2a709997 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListScanRunsResponseOrBuilder - extends +public interface ListScanRunsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ - java.util.List getScanRunsList(); + java.util.List + getScanRunsList(); /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -44,8 +25,6 @@ public interface ListScanRunsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRuns(int index); /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -54,51 +33,43 @@ public interface ListScanRunsResponseOrBuilder */ int getScanRunsCount(); /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ - java.util.List + java.util.List getScanRunsOrBuilderList(); /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ - com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java index eb2983e5..84d2aba8 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Information reported for an outdated library.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.OutdatedLibrary} */ -public final class OutdatedLibrary extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutdatedLibrary extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) OutdatedLibraryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutdatedLibrary.newBuilder() to construct. private OutdatedLibrary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutdatedLibrary() { libraryName_ = ""; version_ = ""; @@ -45,15 +27,16 @@ private OutdatedLibrary() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutdatedLibrary(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OutdatedLibrary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,37 +56,34 @@ private OutdatedLibrary( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - libraryName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + libraryName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - learnMoreUrls_.add(s); - break; + version_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + learnMoreUrls_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,7 +91,8 @@ private OutdatedLibrary( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = learnMoreUrls_.getUnmodifiableView(); @@ -120,33 +101,27 @@ private OutdatedLibrary( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.class, - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder.class); } public static final int LIBRARY_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object libraryName_; /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The libraryName. */ @java.lang.Override @@ -155,29 +130,29 @@ public java.lang.String getLibraryName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; } } /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ @java.lang.Override - public com.google.protobuf.ByteString getLibraryNameBytes() { + public com.google.protobuf.ByteString + getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); libraryName_ = b; return b; } else { @@ -188,14 +163,11 @@ public com.google.protobuf.ByteString getLibraryNameBytes() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The version. */ @java.lang.Override @@ -204,29 +176,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -237,42 +209,34 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int LEARN_MORE_URLS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList learnMoreUrls_; /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList + getLearnMoreUrlsList() { return learnMoreUrls_; } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -280,23 +244,20 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,7 +269,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(libraryName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, libraryName_); } @@ -349,17 +311,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary other = - (com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) obj; + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary other = (com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) obj; - if (!getLibraryName().equals(other.getLibraryName())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (!getLearnMoreUrlsList().equals(other.getLearnMoreUrlsList())) return false; + if (!getLibraryName() + .equals(other.getLibraryName())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getLearnMoreUrlsList() + .equals(other.getLearnMoreUrlsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -385,127 +349,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information reported for an outdated library.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.OutdatedLibrary} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.class, - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.newBuilder() @@ -513,15 +467,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -535,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; } @java.lang.Override @@ -556,8 +511,7 @@ public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary result = - new com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary(this); + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary result = new com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary(this); int from_bitField0_ = bitField0_; result.libraryName_ = libraryName_; result.version_ = version_; @@ -574,39 +528,38 @@ public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary)other); } else { super.mergeFrom(other); return this; @@ -614,8 +567,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance()) return this; if (!other.getLibraryName().isEmpty()) { libraryName_ = other.libraryName_; onChanged(); @@ -653,8 +605,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -663,25 +614,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object libraryName_ = ""; /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return The libraryName. */ public java.lang.String getLibraryName() { java.lang.Object ref = libraryName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; @@ -690,21 +638,20 @@ public java.lang.String getLibraryName() { } } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ - public com.google.protobuf.ByteString getLibraryNameBytes() { + public com.google.protobuf.ByteString + getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); libraryName_ = b; return b; } else { @@ -712,61 +659,54 @@ public com.google.protobuf.ByteString getLibraryNameBytes() { } } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @param value The libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryName(java.lang.String value) { + public Builder setLibraryName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + libraryName_ = value; onChanged(); return this; } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return This builder for chaining. */ public Builder clearLibraryName() { - + libraryName_ = getDefaultInstance().getLibraryName(); onChanged(); return this; } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @param value The bytes for libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { + public Builder setLibraryNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + libraryName_ = value; onChanged(); return this; @@ -774,20 +714,18 @@ public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object version_ = ""; /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -796,21 +734,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -818,112 +755,95 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList learnMoreUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLearnMoreUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(learnMoreUrls_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList + getLearnMoreUrlsList() { return learnMoreUrls_.getUnmodifiableView(); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -931,90 +851,80 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index to set the value at. * @param value The learnMoreUrls to set. * @return This builder for chaining. */ - public Builder setLearnMoreUrls(int index, java.lang.String value) { + public Builder setLearnMoreUrls( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.set(index, value); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param value The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrls(java.lang.String value) { + public Builder addLearnMoreUrls( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param values The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addAllLearnMoreUrls(java.lang.Iterable values) { + public Builder addAllLearnMoreUrls( + java.lang.Iterable values) { ensureLearnMoreUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, learnMoreUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, learnMoreUrls_); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return This builder for chaining. */ public Builder clearLearnMoreUrls() { @@ -1024,30 +934,28 @@ public Builder clearLearnMoreUrls() { return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param value The bytes of the learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrlsBytes(com.google.protobuf.ByteString value) { + public Builder addLearnMoreUrlsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1057,12 +965,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) private static final com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary(); } @@ -1071,16 +979,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutdatedLibrary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutdatedLibrary(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutdatedLibrary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutdatedLibrary(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1095,4 +1003,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java index c12b9905..727833b2 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java @@ -1,126 +1,90 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface OutdatedLibraryOrBuilder - extends +public interface OutdatedLibraryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The libraryName. */ java.lang.String getLibraryName(); /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ - com.google.protobuf.ByteString getLibraryNameBytes(); + com.google.protobuf.ByteString + getLibraryNameBytes(); /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - java.util.List getLearnMoreUrlsList(); + java.util.List + getLearnMoreUrlsList(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ int getLearnMoreUrlsCount(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ java.lang.String getLearnMoreUrls(int index); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index); + com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java index 3f1d5d32..edab4a05 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/scan_config.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * A ScanConfig resource contains the configurations to launch a scan.
  * next id: 12
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig}
  */
-public final class ScanConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig)
     ScanConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanConfig.newBuilder() to construct.
   private ScanConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanConfig() {
     name_ = "";
     displayName_ = "";
@@ -49,15 +31,16 @@ private ScanConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,138 +60,116 @@ private ScanConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
+            displayName_ = s;
+            break;
+          }
+          case 24: {
+
+            maxQps_ = input.readInt32();
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              startingUrls_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 24:
-            {
-              maxQps_ = input.readInt32();
-              break;
+            startingUrls_.add(s);
+            break;
+          }
+          case 42: {
+            com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder subBuilder = null;
+            if (authentication_ != null) {
+              subBuilder = authentication_.toBuilder();
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                startingUrls_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              startingUrls_.add(s);
-              break;
+            authentication_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(authentication_);
+              authentication_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder
-                  subBuilder = null;
-              if (authentication_ != null) {
-                subBuilder = authentication_.toBuilder();
-              }
-              authentication_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(authentication_);
-                authentication_ = subBuilder.buildPartial();
-              }
 
-              break;
-            }
-          case 48:
-            {
-              int rawValue = input.readEnum();
+            break;
+          }
+          case 48: {
+            int rawValue = input.readEnum();
 
-              userAgent_ = rawValue;
-              break;
+            userAgent_ = rawValue;
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              blacklistPatterns_.add(s);
-              break;
+            blacklistPatterns_.add(s);
+            break;
+          }
+          case 66: {
+            com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder subBuilder = null;
+            if (schedule_ != null) {
+              subBuilder = schedule_.toBuilder();
+            }
+            schedule_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(schedule_);
+              schedule_ = subBuilder.buildPartial();
             }
-          case 66:
-            {
-              com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder subBuilder =
-                  null;
-              if (schedule_ != null) {
-                subBuilder = schedule_.toBuilder();
-              }
-              schedule_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(schedule_);
-                schedule_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 72: {
+            int rawValue = input.readEnum();
+            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+              targetPlatforms_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000004;
             }
-          case 72:
-            {
+            targetPlatforms_.add(rawValue);
+            break;
+          }
+          case 74: {
+            int length = input.readRawVarint32();
+            int oldLimit = input.pushLimit(length);
+            while(input.getBytesUntilLimit() > 0) {
               int rawValue = input.readEnum();
               if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                 targetPlatforms_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000004;
               }
               targetPlatforms_.add(rawValue);
-              break;
             }
-          case 74:
-            {
-              int length = input.readRawVarint32();
-              int oldLimit = input.pushLimit(length);
-              while (input.getBytesUntilLimit() > 0) {
-                int rawValue = input.readEnum();
-                if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-                  targetPlatforms_ = new java.util.ArrayList();
-                  mutable_bitField0_ |= 0x00000004;
-                }
-                targetPlatforms_.add(rawValue);
-              }
-              input.popLimit(oldLimit);
-              break;
+            input.popLimit(oldLimit);
+            break;
+          }
+          case 90: {
+            com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder subBuilder = null;
+            if (latestRun_ != null) {
+              subBuilder = latestRun_.toBuilder();
             }
-          case 90:
-            {
-              com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder subBuilder = null;
-              if (latestRun_ != null) {
-                subBuilder = latestRun_.toBuilder();
-              }
-              latestRun_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(latestRun_);
-                latestRun_ = subBuilder.buildPartial();
-              }
-
-              break;
+            latestRun_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(latestRun_);
+              latestRun_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -216,7 +177,8 @@ private ScanConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         startingUrls_ = startingUrls_.getUnmodifiableView();
@@ -231,35 +193,29 @@ private ScanConfig(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class,
-            com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder.class);
+            com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Type of user agents used for scanning.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent} */ - public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { + public enum UserAgent + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -268,8 +224,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ USER_AGENT_UNSPECIFIED(0), /** - * - * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -278,8 +232,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_LINUX(1), /** - * - * *
      * Chrome on Android.
      * 
@@ -288,8 +240,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_ANDROID(2), /** - * - * *
      * Safari on IPhone.
      * 
@@ -301,8 +251,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -311,8 +259,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int USER_AGENT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -321,8 +267,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_LINUX_VALUE = 1; /** - * - * *
      * Chrome on Android.
      * 
@@ -331,8 +275,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_ANDROID_VALUE = 2; /** - * - * *
      * Safari on IPhone.
      * 
@@ -341,6 +283,7 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SAFARI_IPHONE_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -365,53 +308,50 @@ public static UserAgent valueOf(int value) { */ public static UserAgent forNumber(int value) { switch (value) { - case 0: - return USER_AGENT_UNSPECIFIED; - case 1: - return CHROME_LINUX; - case 2: - return CHROME_ANDROID; - case 3: - return SAFARI_IPHONE; - default: - return null; + case 0: return USER_AGENT_UNSPECIFIED; + case 1: return CHROME_LINUX; + case 2: return CHROME_ANDROID; + case 3: return SAFARI_IPHONE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + UserAgent> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UserAgent findValueByNumber(int number) { + return UserAgent.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public UserAgent findValueByNumber(int number) { - return UserAgent.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDescriptor().getEnumTypes().get(0); } private static final UserAgent[] VALUES = values(); - public static UserAgent valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static UserAgent valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -429,18 +369,15 @@ private UserAgent(int value) { } /** - * - * *
    * Cloud platforms supported by Cloud Web Security Scanner.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform} */ - public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { + public enum TargetPlatform + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The target platform is unknown. Requests with this enum value will be
      * rejected with INVALID_ARGUMENT error.
@@ -450,8 +387,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum {
      */
     TARGET_PLATFORM_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Google App Engine service.
      * 
@@ -460,8 +395,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { */ APP_ENGINE(1), /** - * - * *
      * Google Compute Engine service.
      * 
@@ -473,8 +406,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The target platform is unknown. Requests with this enum value will be
      * rejected with INVALID_ARGUMENT error.
@@ -484,8 +415,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TARGET_PLATFORM_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Google App Engine service.
      * 
@@ -494,8 +423,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int APP_ENGINE_VALUE = 1; /** - * - * *
      * Google Compute Engine service.
      * 
@@ -504,6 +431,7 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPUTE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -528,51 +456,49 @@ public static TargetPlatform valueOf(int value) { */ public static TargetPlatform forNumber(int value) { switch (value) { - case 0: - return TARGET_PLATFORM_UNSPECIFIED; - case 1: - return APP_ENGINE; - case 2: - return COMPUTE; - default: - return null; + case 0: return TARGET_PLATFORM_UNSPECIFIED; + case 1: return APP_ENGINE; + case 2: return COMPUTE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + TargetPlatform> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TargetPlatform findValueByNumber(int number) { + return TargetPlatform.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TargetPlatform findValueByNumber(int number) { - return TargetPlatform.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDescriptor().getEnumTypes().get(1); } private static final TargetPlatform[] VALUES = values(); - public static TargetPlatform valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TargetPlatform valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -589,132 +515,97 @@ private TargetPlatform(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform) } - public interface AuthenticationOrBuilder - extends + public interface AuthenticationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return Whether the googleAccount field is set. */ boolean hasGoogleAccount(); /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return The googleAccount. */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - getGoogleAccount(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getGoogleAccount(); /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder - getGoogleAccountOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ boolean hasCustomAccount(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - getCustomAccount(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getCustomAccount(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder - getCustomAccountOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder(); - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.AuthenticationCase - getAuthenticationCase(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.AuthenticationCase getAuthenticationCase(); } /** - * - * *
    * Scan authentication configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication} */ - public static final class Authentication extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Authentication extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) AuthenticationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Authentication.newBuilder() to construct. private Authentication(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Authentication() {} + private Authentication() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Authentication(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Authentication( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -733,67 +624,41 @@ private Authentication( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 1) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 1; - break; + case 10: { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder subBuilder = null; + if (authenticationCase_ == 1) { + subBuilder = ((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_).toBuilder(); } - case 18: - { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 2) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 2; - break; + authentication_ = + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_); + authentication_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + authenticationCase_ = 1; + break; + } + case 18: { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder subBuilder = null; + if (authenticationCase_ == 2) { + subBuilder = ((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_).toBuilder(); + } + authentication_ = + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_); + authentication_ = subBuilder.buildPartial(); + } + authenticationCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -801,109 +666,88 @@ private Authentication( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.class, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder.class); } - public interface GoogleAccountOrBuilder - extends + public interface GoogleAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ java.lang.String getPassword(); /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); } /** - * - * *
      * Describes authentication configuration that uses a Google account.
      * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount} */ - public static final class GoogleAccount extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GoogleAccount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) GoogleAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GoogleAccount.newBuilder() to construct. private GoogleAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GoogleAccount() { username_ = ""; password_ = ""; @@ -911,15 +755,16 @@ private GoogleAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GoogleAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GoogleAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -938,27 +783,25 @@ private GoogleAccount( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + password_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -966,42 +809,34 @@ private GoogleAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .class, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ @java.lang.Override @@ -1010,29 +845,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1043,17 +878,12 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ @java.lang.Override @@ -1062,32 +892,30 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1096,7 +924,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1108,7 +935,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -1138,19 +966,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount other = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) - obj; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount other = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) obj; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1171,116 +997,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1290,53 +1088,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Describes authentication configuration that uses a Google account.
        * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount.class, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1348,23 +1137,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - build() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - result = buildPartial(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount build() { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1372,12 +1157,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - result = - new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount(this); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount buildPartial() { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount result = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount(this); result.username_ = username_; result.password_ = password_; onBuilt(); @@ -1388,58 +1169,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - other); + if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) { + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -1463,15 +1232,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - parsedMessage = null; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1483,20 +1248,18 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1505,21 +1268,20 @@ public java.lang.String getUsername() { } } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1527,61 +1289,54 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -1589,23 +1344,19 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1614,24 +1365,21 @@ public java.lang.String getPassword() { } } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1639,75 +1387,61 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1720,36 +1454,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) - private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount(); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GoogleAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GoogleAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GoogleAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1761,118 +1489,94 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CustomAccountOrBuilder - extends + public interface CustomAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ java.lang.String getPassword(); /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The loginUrl. */ java.lang.String getLoginUrl(); /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for loginUrl. */ - com.google.protobuf.ByteString getLoginUrlBytes(); + com.google.protobuf.ByteString + getLoginUrlBytes(); } /** - * - * *
      * Describes authentication configuration that uses a custom account.
      * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount} */ - public static final class CustomAccount extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CustomAccount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) CustomAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomAccount.newBuilder() to construct. private CustomAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CustomAccount() { username_ = ""; password_ = ""; @@ -1881,15 +1585,16 @@ private CustomAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CustomAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CustomAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1908,34 +1613,31 @@ private CustomAccount( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + password_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - loginUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + loginUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1943,42 +1645,34 @@ private CustomAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .class, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ @java.lang.Override @@ -1987,29 +1681,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -2020,17 +1714,12 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ @java.lang.Override @@ -2039,32 +1728,30 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -2075,14 +1762,11 @@ public com.google.protobuf.ByteString getPasswordBytes() { public static final int LOGIN_URL_FIELD_NUMBER = 3; private volatile java.lang.Object loginUrl_; /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The loginUrl. */ @java.lang.Override @@ -2091,29 +1775,29 @@ public java.lang.String getLoginUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; } } /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for loginUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getLoginUrlBytes() { + public com.google.protobuf.ByteString + getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); loginUrl_ = b; return b; } else { @@ -2122,7 +1806,6 @@ public com.google.protobuf.ByteString getLoginUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2134,7 +1817,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -2170,20 +1854,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount other = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) - obj; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount other = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) obj; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; - if (!getLoginUrl().equals(other.getLoginUrl())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; + if (!getLoginUrl() + .equals(other.getLoginUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2206,116 +1889,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2325,53 +1980,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Describes authentication configuration that uses a custom account.
        * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount.class, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2385,23 +2031,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - build() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - result = buildPartial(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount build() { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2409,12 +2051,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - result = - new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount(this); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount buildPartial() { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount result = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount(this); result.username_ = username_; result.password_ = password_; result.loginUrl_ = loginUrl_; @@ -2426,58 +2064,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - other); + if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) { + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -2505,15 +2131,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - parsedMessage = null; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2525,20 +2147,18 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -2547,21 +2167,20 @@ public java.lang.String getUsername() { } } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -2569,61 +2188,54 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -2631,23 +2243,19 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -2656,24 +2264,21 @@ public java.lang.String getPassword() { } } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -2681,70 +2286,57 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; @@ -2752,20 +2344,18 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { private java.lang.Object loginUrl_ = ""; /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The loginUrl. */ public java.lang.String getLoginUrl() { java.lang.Object ref = loginUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; @@ -2774,21 +2364,20 @@ public java.lang.String getLoginUrl() { } } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for loginUrl. */ - public com.google.protobuf.ByteString getLoginUrlBytes() { + public com.google.protobuf.ByteString + getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); loginUrl_ = b; return b; } else { @@ -2796,66 +2385,58 @@ public com.google.protobuf.ByteString getLoginUrlBytes() { } } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrl(java.lang.String value) { + public Builder setLoginUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + loginUrl_ = value; onChanged(); return this; } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLoginUrl() { - + loginUrl_ = getDefaultInstance().getLoginUrl(); onChanged(); return this; } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrlBytes(com.google.protobuf.ByteString value) { + public Builder setLoginUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + loginUrl_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2868,36 +2449,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) - private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount(); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2909,24 +2484,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int authenticationCase_ = 0; private java.lang.Object authentication_; - public enum AuthenticationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GOOGLE_ACCOUNT(1), CUSTOM_ACCOUNT(2), AUTHENTICATION_NOT_SET(0); private final int value; - private AuthenticationCase(int value) { this.value = value; } @@ -2942,38 +2514,30 @@ public static AuthenticationCase valueOf(int value) { public static AuthenticationCase forNumber(int value) { switch (value) { - case 1: - return GOOGLE_ACCOUNT; - case 2: - return CUSTOM_ACCOUNT; - case 0: - return AUTHENTICATION_NOT_SET; - default: - return null; + case 1: return GOOGLE_ACCOUNT; + case 2: return CUSTOM_ACCOUNT; + case 0: return AUTHENTICATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AuthenticationCase getAuthenticationCase() { - return AuthenticationCase.forNumber(authenticationCase_); + public AuthenticationCase + getAuthenticationCase() { + return AuthenticationCase.forNumber( + authenticationCase_); } public static final int GOOGLE_ACCOUNT_FIELD_NUMBER = 1; /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return Whether the googleAccount field is set. */ @java.lang.Override @@ -2981,63 +2545,42 @@ public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - getGoogleAccount() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccountOrBuilder - getGoogleAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } public static final int CUSTOM_ACCOUNT_FIELD_NUMBER = 2; /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ @java.lang.Override @@ -3045,53 +2588,36 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - getCustomAccount() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getCustomAccount() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccountOrBuilder - getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3103,18 +2629,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (authenticationCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) - authentication_); + output.writeMessage(1, (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_); } if (authenticationCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) - authentication_); + output.writeMessage(2, (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_); } unknownFields.writeTo(output); } @@ -3126,20 +2647,12 @@ public int getSerializedSize() { size = 0; if (authenticationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - authentication_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_); } if (authenticationCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - authentication_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3149,21 +2662,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication other = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) obj; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication other = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) obj; if (!getAuthenticationCase().equals(other.getAuthenticationCase())) return false; switch (authenticationCase_) { case 1: - if (!getGoogleAccount().equals(other.getGoogleAccount())) return false; + if (!getGoogleAccount() + .equals(other.getGoogleAccount())) return false; break; case 2: - if (!getCustomAccount().equals(other.getCustomAccount())) return false; + if (!getCustomAccount() + .equals(other.getCustomAccount())) return false; break; case 0: default: @@ -3197,95 +2711,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3295,50 +2801,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Scan authentication configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.class, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder - .class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3348,22 +2848,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication build() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result = - buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3372,8 +2869,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication bui @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result = - new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication(this); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication(this); if (authenticationCase_ == 1) { if (googleAccountBuilder_ == null) { result.authentication_ = authentication_; @@ -3397,69 +2893,58 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) other); + if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) { + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance()) return this; switch (other.getAuthenticationCase()) { - case GOOGLE_ACCOUNT: - { - mergeGoogleAccount(other.getGoogleAccount()); - break; - } - case CUSTOM_ACCOUNT: - { - mergeCustomAccount(other.getCustomAccount()); - break; - } - case AUTHENTICATION_NOT_SET: - { - break; - } + case GOOGLE_ACCOUNT: { + mergeGoogleAccount(other.getGoogleAccount()); + break; + } + case CUSTOM_ACCOUNT: { + mergeCustomAccount(other.getCustomAccount()); + break; + } + case AUTHENTICATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3480,9 +2965,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3491,12 +2974,12 @@ public Builder mergeFrom( } return this; } - private int authenticationCase_ = 0; private java.lang.Object authentication_; - - public AuthenticationCase getAuthenticationCase() { - return AuthenticationCase.forNumber(authenticationCase_); + public AuthenticationCase + getAuthenticationCase() { + return AuthenticationCase.forNumber( + authenticationCase_); } public Builder clearAuthentication() { @@ -3506,24 +2989,15 @@ public Builder clearAuthentication() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccountOrBuilder> - googleAccountBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder> googleAccountBuilder_; /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return Whether the googleAccount field is set. */ @java.lang.Override @@ -3531,51 +3005,35 @@ public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - getGoogleAccount() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { if (googleAccountBuilder_ == null) { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } else { if (authenticationCase_ == 1) { return googleAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - value) { + public Builder setGoogleAccount(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3589,20 +3047,14 @@ public Builder setGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder builderForValue) { if (googleAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -3613,32 +3065,18 @@ public Builder setGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - public Builder mergeGoogleAccount( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - value) { + public Builder mergeGoogleAccount(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { - if (authenticationCase_ == 1 - && authentication_ - != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount.getDefaultInstance()) { - authentication_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .newBuilder( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - authentication_) - .mergeFrom(value) - .buildPartial(); + if (authenticationCase_ == 1 && + authentication_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) { + authentication_ = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.newBuilder((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_) + .mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -3654,15 +3092,11 @@ public Builder mergeGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ public Builder clearGoogleAccount() { if (googleAccountBuilder_ == null) { @@ -3681,111 +3115,67 @@ public Builder clearGoogleAccount() { return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .Builder - getGoogleAccountBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder getGoogleAccountBuilder() { return getGoogleAccountFieldBuilder().getBuilder(); } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccountOrBuilder - getGoogleAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { if ((authenticationCase_ == 1) && (googleAccountBuilder_ != null)) { return googleAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccountOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder> getGoogleAccountFieldBuilder() { if (googleAccountBuilder_ == null) { if (!(authenticationCase_ == 1)) { - authentication_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + authentication_ = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } - googleAccountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .GoogleAccount) - authentication_, + googleAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 1; - onChanged(); - ; + onChanged();; return googleAccountBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccountOrBuilder> - customAccountBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder> customAccountBuilder_; /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ @java.lang.Override @@ -3793,51 +3183,35 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - getCustomAccount() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getCustomAccount() { if (customAccountBuilder_ == null) { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } else { if (authenticationCase_ == 2) { return customAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public Builder setCustomAccount( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - value) { + public Builder setCustomAccount(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount value) { if (customAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3851,20 +3225,14 @@ public Builder setCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ public Builder setCustomAccount( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder builderForValue) { if (customAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -3875,32 +3243,18 @@ public Builder setCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public Builder mergeCustomAccount( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - value) { + public Builder mergeCustomAccount(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount value) { if (customAccountBuilder_ == null) { - if (authenticationCase_ == 2 - && authentication_ - != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount.getDefaultInstance()) { - authentication_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .newBuilder( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - authentication_) - .mergeFrom(value) - .buildPartial(); + if (authenticationCase_ == 2 && + authentication_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) { + authentication_ = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.newBuilder((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_) + .mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -3916,15 +3270,11 @@ public Builder mergeCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ public Builder clearCustomAccount() { if (customAccountBuilder_ == null) { @@ -3943,93 +3293,58 @@ public Builder clearCustomAccount() { return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .Builder - getCustomAccountBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder getCustomAccountBuilder() { return getCustomAccountFieldBuilder().getBuilder(); } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccountOrBuilder - getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { if ((authenticationCase_ == 2) && (customAccountBuilder_ != null)) { return customAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccountOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder> getCustomAccountFieldBuilder() { if (customAccountBuilder_ == null) { if (!(authenticationCase_ == 2)) { - authentication_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + authentication_ = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } - customAccountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .CustomAccount) - authentication_, + customAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 2; - onChanged(); - ; + onChanged();; return customAccountBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4042,33 +3357,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) - private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication(); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Authentication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Authentication(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authentication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Authentication(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4080,20 +3392,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ScheduleOrBuilder - extends + public interface ScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4102,13 +3411,10 @@ public interface ScheduleOrBuilder
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ boolean hasScheduleTime(); /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4117,13 +3423,10 @@ public interface ScheduleOrBuilder
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ com.google.protobuf.Timestamp getScheduleTime(); /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4136,50 +3439,46 @@ public interface ScheduleOrBuilder
     com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder();
 
     /**
-     *
-     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The intervalDurationDays. */ int getIntervalDurationDays(); } /** - * - * *
    * Scan schedule configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule} */ - public static final class Schedule extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Schedule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) ScheduleOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Schedule.newBuilder() to construct. private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Schedule() {} + private Schedule() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Schedule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Schedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4198,33 +3497,31 @@ private Schedule( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduleTime_ != null) { + subBuilder = scheduleTime_.toBuilder(); } - case 16: - { - intervalDurationDays_ = input.readInt32(); - break; + scheduleTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduleTime_); + scheduleTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + + intervalDurationDays_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4232,33 +3529,29 @@ private Schedule( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.class, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder.class); } public static final int SCHEDULE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp scheduleTime_; /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4267,7 +3560,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -4275,8 +3567,6 @@ public boolean hasScheduleTime() { return scheduleTime_ != null; } /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4285,18 +3575,13 @@ public boolean hasScheduleTime() {
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4314,14 +3599,11 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
     public static final int INTERVAL_DURATION_DAYS_FIELD_NUMBER = 2;
     private int intervalDurationDays_;
     /**
-     *
-     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The intervalDurationDays. */ @java.lang.Override @@ -4330,7 +3612,6 @@ public int getIntervalDurationDays() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4342,7 +3623,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (scheduleTime_ != null) { output.writeMessage(1, getScheduleTime()); } @@ -4359,10 +3641,12 @@ public int getSerializedSize() { size = 0; if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getScheduleTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getScheduleTime()); } if (intervalDurationDays_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, intervalDurationDays_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, intervalDurationDays_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4372,19 +3656,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule other = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) obj; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule other = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) obj; if (hasScheduleTime() != other.hasScheduleTime()) return false; if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) return false; + if (!getScheduleTime() + .equals(other.getScheduleTime())) return false; } - if (getIntervalDurationDays() != other.getIntervalDurationDays()) return false; + if (getIntervalDurationDays() + != other.getIntervalDurationDays()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4408,95 +3693,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4506,49 +3783,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Scan schedule configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.class, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4564,14 +3836,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance(); } @@ -4586,8 +3857,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule result = - new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule(this); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule result = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule(this); if (scheduleTimeBuilder_ == null) { result.scheduleTime_ = scheduleTime_; } else { @@ -4602,52 +3872,46 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance()) return this; if (other.hasScheduleTime()) { mergeScheduleTime(other.getScheduleTime()); } @@ -4673,9 +3937,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4687,13 +3949,8 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp scheduleTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleTimeBuilder_; /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4702,15 +3959,12 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return scheduleTimeBuilder_ != null || scheduleTime_ != null; } /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4719,21 +3973,16 @@ public boolean hasScheduleTime() {
        * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ public com.google.protobuf.Timestamp getScheduleTime() { if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } else { return scheduleTimeBuilder_.getMessage(); } } /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4757,8 +4006,6 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4768,7 +4015,8 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp schedule_time = 1;
        */
-      public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setScheduleTime(
+          com.google.protobuf.Timestamp.Builder builderForValue) {
         if (scheduleTimeBuilder_ == null) {
           scheduleTime_ = builderForValue.build();
           onChanged();
@@ -4779,8 +4027,6 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForV
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4794,9 +4040,7 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         if (scheduleTimeBuilder_ == null) {
           if (scheduleTime_ != null) {
             scheduleTime_ =
-                com.google.protobuf.Timestamp.newBuilder(scheduleTime_)
-                    .mergeFrom(value)
-                    .buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(scheduleTime_).mergeFrom(value).buildPartial();
           } else {
             scheduleTime_ = value;
           }
@@ -4808,8 +4052,6 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4831,8 +4073,6 @@ public Builder clearScheduleTime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4843,13 +4083,11 @@ public Builder clearScheduleTime() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() {
-
+        
         onChanged();
         return getScheduleTimeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4863,14 +4101,11 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
         if (scheduleTimeBuilder_ != null) {
           return scheduleTimeBuilder_.getMessageOrBuilder();
         } else {
-          return scheduleTime_ == null
-              ? com.google.protobuf.Timestamp.getDefaultInstance()
-              : scheduleTime_;
+          return scheduleTime_ == null ?
+              com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_;
         }
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4881,32 +4116,26 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
           getScheduleTimeFieldBuilder() {
         if (scheduleTimeBuilder_ == null) {
-          scheduleTimeBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Timestamp,
-                  com.google.protobuf.Timestamp.Builder,
-                  com.google.protobuf.TimestampOrBuilder>(
-                  getScheduleTime(), getParentForChildren(), isClean());
+          scheduleTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                  getScheduleTime(),
+                  getParentForChildren(),
+                  isClean());
           scheduleTime_ = null;
         }
         return scheduleTimeBuilder_;
       }
 
-      private int intervalDurationDays_;
+      private int intervalDurationDays_ ;
       /**
-       *
-       *
        * 
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The intervalDurationDays. */ @java.lang.Override @@ -4914,41 +4143,34 @@ public int getIntervalDurationDays() { return intervalDurationDays_; } /** - * - * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The intervalDurationDays to set. * @return This builder for chaining. */ public Builder setIntervalDurationDays(int value) { - + intervalDurationDays_ = value; onChanged(); return this; } /** - * - * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearIntervalDurationDays() { - + intervalDurationDays_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4961,32 +4183,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) - private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule(); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schedule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4998,17 +4218,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5016,7 +4234,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -5025,15 +4242,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5041,15 +4257,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -5060,14 +4277,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -5076,29 +4290,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -5109,8 +4323,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int MAX_QPS_FIELD_NUMBER = 3; private int maxQps_; /** - * - * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -5119,7 +4331,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -5130,42 +4341,34 @@ public int getMaxQps() { public static final int STARTING_URLS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList startingUrls_; /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList + getStartingUrlsList() { return startingUrls_; } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -5173,34 +4376,28 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString + getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } public static final int AUTHENTICATION_FIELD_NUMBER = 5; private com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication_; /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; * @return Whether the authentication field is set. */ @java.lang.Override @@ -5208,121 +4405,92 @@ public boolean hasAuthentication() { return authentication_ != null; } /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; * @return The authentication. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getAuthentication() { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance() - : authentication_; + return authentication_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance() : authentication_; } /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder - getAuthenticationOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() { return getAuthentication(); } public static final int USER_AGENT_FIELD_NUMBER = 6; private int userAgent_; /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override - public int getUserAgentValue() { + @java.lang.Override public int getUserAgentValue() { return userAgent_; } /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent getUserAgent() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.UNRECOGNIZED : result; } public static final int BLACKLIST_PATTERNS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList blacklistPatterns_; /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList + getBlacklistPatternsList() { return blacklistPatterns_; } /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -5330,33 +4498,28 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } public static final int SCHEDULE_FIELD_NUMBER = 8; private com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule_; /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ @java.lang.Override @@ -5364,25 +4527,18 @@ public boolean hasSchedule() { return schedule_ != null; } /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getSchedule() { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() : schedule_; } /** - * - * *
    * The schedule of the ScanConfig.
    * 
@@ -5390,64 +4546,43 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getSchedu * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder - getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { return getSchedule(); } public static final int TARGET_PLATFORMS_FIELD_NUMBER = 9; private java.util.List targetPlatforms_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform> - targetPlatforms_converter_ = + java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform> targetPlatforms_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>() { - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform convert( - java.lang.Integer from) { + java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform result = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform.valueOf( - from); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform - .UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform result = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform.valueOf(from); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform.UNRECOGNIZED : result; } }; /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the targetPlatforms. */ @java.lang.Override - public java.util.List - getTargetPlatformsList() { + public java.util.List getTargetPlatformsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>( - targetPlatforms_, targetPlatforms_converter_); + java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>(targetPlatforms_, targetPlatforms_converter_); } /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return The count of targetPlatforms. */ @java.lang.Override @@ -5455,55 +4590,40 @@ public int getTargetPlatformsCount() { return targetPlatforms_.size(); } /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms(int index) { return targetPlatforms_converter_.convert(targetPlatforms_.get(index)); } /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the enum numeric values on the wire for targetPlatforms. */ @java.lang.Override - public java.util.List getTargetPlatformsValueList() { + public java.util.List + getTargetPlatformsValueList() { return targetPlatforms_; } /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ @@ -5511,20 +4631,16 @@ public java.util.List getTargetPlatformsValueList() { public int getTargetPlatformsValue(int index) { return targetPlatforms_.get(index); } - private int targetPlatformsMemoizedSerializedSize; public static final int LATEST_RUN_FIELD_NUMBER = 11; private com.google.cloud.websecurityscanner.v1alpha.ScanRun latestRun_; /** - * - * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; - * * @return Whether the latestRun field is set. */ @java.lang.Override @@ -5532,25 +4648,18 @@ public boolean hasLatestRun() { return latestRun_ != null; } /** - * - * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; - * * @return The latestRun. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun getLatestRun() { - return latestRun_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() - : latestRun_; + return latestRun_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() : latestRun_; } /** - * - * *
    * Latest ScanRun if available.
    * 
@@ -5563,7 +4672,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getLatestRun } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5575,7 +4683,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); @@ -5592,9 +4701,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (authentication_ != null) { output.writeMessage(5, getAuthentication()); } - if (userAgent_ - != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED - .getNumber()) { + if (userAgent_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { output.writeEnum(6, userAgent_); } for (int i = 0; i < blacklistPatterns_.size(); i++) { @@ -5629,7 +4736,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (maxQps_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxQps_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxQps_); } { int dataSize = 0; @@ -5640,12 +4748,12 @@ public int getSerializedSize() { size += 1 * getStartingUrlsList().size(); } if (authentication_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthentication()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAuthentication()); } - if (userAgent_ - != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, userAgent_); + if (userAgent_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, userAgent_); } { int dataSize = 0; @@ -5656,23 +4764,24 @@ public int getSerializedSize() { size += 1 * getBlacklistPatternsList().size(); } if (schedule_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSchedule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSchedule()); } { int dataSize = 0; for (int i = 0; i < targetPlatforms_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(targetPlatforms_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(targetPlatforms_.get(i)); } size += dataSize; - if (!getTargetPlatformsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - targetPlatformsMemoizedSerializedSize = dataSize; + if (!getTargetPlatformsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }targetPlatformsMemoizedSerializedSize = dataSize; } if (latestRun_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLatestRun()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getLatestRun()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5682,32 +4791,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanConfig other = - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig) obj; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig other = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getMaxQps() != other.getMaxQps()) return false; - if (!getStartingUrlsList().equals(other.getStartingUrlsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (getMaxQps() + != other.getMaxQps()) return false; + if (!getStartingUrlsList() + .equals(other.getStartingUrlsList())) return false; if (hasAuthentication() != other.hasAuthentication()) return false; if (hasAuthentication()) { - if (!getAuthentication().equals(other.getAuthentication())) return false; + if (!getAuthentication() + .equals(other.getAuthentication())) return false; } if (userAgent_ != other.userAgent_) return false; - if (!getBlacklistPatternsList().equals(other.getBlacklistPatternsList())) return false; + if (!getBlacklistPatternsList() + .equals(other.getBlacklistPatternsList())) return false; if (hasSchedule() != other.hasSchedule()) return false; if (hasSchedule()) { - if (!getSchedule().equals(other.getSchedule())) return false; + if (!getSchedule() + .equals(other.getSchedule())) return false; } if (!targetPlatforms_.equals(other.targetPlatforms_)) return false; if (hasLatestRun() != other.hasLatestRun()) return false; if (hasLatestRun()) { - if (!getLatestRun().equals(other.getLatestRun())) return false; + if (!getLatestRun() + .equals(other.getLatestRun())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -5758,104 +4874,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A ScanConfig resource contains the configurations to launch a scan.
    * next id: 12
@@ -5863,23 +4971,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig)
       com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class,
-              com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder.class);
+              com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.newBuilder()
@@ -5887,15 +4993,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -5935,9 +5042,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
     }
 
     @java.lang.Override
@@ -5956,8 +5063,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1alpha.ScanConfig buildPartial() {
-      com.google.cloud.websecurityscanner.v1alpha.ScanConfig result =
-          new com.google.cloud.websecurityscanner.v1alpha.ScanConfig(this);
+      com.google.cloud.websecurityscanner.v1alpha.ScanConfig result = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -6001,39 +5107,38 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -6041,8 +5146,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanConfig other) {
-      if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -6115,8 +5219,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1alpha.ScanConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -6125,13 +5228,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6139,13 +5239,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -6154,8 +5254,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6163,14 +5261,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -6178,8 +5277,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6187,22 +5284,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6210,18 +5305,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6229,16 +5321,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -6246,20 +5338,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -6268,21 +5358,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -6290,70 +5379,61 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private int maxQps_; + private int maxQps_ ; /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -6362,7 +5442,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -6370,8 +5449,6 @@ public int getMaxQps() { return maxQps_; } /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -6380,19 +5457,16 @@ public int getMaxQps() {
      * 
* * int32 max_qps = 3; - * * @param value The maxQps to set. * @return This builder for chaining. */ public Builder setMaxQps(int value) { - + maxQps_ = value; onChanged(); return this; } /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -6401,62 +5475,51 @@ public Builder setMaxQps(int value) {
      * 
* * int32 max_qps = 3; - * * @return This builder for chaining. */ public Builder clearMaxQps() { - + maxQps_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList startingUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList startingUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStartingUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { startingUrls_ = new com.google.protobuf.LazyStringArrayList(startingUrls_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList + getStartingUrlsList() { return startingUrls_.getUnmodifiableView(); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -6464,90 +5527,80 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString + getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The startingUrls to set. * @return This builder for chaining. */ - public Builder setStartingUrls(int index, java.lang.String value) { + public Builder setStartingUrls( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrls(java.lang.String value) { + public Builder addStartingUrls( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The startingUrls to add. * @return This builder for chaining. */ - public Builder addAllStartingUrls(java.lang.Iterable values) { + public Builder addAllStartingUrls( + java.lang.Iterable values) { ensureStartingUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, startingUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, startingUrls_); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearStartingUrls() { @@ -6557,22 +5610,20 @@ public Builder clearStartingUrls() { return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { + public Builder addStartingUrlsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); @@ -6581,63 +5632,44 @@ public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder> - authenticationBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder> authenticationBuilder_; /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; * @return Whether the authentication field is set. */ public boolean hasAuthentication() { return authenticationBuilder_ != null || authentication_ != null; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; * @return The authentication. */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - getAuthentication() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getAuthentication() { if (authenticationBuilder_ == null) { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .getDefaultInstance() - : authentication_; + return authentication_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance() : authentication_; } else { return authenticationBuilder_.getMessage(); } } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ - public Builder setAuthentication( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication value) { + public Builder setAuthentication(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6651,19 +5683,15 @@ public Builder setAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ public Builder setAuthentication( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder builderForValue) { if (authenticationBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -6674,25 +5702,18 @@ public Builder setAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ - public Builder mergeAuthentication( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication value) { + public Builder mergeAuthentication(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (authentication_ != null) { authentication_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.newBuilder( - authentication_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.newBuilder(authentication_).mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -6704,15 +5725,12 @@ public Builder mergeAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ public Builder clearAuthentication() { if (authenticationBuilder_ == null) { @@ -6726,67 +5744,51 @@ public Builder clearAuthentication() { return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder - getAuthenticationBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder getAuthenticationBuilder() { + onChanged(); return getAuthenticationFieldBuilder().getBuilder(); } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder - getAuthenticationOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() { if (authenticationBuilder_ != null) { return authenticationBuilder_.getMessageOrBuilder(); } else { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .getDefaultInstance() - : authentication_; + return authentication_ == null ? + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance() : authentication_; } } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder> getAuthenticationFieldBuilder() { if (authenticationBuilder_ == null) { - authenticationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder>( - getAuthentication(), getParentForChildren(), isClean()); + authenticationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder>( + getAuthentication(), + getParentForChildren(), + isClean()); authentication_ = null; } return authenticationBuilder_; @@ -6794,147 +5796,117 @@ public Builder clearAuthentication() { private int userAgent_ = 0; /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override - public int getUserAgentValue() { + @java.lang.Override public int getUserAgentValue() { return userAgent_; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @param value The enum numeric value on the wire for userAgent to set. * @return This builder for chaining. */ public Builder setUserAgentValue(int value) { - + userAgent_ = value; onChanged(); return this; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.UNRECOGNIZED : result; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @param value The userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgent( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent value) { + public Builder setUserAgent(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent value) { if (value == null) { throw new NullPointerException(); } - + userAgent_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @return This builder for chaining. */ public Builder clearUserAgent() { - + userAgent_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList blacklistPatterns_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureBlacklistPatternsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(blacklistPatterns_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList + getBlacklistPatternsList() { return blacklistPatterns_.getUnmodifiableView(); } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -6942,95 +5914,85 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index to set the value at. * @param value The blacklistPatterns to set. * @return This builder for chaining. */ - public Builder setBlacklistPatterns(int index, java.lang.String value) { + public Builder setBlacklistPatterns( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.set(index, value); onChanged(); return this; } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param value The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatterns(java.lang.String value) { + public Builder addBlacklistPatterns( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); return this; } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param values The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addAllBlacklistPatterns(java.lang.Iterable values) { + public Builder addAllBlacklistPatterns( + java.lang.Iterable values) { ensureBlacklistPatternsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blacklistPatterns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blacklistPatterns_); onChanged(); return this; } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return This builder for chaining. */ public Builder clearBlacklistPatterns() { @@ -7040,23 +6002,21 @@ public Builder clearBlacklistPatterns() { return this; } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param value The bytes of the blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { + public Builder addBlacklistPatternsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); @@ -7065,55 +6025,41 @@ public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder> - scheduleBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder> scheduleBuilder_; /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ public boolean hasSchedule() { return scheduleBuilder_ != null || schedule_ != null; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getSchedule() { if (scheduleBuilder_ == null) { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() : schedule_; } else { return scheduleBuilder_.getMessage(); } } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ - public Builder setSchedule( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule value) { + public Builder setSchedule(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule value) { if (scheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7127,8 +6073,6 @@ public Builder setSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -7147,22 +6091,17 @@ public Builder setSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ - public Builder mergeSchedule( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule value) { + public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule value) { if (scheduleBuilder_ == null) { if (schedule_ != null) { schedule_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.newBuilder(schedule_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.newBuilder(schedule_).mergeFrom(value).buildPartial(); } else { schedule_ = value; } @@ -7174,8 +6113,6 @@ public Builder mergeSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -7194,42 +6131,33 @@ public Builder clearSchedule() { return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder - getScheduleBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder getScheduleBuilder() { + onChanged(); return getScheduleFieldBuilder().getBuilder(); } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder - getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { if (scheduleBuilder_ != null) { return scheduleBuilder_.getMessageOrBuilder(); } else { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() : schedule_; } } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -7237,24 +6165,21 @@ public Builder clearSchedule() { * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder> getScheduleFieldBuilder() { if (scheduleBuilder_ == null) { - scheduleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder>( - getSchedule(), getParentForChildren(), isClean()); + scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder>( + getSchedule(), + getParentForChildren(), + isClean()); schedule_ = null; } return scheduleBuilder_; } - private java.util.List targetPlatforms_ = java.util.Collections.emptyList(); - + private java.util.List targetPlatforms_ = + java.util.Collections.emptyList(); private void ensureTargetPlatformsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { targetPlatforms_ = new java.util.ArrayList(targetPlatforms_); @@ -7262,73 +6187,50 @@ private void ensureTargetPlatformsIsMutable() { } } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the targetPlatforms. */ - public java.util.List - getTargetPlatformsList() { + public java.util.List getTargetPlatformsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>( - targetPlatforms_, targetPlatforms_converter_); + java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>(targetPlatforms_, targetPlatforms_converter_); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return The count of targetPlatforms. */ public int getTargetPlatformsCount() { return targetPlatforms_.size(); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms(int index) { return targetPlatforms_converter_.convert(targetPlatforms_.get(index)); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index to set the value at. * @param value The targetPlatforms to set. * @return This builder for chaining. @@ -7344,22 +6246,16 @@ public Builder setTargetPlatforms( return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param value The targetPlatforms to add. * @return This builder for chaining. */ - public Builder addTargetPlatforms( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform value) { + public Builder addTargetPlatforms(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform value) { if (value == null) { throw new NullPointerException(); } @@ -7369,24 +6265,17 @@ public Builder addTargetPlatforms( return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param values The targetPlatforms to add. * @return This builder for chaining. */ public Builder addAllTargetPlatforms( - java.lang.Iterable< - ? extends com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform> - values) { + java.lang.Iterable values) { ensureTargetPlatformsIsMutable(); for (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform value : values) { targetPlatforms_.add(value.getNumber()); @@ -7395,17 +6284,12 @@ public Builder addAllTargetPlatforms( return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return This builder for chaining. */ public Builder clearTargetPlatforms() { @@ -7415,34 +6299,25 @@ public Builder clearTargetPlatforms() { return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the enum numeric values on the wire for targetPlatforms. */ - public java.util.List getTargetPlatformsValueList() { + public java.util.List + getTargetPlatformsValueList() { return java.util.Collections.unmodifiableList(targetPlatforms_); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ @@ -7450,39 +6325,30 @@ public int getTargetPlatformsValue(int index) { return targetPlatforms_.get(index); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index to set the value at. * @param value The enum numeric value on the wire for targetPlatforms to set. * @return This builder for chaining. */ - public Builder setTargetPlatformsValue(int index, int value) { + public Builder setTargetPlatformsValue( + int index, int value) { ensureTargetPlatformsIsMutable(); targetPlatforms_.set(index, value); onChanged(); return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param value The enum numeric value on the wire for targetPlatforms to add. * @return This builder for chaining. */ @@ -7493,21 +6359,17 @@ public Builder addTargetPlatformsValue(int value) { return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param values The enum numeric values on the wire for targetPlatforms to add. * @return This builder for chaining. */ - public Builder addAllTargetPlatformsValue(java.lang.Iterable values) { + public Builder addAllTargetPlatformsValue( + java.lang.Iterable values) { ensureTargetPlatformsIsMutable(); for (int value : values) { targetPlatforms_.add(value); @@ -7518,47 +6380,34 @@ public Builder addAllTargetPlatformsValue(java.lang.Iterable private com.google.cloud.websecurityscanner.v1alpha.ScanRun latestRun_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, - com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> - latestRunBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> latestRunBuilder_; /** - * - * *
      * Latest ScanRun if available.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; - * * @return Whether the latestRun field is set. */ public boolean hasLatestRun() { return latestRunBuilder_ != null || latestRun_ != null; } /** - * - * *
      * Latest ScanRun if available.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; - * * @return The latestRun. */ public com.google.cloud.websecurityscanner.v1alpha.ScanRun getLatestRun() { if (latestRunBuilder_ == null) { - return latestRun_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() - : latestRun_; + return latestRun_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() : latestRun_; } else { return latestRunBuilder_.getMessage(); } } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7579,8 +6428,6 @@ public Builder setLatestRun(com.google.cloud.websecurityscanner.v1alpha.ScanRun return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7599,8 +6446,6 @@ public Builder setLatestRun( return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7611,9 +6456,7 @@ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1alpha.ScanRu if (latestRunBuilder_ == null) { if (latestRun_ != null) { latestRun_ = - com.google.cloud.websecurityscanner.v1alpha.ScanRun.newBuilder(latestRun_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanRun.newBuilder(latestRun_).mergeFrom(value).buildPartial(); } else { latestRun_ = value; } @@ -7625,8 +6468,6 @@ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1alpha.ScanRu return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7645,8 +6486,6 @@ public Builder clearLatestRun() { return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7654,13 +6493,11 @@ public Builder clearLatestRun() { * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; */ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder getLatestRunBuilder() { - + onChanged(); return getLatestRunFieldBuilder().getBuilder(); } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7671,14 +6508,11 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getLatestRun if (latestRunBuilder_ != null) { return latestRunBuilder_.getMessageOrBuilder(); } else { - return latestRun_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() - : latestRun_; + return latestRun_ == null ? + com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() : latestRun_; } } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7686,24 +6520,21 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getLatestRun * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, - com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> getLatestRunFieldBuilder() { if (latestRunBuilder_ == null) { - latestRunBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, - com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder>( - getLatestRun(), getParentForChildren(), isClean()); + latestRunBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder>( + getLatestRun(), + getParentForChildren(), + isClean()); latestRun_ = null; } return latestRunBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7713,12 +6544,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig) private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig(); } @@ -7727,16 +6558,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7751,4 +6582,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java similarity index 78% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java index a2e125d7..656e3268 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/scan_config.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ScanConfigOrBuilder - extends +public interface ScanConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -33,13 +15,10 @@ public interface ScanConfigOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -47,39 +26,32 @@ public interface ScanConfigOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -88,211 +60,164 @@ public interface ScanConfigOrBuilder
    * 
* * int32 max_qps = 3; - * * @return The maxQps. */ int getMaxQps(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the startingUrls. */ - java.util.List getStartingUrlsList(); + java.util.List + getStartingUrlsList(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of startingUrls. */ int getStartingUrlsCount(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ java.lang.String getStartingUrls(int index); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - com.google.protobuf.ByteString getStartingUrlsBytes(int index); + com.google.protobuf.ByteString + getStartingUrlsBytes(int index); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; * @return Whether the authentication field is set. */ boolean hasAuthentication(); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; * @return The authentication. */ com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getAuthentication(); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder - getAuthenticationOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder(); /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ int getUserAgentValue(); /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent getUserAgent(); /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - java.util.List getBlacklistPatternsList(); + java.util.List + getBlacklistPatternsList(); /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ int getBlacklistPatternsCount(); /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ java.lang.String getBlacklistPatterns(int index); /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - com.google.protobuf.ByteString getBlacklistPatternsBytes(int index); + com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index); /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ boolean hasSchedule(); /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getSchedule(); /** - * - * *
    * The schedule of the ScanConfig.
    * 
@@ -302,112 +227,78 @@ public interface ScanConfigOrBuilder com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder(); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the targetPlatforms. */ - java.util.List - getTargetPlatformsList(); + java.util.List getTargetPlatformsList(); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return The count of targetPlatforms. */ int getTargetPlatformsCount(); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms( - int index); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms(int index); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the enum numeric values on the wire for targetPlatforms. */ - java.util.List getTargetPlatformsValueList(); + java.util.List + getTargetPlatformsValueList(); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ int getTargetPlatformsValue(int index); /** - * - * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; - * * @return Whether the latestRun field is set. */ boolean hasLatestRun(); /** - * - * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; - * * @return The latestRun. */ com.google.cloud.websecurityscanner.v1alpha.ScanRun getLatestRun(); /** - * - * *
    * Latest ScanRun if available.
    * 
diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java new file mode 100644 index 00000000..e97939cb --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java @@ -0,0 +1,147 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/scan_config.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class ScanConfigProto { + private ScanConfigProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/websecurityscanner/v1alph" + + "a/scan_config.proto\022\'google.cloud.websec" + + "urityscanner.v1alpha\032\037google/api/field_b" + + "ehavior.proto\032\031google/api/resource.proto" + + "\0326google/cloud/websecurityscanner/v1alph" + + "a/scan_run.proto\032\037google/protobuf/timest" + + "amp.proto\"\261\n\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\031" + + "\n\014display_name\030\002 \001(\tB\003\340A\002\022\017\n\007max_qps\030\003 \001" + + "(\005\022\032\n\rstarting_urls\030\004 \003(\tB\003\340A\002\022Z\n\016authen" + + "tication\030\005 \001(\0132B.google.cloud.websecurit" + + "yscanner.v1alpha.ScanConfig.Authenticati" + + "on\022Q\n\nuser_agent\030\006 \001(\0162=.google.cloud.we" + + "bsecurityscanner.v1alpha.ScanConfig.User" + + "Agent\022\032\n\022blacklist_patterns\030\007 \003(\t\022N\n\010sch" + + "edule\030\010 \001(\0132<.google.cloud.websecuritysc" + + "anner.v1alpha.ScanConfig.Schedule\022\\\n\020tar" + + "get_platforms\030\t \003(\0162B.google.cloud.webse" + + "curityscanner.v1alpha.ScanConfig.TargetP" + + "latform\022D\n\nlatest_run\030\013 \001(\01320.google.clo" + + "ud.websecurityscanner.v1alpha.ScanRun\032\226\003" + + "\n\016Authentication\022j\n\016google_account\030\001 \001(\013" + + "2P.google.cloud.websecurityscanner.v1alp" + + "ha.ScanConfig.Authentication.GoogleAccou" + + "ntH\000\022j\n\016custom_account\030\002 \001(\0132P.google.cl" + + "oud.websecurityscanner.v1alpha.ScanConfi" + + "g.Authentication.CustomAccountH\000\032@\n\rGoog" + + "leAccount\022\025\n\010username\030\001 \001(\tB\003\340A\002\022\030\n\010pass" + + "word\030\002 \001(\tB\006\340A\002\340A\004\032X\n\rCustomAccount\022\025\n\010u" + + "sername\030\001 \001(\tB\003\340A\002\022\030\n\010password\030\002 \001(\tB\006\340A" + + "\002\340A\004\022\026\n\tlogin_url\030\003 \001(\tB\003\340A\002B\020\n\016authenti" + + "cation\032b\n\010Schedule\0221\n\rschedule_time\030\001 \001(" + + "\0132\032.google.protobuf.Timestamp\022#\n\026interva" + + "l_duration_days\030\002 \001(\005B\003\340A\002\"`\n\tUserAgent\022" + + "\032\n\026USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LI" + + "NUX\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHO" + + "NE\020\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFOR" + + "M_UNSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMPU" + + "TE\020\002:_\352A\\\n,websecurityscanner.googleapis" + + ".com/ScanConfig\022,projects/{project}/scan" + + "Configs/{scan_config}B\233\001\n+com.google.clo" + + "ud.websecurityscanner.v1alphaB\017ScanConfi" + + "gProtoP\001ZYgoogle.golang.org/genproto/goo" + + "gleapis/cloud/websecurityscanner/v1alpha" + + ";websecurityscannerb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor, + new java.lang.String[] { "Name", "DisplayName", "MaxQps", "StartingUrls", "Authentication", "UserAgent", "BlacklistPatterns", "Schedule", "TargetPlatforms", "LatestRun", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor = + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor, + new java.lang.String[] { "GoogleAccount", "CustomAccount", "Authentication", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor, + new java.lang.String[] { "Username", "Password", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor, + new java.lang.String[] { "Username", "Password", "LoginUrl", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor = + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor, + new java.lang.String[] { "ScheduleTime", "IntervalDurationDays", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java similarity index 74% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java index 55bf5a93..677a5a03 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/scan_run.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * A ScanRun is a output-only resource representing an actual run of the scan.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanRun} */ -public final class ScanRun extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ScanRun extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanRun) ScanRunOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ScanRun.newBuilder() to construct. private ScanRun(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ScanRun() { name_ = ""; executionState_ = 0; @@ -45,15 +27,16 @@ private ScanRun() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ScanRun(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ScanRun( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,84 +55,77 @@ private ScanRun( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - executionState_ = rawValue; - break; - } - case 24: - { - int rawValue = input.readEnum(); + executionState_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); - resultState_ = rawValue; - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - urlsCrawledCount_ = input.readInt64(); - break; + resultState_ = rawValue; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); } - case 56: - { - urlsTestedCount_ = input.readInt64(); - break; + startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); } - case 64: - { - hasVulnerabilities_ = input.readBool(); - break; + + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 72: - { - progressPercent_ = input.readInt32(); - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 48: { + + urlsCrawledCount_ = input.readInt64(); + break; + } + case 56: { + + urlsTestedCount_ = input.readInt64(); + break; + } + case 64: { + + hasVulnerabilities_ = input.readBool(); + break; + } + case 72: { + + progressPercent_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -157,41 +133,36 @@ private ScanRun( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, - com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder.class); } /** - * - * *
    * Types of ScanRun execution state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState} */ - public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { + public enum ExecutionState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -201,8 +172,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum {
      */
     EXECUTION_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -211,8 +180,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ QUEUED(1), /** - * - * *
      * The scan is in progress.
      * 
@@ -221,8 +188,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ SCANNING(2), /** - * - * *
      * The scan is either finished or stopped by user.
      * 
@@ -234,8 +199,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -245,8 +208,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int EXECUTION_STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -255,8 +216,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int QUEUED_VALUE = 1; /** - * - * *
      * The scan is in progress.
      * 
@@ -265,8 +224,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCANNING_VALUE = 2; /** - * - * *
      * The scan is either finished or stopped by user.
      * 
@@ -275,6 +232,7 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FINISHED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -299,53 +257,50 @@ public static ExecutionState valueOf(int value) { */ public static ExecutionState forNumber(int value) { switch (value) { - case 0: - return EXECUTION_STATE_UNSPECIFIED; - case 1: - return QUEUED; - case 2: - return SCANNING; - case 3: - return FINISHED; - default: - return null; + case 0: return EXECUTION_STATE_UNSPECIFIED; + case 1: return QUEUED; + case 2: return SCANNING; + case 3: return FINISHED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExecutionState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionState findValueByNumber(int number) { + return ExecutionState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionState findValueByNumber(int number) { - return ExecutionState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDescriptor().getEnumTypes().get(0); } private static final ExecutionState[] VALUES = values(); - public static ExecutionState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ExecutionState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -363,18 +318,15 @@ private ExecutionState(int value) { } /** - * - * *
    * Types of ScanRun result state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState} */ - public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { + public enum ResultState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -384,8 +336,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESULT_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -394,8 +344,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ SUCCESS(1), /** - * - * *
      * The scan finished with errors.
      * 
@@ -404,8 +352,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(2), /** - * - * *
      * The scan was terminated by user.
      * 
@@ -417,8 +363,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -428,8 +372,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESULT_STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -438,8 +380,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCESS_VALUE = 1; /** - * - * *
      * The scan finished with errors.
      * 
@@ -448,8 +388,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 2; /** - * - * *
      * The scan was terminated by user.
      * 
@@ -458,6 +396,7 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KILLED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -482,53 +421,50 @@ public static ResultState valueOf(int value) { */ public static ResultState forNumber(int value) { switch (value) { - case 0: - return RESULT_STATE_UNSPECIFIED; - case 1: - return SUCCESS; - case 2: - return ERROR; - case 3: - return KILLED; - default: - return null; + case 0: return RESULT_STATE_UNSPECIFIED; + case 1: return SUCCESS; + case 2: return ERROR; + case 3: return KILLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ResultState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResultState findValueByNumber(int number) { + return ResultState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResultState findValueByNumber(int number) { - return ResultState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDescriptor().getEnumTypes().get(1); } private static final ResultState[] VALUES = values(); - public static ResultState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ResultState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -548,8 +484,6 @@ private ResultState(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -557,7 +491,6 @@ private ResultState(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -566,15 +499,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -582,15 +514,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -601,94 +534,67 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EXECUTION_STATE_FIELD_NUMBER = 2; private int executionState_; /** - * - * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override - public int getExecutionStateValue() { + @java.lang.Override public int getExecutionStateValue() { return executionState_; } /** - * - * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @return The executionState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState getExecutionState() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.valueOf(executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.valueOf(executionState_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.UNRECOGNIZED : result; } public static final int RESULT_STATE_FIELD_NUMBER = 3; private int resultState_; /** - * - * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override - public int getResultStateValue() { + @java.lang.Override public int getResultStateValue() { return resultState_; } /** - * - * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState getResultState() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.valueOf(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.valueOf(resultState_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.UNRECOGNIZED : result; } public static final int START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -696,14 +602,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ @java.lang.Override @@ -711,8 +614,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The time at which the ScanRun started.
    * 
@@ -727,15 +628,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -743,15 +641,12 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ @java.lang.Override @@ -759,8 +654,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -776,15 +669,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 6;
   private long urlsCrawledCount_;
   /**
-   *
-   *
    * 
    * The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ @java.lang.Override @@ -795,8 +685,6 @@ public long getUrlsCrawledCount() { public static final int URLS_TESTED_COUNT_FIELD_NUMBER = 7; private long urlsTestedCount_; /** - * - * *
    * The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -805,7 +693,6 @@ public long getUrlsCrawledCount() {
    * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -816,14 +703,11 @@ public long getUrlsTestedCount() { public static final int HAS_VULNERABILITIES_FIELD_NUMBER = 8; private boolean hasVulnerabilities_; /** - * - * *
    * Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ @java.lang.Override @@ -834,8 +718,6 @@ public boolean getHasVulnerabilities() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 9; private int progressPercent_; /** - * - * *
    * The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -844,7 +726,6 @@ public boolean getHasVulnerabilities() {
    * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -853,7 +734,6 @@ public int getProgressPercent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -865,19 +745,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (executionState_ - != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState - .EXECUTION_STATE_UNSPECIFIED - .getNumber()) { + if (executionState_ != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, executionState_); } - if (resultState_ - != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED - .getNumber()) { + if (resultState_ != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, resultState_); } if (startTime_ != null) { @@ -910,34 +786,37 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (executionState_ - != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState - .EXECUTION_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, executionState_); + if (executionState_ != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, executionState_); } - if (resultState_ - != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, resultState_); + if (resultState_ != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, resultState_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEndTime()); } if (urlsCrawledCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, urlsCrawledCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, urlsCrawledCount_); } if (urlsTestedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, urlsTestedCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, urlsTestedCount_); } if (hasVulnerabilities_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, hasVulnerabilities_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, hasVulnerabilities_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, progressPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, progressPercent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -947,29 +826,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanRun)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanRun other = - (com.google.cloud.websecurityscanner.v1alpha.ScanRun) obj; + com.google.cloud.websecurityscanner.v1alpha.ScanRun other = (com.google.cloud.websecurityscanner.v1alpha.ScanRun) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (executionState_ != other.executionState_) return false; if (resultState_ != other.resultState_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (getUrlsCrawledCount() != other.getUrlsCrawledCount()) return false; - if (getUrlsTestedCount() != other.getUrlsTestedCount()) return false; - if (getHasVulnerabilities() != other.getHasVulnerabilities()) return false; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (getUrlsCrawledCount() + != other.getUrlsCrawledCount()) return false; + if (getUrlsTestedCount() + != other.getUrlsTestedCount()) return false; + if (getHasVulnerabilities() + != other.getHasVulnerabilities()) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -996,11 +881,14 @@ public int hashCode() { hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + URLS_CRAWLED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsCrawledCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUrlsCrawledCount()); hash = (37 * hash) + URLS_TESTED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsTestedCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUrlsTestedCount()); hash = (37 * hash) + HAS_VULNERABILITIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasVulnerabilities()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasVulnerabilities()); hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getProgressPercent(); hash = (29 * hash) + unknownFields.hashCode(); @@ -1009,126 +897,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanRun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A ScanRun is a output-only resource representing an actual run of the scan.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanRun} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanRun) com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, - com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanRun.newBuilder() @@ -1136,15 +1015,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1178,9 +1058,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto - .internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; } @java.lang.Override @@ -1199,8 +1079,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ScanRun result = - new com.google.cloud.websecurityscanner.v1alpha.ScanRun(this); + com.google.cloud.websecurityscanner.v1alpha.ScanRun result = new com.google.cloud.websecurityscanner.v1alpha.ScanRun(this); result.name_ = name_; result.executionState_ = executionState_; result.resultState_ = resultState_; @@ -1226,39 +1105,38 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanRun) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanRun) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanRun)other); } else { super.mergeFrom(other); return this; @@ -1266,8 +1144,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanRun other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1315,8 +1192,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.ScanRun) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanRun) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1328,8 +1204,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1337,13 +1211,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1352,8 +1226,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1361,14 +1233,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1376,8 +1249,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1385,22 +1256,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1408,18 +1277,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1427,16 +1293,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1444,99 +1310,73 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int executionState_ = 0; /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override - public int getExecutionStateValue() { + @java.lang.Override public int getExecutionStateValue() { return executionState_; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @param value The enum numeric value on the wire for executionState to set. * @return This builder for chaining. */ public Builder setExecutionStateValue(int value) { - + executionState_ = value; onChanged(); return this; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @return The executionState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.valueOf( - executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.valueOf(executionState_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.UNRECOGNIZED : result; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @param value The executionState to set. * @return This builder for chaining. */ - public Builder setExecutionState( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState value) { + public Builder setExecutionState(com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState value) { if (value == null) { throw new NullPointerException(); } - + executionState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @return This builder for chaining. */ public Builder clearExecutionState() { - + executionState_ = 0; onChanged(); return this; @@ -1544,98 +1384,78 @@ public Builder clearExecutionState() { private int resultState_ = 0; /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override - public int getResultStateValue() { + @java.lang.Override public int getResultStateValue() { return resultState_; } /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @param value The enum numeric value on the wire for resultState to set. * @return This builder for chaining. */ public Builder setResultStateValue(int value) { - + resultState_ = value; onChanged(); return this; } /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.valueOf(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.valueOf(resultState_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.UNRECOGNIZED : result; } /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @param value The resultState to set. * @return This builder for chaining. */ - public Builder setResultState( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState value) { + public Builder setResultState(com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState value) { if (value == null) { throw new NullPointerException(); } - + resultState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @return This builder for chaining. */ public Builder clearResultState() { - + resultState_ = 0; onChanged(); return this; @@ -1643,33 +1463,24 @@ public Builder clearResultState() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1680,8 +1491,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1702,15 +1511,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -1721,8 +1529,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1733,7 +1539,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -1745,8 +1551,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1765,8 +1569,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1774,13 +1576,11 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 4; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1791,12 +1591,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1804,17 +1603,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -1822,35 +1618,26 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1861,8 +1648,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1884,8 +1669,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1893,7 +1676,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1904,8 +1688,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1917,7 +1699,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1929,8 +1711,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1950,8 +1730,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1960,13 +1738,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1978,12 +1754,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1992,33 +1767,27 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
 
-    private long urlsCrawledCount_;
+    private long urlsCrawledCount_ ;
     /**
-     *
-     *
      * 
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ @java.lang.Override @@ -2026,47 +1795,39 @@ public long getUrlsCrawledCount() { return urlsCrawledCount_; } /** - * - * *
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @param value The urlsCrawledCount to set. * @return This builder for chaining. */ public Builder setUrlsCrawledCount(long value) { - + urlsCrawledCount_ = value; onChanged(); return this; } /** - * - * *
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @return This builder for chaining. */ public Builder clearUrlsCrawledCount() { - + urlsCrawledCount_ = 0L; onChanged(); return this; } - private long urlsTestedCount_; + private long urlsTestedCount_ ; /** - * - * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2075,7 +1836,6 @@ public Builder clearUrlsCrawledCount() {
      * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -2083,8 +1843,6 @@ public long getUrlsTestedCount() { return urlsTestedCount_; } /** - * - * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2093,19 +1851,16 @@ public long getUrlsTestedCount() {
      * 
* * int64 urls_tested_count = 7; - * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ public Builder setUrlsTestedCount(long value) { - + urlsTestedCount_ = value; onChanged(); return this; } /** - * - * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2114,26 +1869,22 @@ public Builder setUrlsTestedCount(long value) {
      * 
* * int64 urls_tested_count = 7; - * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { - + urlsTestedCount_ = 0L; onChanged(); return this; } - private boolean hasVulnerabilities_; + private boolean hasVulnerabilities_ ; /** - * - * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ @java.lang.Override @@ -2141,45 +1892,37 @@ public boolean getHasVulnerabilities() { return hasVulnerabilities_; } /** - * - * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @param value The hasVulnerabilities to set. * @return This builder for chaining. */ public Builder setHasVulnerabilities(boolean value) { - + hasVulnerabilities_ = value; onChanged(); return this; } /** - * - * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @return This builder for chaining. */ public Builder clearHasVulnerabilities() { - + hasVulnerabilities_ = false; onChanged(); return this; } - private int progressPercent_; + private int progressPercent_ ; /** - * - * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2188,7 +1931,6 @@ public Builder clearHasVulnerabilities() {
      * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -2196,8 +1938,6 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2206,19 +1946,16 @@ public int getProgressPercent() {
      * 
* * int32 progress_percent = 9; - * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** - * - * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2227,18 +1964,17 @@ public Builder setProgressPercent(int value) {
      * 
* * int32 progress_percent = 9; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2248,12 +1984,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanRun) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanRun) private static final com.google.cloud.websecurityscanner.v1alpha.ScanRun DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanRun(); } @@ -2262,16 +1998,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.ScanRun getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2286,4 +2022,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.ScanRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java similarity index 83% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java index 1e3dc0be..cb8b3862 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/scan_run.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ScanRunOrBuilder - extends +public interface ScanRunOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanRun) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -33,13 +15,10 @@ public interface ScanRunOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -47,92 +26,70 @@ public interface ScanRunOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @return The enum numeric value on the wire for executionState. */ int getExecutionStateValue(); /** - * - * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; * @return The executionState. */ com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState getExecutionState(); /** - * - * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ int getResultStateValue(); /** - * - * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState getResultState(); /** - * - * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * The time at which the ScanRun started.
    * 
@@ -142,34 +99,26 @@ public interface ScanRunOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -180,22 +129,17 @@ public interface ScanRunOrBuilder
   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ long getUrlsCrawledCount(); /** - * - * *
    * The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -204,27 +148,21 @@ public interface ScanRunOrBuilder
    * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ long getUrlsTestedCount(); /** - * - * *
    * Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ boolean getHasVulnerabilities(); /** - * - * *
    * The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -233,7 +171,6 @@ public interface ScanRunOrBuilder
    * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ int getProgressPercent(); diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java new file mode 100644 index 00000000..9758b50b --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java @@ -0,0 +1,80 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/scan_run.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class ScanRunProto { + private ScanRunProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/websecurityscanner/v1alph" + + "a/scan_run.proto\022\'google.cloud.websecuri" + + "tyscanner.v1alpha\032\031google/api/resource.p" + + "roto\032\037google/protobuf/timestamp.proto\"\257\005" + + "\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022X\n\017execution_sta" + + "te\030\002 \001(\0162?.google.cloud.websecurityscann" + + "er.v1alpha.ScanRun.ExecutionState\022R\n\014res" + + "ult_state\030\003 \001(\0162<.google.cloud.websecuri" + + "tyscanner.v1alpha.ScanRun.ResultState\022.\n" + + "\nstart_time\030\004 \001(\0132\032.google.protobuf.Time" + + "stamp\022,\n\010end_time\030\005 \001(\0132\032.google.protobu" + + "f.Timestamp\022\032\n\022urls_crawled_count\030\006 \001(\003\022" + + "\031\n\021urls_tested_count\030\007 \001(\003\022\033\n\023has_vulner" + + "abilities\030\010 \001(\010\022\030\n\020progress_percent\030\t \001(" + + "\005\"Y\n\016ExecutionState\022\037\n\033EXECUTION_STATE_U" + + "NSPECIFIED\020\000\022\n\n\006QUEUED\020\001\022\014\n\010SCANNING\020\002\022\014" + + "\n\010FINISHED\020\003\"O\n\013ResultState\022\034\n\030RESULT_ST" + + "ATE_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020\001\022\t\n\005ERROR\020" + + "\002\022\n\n\006KILLED\020\003:p\352Am\n)websecurityscanner.g" + + "oogleapis.com/ScanRun\022@projects/{project" + + "}/scanConfigs/{scan_config}/scanRuns/{sc" + + "an_run}B\230\001\n+com.google.cloud.websecurity" + + "scanner.v1alphaB\014ScanRunProtoP\001ZYgoogle." + + "golang.org/genproto/googleapis/cloud/web" + + "securityscanner/v1alpha;websecurityscann" + + "erb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor, + new java.lang.String[] { "Name", "ExecutionState", "ResultState", "StartTime", "EndTime", "UrlsCrawledCount", "UrlsTestedCount", "HasVulnerabilities", "ProgressPercent", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java similarity index 64% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java index f17df141..a9073ed9 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `StartScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.StartScanRunRequest} */ -public final class StartScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) StartScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartScanRunRequest.newBuilder() to construct. private StartScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StartScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StartScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private StartScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest other = - (com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest other = (com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `StartScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.StartScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest result = - new com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest(this); + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest result = new com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,50 +374,46 @@ public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -479,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -518,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java new file mode 100644 index 00000000..c678b425 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface StartScanRunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanConfig to be used. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanConfig to be used. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java similarity index 65% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java index cb679cb0..d9fff68e 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `StopScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.StopScanRunRequest} */ -public final class StopScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StopScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) StopScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StopScanRunRequest.newBuilder() to construct. private StopScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StopScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StopScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StopScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StopScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private StopScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest other = - (com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest other = (com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `StopScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.StopScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +345,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.getDefaultInstance(); } @@ -403,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest result = - new com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest(this); + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest result = new com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest)other); } else { super.mergeFrom(other); return this; @@ -454,9 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -494,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -546,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -629,32 +566,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -666,8 +601,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java new file mode 100644 index 00000000..20f3af5a --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface StopScanRunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanRun to be stopped. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanRun to be stopped. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java index 72451e53..37c9d54c 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Request for the `UpdateScanConfigRequest` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest} */ -public final class UpdateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) UpdateScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateScanConfigRequest.newBuilder() to construct. private UpdateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateScanConfigRequest() {} + private UpdateScanConfigRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private UpdateScanConfigRequest( case 0: done = true; break; - case 18: - { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } - - break; + case 18: { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); + } + scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,43 +92,36 @@ private UpdateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.Builder.class); } public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1alpha.ScanConfig scanConfig_; /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -158,38 +129,27 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig() { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; } /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder() { @@ -199,17 +159,13 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -217,17 +173,13 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -235,16 +187,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -252,7 +201,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (scanConfig_ != null) { output.writeMessage(2, getScanConfig()); } @@ -281,10 +230,12 @@ public int getSerializedSize() { size = 0; if (scanConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getScanConfig()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -294,21 +245,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) obj; if (hasScanConfig() != other.hasScanConfig()) return false; if (hasScanConfig()) { - if (!getScanConfig().equals(other.getScanConfig())) return false; + if (!getScanConfig() + .equals(other.getScanConfig())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -335,145 +287,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `UpdateScanConfigRequest` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -493,16 +434,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -516,8 +455,7 @@ public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest build @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest(this); if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; } else { @@ -536,51 +474,46 @@ public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.getDefaultInstance()) return this; if (other.hasScanConfig()) { mergeScanConfig(other.getScanConfig()); } @@ -606,9 +539,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -620,64 +551,45 @@ public Builder mergeFrom( private com.google.cloud.websecurityscanner.v1alpha.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> - scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> scanConfigBuilder_; /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -693,17 +605,13 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanCon return this; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setScanConfig( com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder builderForValue) { @@ -717,25 +625,19 @@ public Builder setScanConfig( return this; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanConfig value) { if (scanConfigBuilder_ == null) { if (scanConfig_ != null) { scanConfig_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.newBuilder(scanConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial(); } else { scanConfig_ = value; } @@ -747,17 +649,13 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanC return this; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearScanConfig() { if (scanConfigBuilder_ == null) { @@ -771,71 +669,54 @@ public Builder clearScanConfig() { return this; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanConfigBuilder() { - + onChanged(); return getScanConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder - getScanConfigOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder() { if (scanConfigBuilder_ != null) { return scanConfigBuilder_.getMessageOrBuilder(); } else { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; } } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> getScanConfigFieldBuilder() { if (scanConfigBuilder_ == null) { - scanConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( - getScanConfig(), getParentForChildren(), isClean()); + scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( + getScanConfig(), + getParentForChildren(), + isClean()); scanConfig_ = null; } return scanConfigBuilder_; @@ -843,61 +724,45 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanCon private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -913,18 +778,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -935,22 +798,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -962,16 +822,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -985,74 +842,61 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1062,32 +906,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1099,8 +941,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java index 14c1862b..35cda492 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java @@ -1,116 +1,75 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface UpdateScanConfigRequestOrBuilder - extends +public interface UpdateScanConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ boolean hasScanConfig(); /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig(); /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder(); /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java similarity index 70% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java index c87d214c..b2dd828b 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Information regarding any resource causing the vulnerability such
  * as JavaScript sources, image, audio files, etc.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ViolatingResource}
  */
-public final class ViolatingResource extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ViolatingResource extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ViolatingResource)
     ViolatingResourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ViolatingResource.newBuilder() to construct.
   private ViolatingResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ViolatingResource() {
     contentType_ = "";
     resourceUrl_ = "";
@@ -45,15 +27,16 @@ private ViolatingResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ViolatingResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ViolatingResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,27 +55,25 @@ private ViolatingResource(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              contentType_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            contentType_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              resourceUrl_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            resourceUrl_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,39 +81,34 @@ private ViolatingResource(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto
-        .internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.class,
-            com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder.class);
+            com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.class, com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder.class);
   }
 
   public static final int CONTENT_TYPE_FIELD_NUMBER = 1;
   private volatile java.lang.Object contentType_;
   /**
-   *
-   *
    * 
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The contentType. */ @java.lang.Override @@ -141,29 +117,29 @@ public java.lang.String getContentType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; } } /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The bytes for contentType. */ @java.lang.Override - public com.google.protobuf.ByteString getContentTypeBytes() { + public com.google.protobuf.ByteString + getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentType_ = b; return b; } else { @@ -174,14 +150,11 @@ public com.google.protobuf.ByteString getContentTypeBytes() { public static final int RESOURCE_URL_FIELD_NUMBER = 2; private volatile java.lang.Object resourceUrl_; /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The resourceUrl. */ @java.lang.Override @@ -190,29 +163,29 @@ public java.lang.String getResourceUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -221,7 +194,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contentType_); } @@ -263,16 +236,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ViolatingResource)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource other = - (com.google.cloud.websecurityscanner.v1alpha.ViolatingResource) obj; + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource other = (com.google.cloud.websecurityscanner.v1alpha.ViolatingResource) obj; - if (!getContentType().equals(other.getContentType())) return false; - if (!getResourceUrl().equals(other.getResourceUrl())) return false; + if (!getContentType() + .equals(other.getContentType())) return false; + if (!getResourceUrl() + .equals(other.getResourceUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,104 +268,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ViolatingResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information regarding any resource causing the vulnerability such
    * as JavaScript sources, image, audio files, etc.
@@ -399,23 +365,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ViolatingResource}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ViolatingResource)
       com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.class,
-              com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder.class);
+              com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.class, com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.newBuilder()
@@ -423,15 +387,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -443,14 +408,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource
-        getDefaultInstanceForType() {
+    public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getDefaultInstanceForType() {
       return com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance();
     }
 
@@ -465,8 +429,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource buildPartial() {
-      com.google.cloud.websecurityscanner.v1alpha.ViolatingResource result =
-          new com.google.cloud.websecurityscanner.v1alpha.ViolatingResource(this);
+      com.google.cloud.websecurityscanner.v1alpha.ViolatingResource result = new com.google.cloud.websecurityscanner.v1alpha.ViolatingResource(this);
       result.contentType_ = contentType_;
       result.resourceUrl_ = resourceUrl_;
       onBuilt();
@@ -477,39 +440,38 @@ public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource buildPartia
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ViolatingResource) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ViolatingResource) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ViolatingResource)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -517,9 +479,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ViolatingResource other) {
-      if (other
-          == com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance()) return this;
       if (!other.getContentType().isEmpty()) {
         contentType_ = other.contentType_;
         onChanged();
@@ -547,9 +507,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1alpha.ViolatingResource)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ViolatingResource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -561,20 +519,18 @@ public Builder mergeFrom(
 
     private java.lang.Object contentType_ = "";
     /**
-     *
-     *
      * 
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return The contentType. */ public java.lang.String getContentType() { java.lang.Object ref = contentType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; @@ -583,21 +539,20 @@ public java.lang.String getContentType() { } } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return The bytes for contentType. */ - public com.google.protobuf.ByteString getContentTypeBytes() { + public com.google.protobuf.ByteString + getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentType_ = b; return b; } else { @@ -605,61 +560,54 @@ public com.google.protobuf.ByteString getContentTypeBytes() { } } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @param value The contentType to set. * @return This builder for chaining. */ - public Builder setContentType(java.lang.String value) { + public Builder setContentType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contentType_ = value; onChanged(); return this; } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = getDefaultInstance().getContentType(); onChanged(); return this; } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @param value The bytes for contentType to set. * @return This builder for chaining. */ - public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { + public Builder setContentTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentType_ = value; onChanged(); return this; @@ -667,20 +615,18 @@ public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceUrl_ = ""; /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; @@ -689,21 +635,20 @@ public java.lang.String getResourceUrl() { } } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -711,68 +656,61 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @param value The resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrl(java.lang.String value) { + public Builder setResourceUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUrl_ = value; onChanged(); return this; } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return This builder for chaining. */ public Builder clearResourceUrl() { - + resourceUrl_ = getDefaultInstance().getResourceUrl(); onChanged(); return this; } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { + public Builder setResourceUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUrl_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -782,13 +720,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ViolatingResource) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ViolatingResource) - private static final com.google.cloud.websecurityscanner.v1alpha.ViolatingResource - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.ViolatingResource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ViolatingResource(); } @@ -797,16 +734,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ViolatingResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ViolatingResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ViolatingResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ViolatingResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -821,4 +758,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java similarity index 55% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java index 260c1f96..dbd8b138 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ViolatingResourceOrBuilder - extends +public interface ViolatingResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ViolatingResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The contentType. */ java.lang.String getContentType(); /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The bytes for contentType. */ - com.google.protobuf.ByteString getContentTypeBytes(); + com.google.protobuf.ByteString + getContentTypeBytes(); /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ - com.google.protobuf.ByteString getResourceUrlBytes(); + com.google.protobuf.ByteString + getResourceUrlBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java index 8544d3d4..d9b14433 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Information about vulnerable or missing HTTP Headers.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableHeaders} */ -public final class VulnerableHeaders extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VulnerableHeaders extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) VulnerableHeadersOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VulnerableHeaders.newBuilder() to construct. private VulnerableHeaders(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VulnerableHeaders() { headers_ = java.util.Collections.emptyList(); missingHeaders_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private VulnerableHeaders() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableHeaders(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VulnerableHeaders( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,41 +55,31 @@ private VulnerableHeaders( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000001; - } - headers_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + headers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000002; - } - missingHeaders_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; + headers_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + missingHeaders_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + missingHeaders_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,7 +87,8 @@ private VulnerableHeaders( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -126,96 +100,79 @@ private VulnerableHeaders( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.class, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder.class); } - public interface HeaderOrBuilder - extends + public interface HeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); } /** - * - * *
    * Describes a HTTP Header.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header} */ - public static final class Header extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Header extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) HeaderOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Header.newBuilder() to construct. private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Header() { name_ = ""; value_ = ""; @@ -223,15 +180,16 @@ private Header() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Header(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Header( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -250,27 +208,25 @@ private Header( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -278,39 +234,34 @@ private Header( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.class, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -319,29 +270,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -352,14 +303,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -368,29 +316,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -399,7 +347,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -411,7 +358,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -441,16 +389,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header other = - (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) obj; + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header other = (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) obj; - if (!getName().equals(other.getName())) return false; - if (!getValue().equals(other.getValue())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -472,95 +421,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -570,49 +511,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Describes a HTTP Header.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.class, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -624,22 +560,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header build() { - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result = - buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -648,8 +581,7 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header buil @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result = - new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header(this); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result = new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header(this); result.name_ = name_; result.value_ = value_; onBuilt(); @@ -660,53 +592,46 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -734,9 +659,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -748,20 +671,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -770,21 +691,20 @@ public java.lang.String getName() { } } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -792,61 +712,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -854,20 +767,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -876,21 +787,20 @@ public java.lang.String getValue() { } } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -898,66 +808,58 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -970,32 +872,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) - private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header(); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser
PARSER = - new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Header parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Header parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Header(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -1007,177 +907,133 @@ public com.google.protobuf.Parser
getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int HEADERS_FIELD_NUMBER = 1; - private java.util.List - headers_; + private java.util.List headers_; /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public java.util.List - getHeadersList() { + public java.util.List getHeadersList() { return headers_; } /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + public java.util.List getHeadersOrBuilderList() { return headers_; } /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ @java.lang.Override public int getHeadersCount() { return headers_.size(); } /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getHeaders(int index) { return headers_.get(index); } /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder - getHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( + int index) { return headers_.get(index); } public static final int MISSING_HEADERS_FIELD_NUMBER = 2; - private java.util.List - missingHeaders_; + private java.util.List missingHeaders_; /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public java.util.List - getMissingHeadersList() { + public java.util.List getMissingHeadersList() { return missingHeaders_; } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + public java.util.List getMissingHeadersOrBuilderList() { return missingHeaders_; } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override public int getMissingHeadersCount() { return missingHeaders_.size(); } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getMissingHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getMissingHeaders(int index) { return missingHeaders_.get(index); } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index) { return missingHeaders_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1189,7 +1045,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < headers_.size(); i++) { output.writeMessage(1, headers_.get(i)); } @@ -1206,10 +1063,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < headers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, headers_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, headers_.get(i)); } for (int i = 0; i < missingHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, missingHeaders_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, missingHeaders_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1219,16 +1078,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders other = - (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) obj; + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders other = (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) obj; - if (!getHeadersList().equals(other.getHeadersList())) return false; - if (!getMissingHeadersList().equals(other.getMissingHeadersList())) return false; + if (!getHeadersList() + .equals(other.getHeadersList())) return false; + if (!getMissingHeadersList() + .equals(other.getMissingHeadersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1254,127 +1114,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about vulnerable or missing HTTP Headers.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableHeaders} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.class, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.newBuilder() @@ -1382,18 +1232,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getHeadersFieldBuilder(); getMissingHeadersFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1413,14 +1263,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance(); } @@ -1435,8 +1284,7 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders result = - new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders(this); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders result = new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders(this); int from_bitField0_ = bitField0_; if (headersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1464,39 +1312,38 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders)other); } else { super.mergeFrom(other); return this; @@ -1504,9 +1351,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance()) return this; if (headersBuilder_ == null) { if (!other.headers_.isEmpty()) { if (headers_.isEmpty()) { @@ -1525,10 +1370,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.VulnerableH headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000001); - headersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHeadersFieldBuilder() - : null; + headersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHeadersFieldBuilder() : null; } else { headersBuilder_.addAllMessages(other.headers_); } @@ -1552,10 +1396,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.VulnerableH missingHeadersBuilder_ = null; missingHeaders_ = other.missingHeaders_; bitField0_ = (bitField0_ & ~0x00000002); - missingHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMissingHeadersFieldBuilder() - : null; + missingHeadersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMissingHeadersFieldBuilder() : null; } else { missingHeadersBuilder_.addAllMessages(other.missingHeaders_); } @@ -1580,9 +1423,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1591,39 +1432,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - headers_ = java.util.Collections.emptyList(); - + private java.util.List headers_ = + java.util.Collections.emptyList(); private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - headers_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header>(headers_); + headers_ = new java.util.ArrayList(headers_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> - headersBuilder_; + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> headersBuilder_; /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public java.util.List - getHeadersList() { + public java.util.List getHeadersList() { if (headersBuilder_ == null) { return java.util.Collections.unmodifiableList(headers_); } else { @@ -1631,14 +1461,11 @@ private void ensureHeadersIsMutable() { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public int getHeadersCount() { if (headersBuilder_ == null) { @@ -1648,17 +1475,13 @@ public int getHeadersCount() { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getHeaders(int index) { if (headersBuilder_ == null) { return headers_.get(index); } else { @@ -1666,14 +1489,11 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getH } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public Builder setHeaders( int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { @@ -1690,19 +1510,14 @@ public Builder setHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public Builder setHeaders( - int index, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - builderForValue) { + int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.set(index, builderForValue.build()); @@ -1713,17 +1528,13 @@ public Builder setHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public Builder addHeaders( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { + public Builder addHeaders(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1737,14 +1548,11 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { @@ -1761,18 +1569,14 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(builderForValue.build()); @@ -1783,19 +1587,14 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( - int index, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - builderForValue) { + int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(index, builderForValue.build()); @@ -1806,22 +1605,18 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public Builder addAllHeaders( - java.lang.Iterable< - ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header> - values) { + java.lang.Iterable values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); @@ -1829,14 +1624,11 @@ public Builder addAllHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public Builder clearHeaders() { if (headersBuilder_ == null) { @@ -1849,14 +1641,11 @@ public Builder clearHeaders() { return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ public Builder removeHeaders(int index) { if (headersBuilder_ == null) { @@ -1869,50 +1658,39 @@ public Builder removeHeaders(int index) { return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - getHeadersBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder getHeadersBuilder( + int index) { return getHeadersFieldBuilder().getBuilder(index); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder - getHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( + int index) { if (headersBuilder_ == null) { - return headers_.get(index); - } else { + return headers_.get(index); } else { return headersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> - getHeadersOrBuilderList() { + public java.util.List + getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { @@ -1920,105 +1698,74 @@ public Builder removeHeaders(int index) { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - addHeadersBuilder() { - return getHeadersFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - .getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder addHeadersBuilder() { + return getHeadersFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - addHeadersBuilder(int index) { - return getHeadersFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - .getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder addHeadersBuilder( + int index) { + return getHeadersFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - public java.util.List< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder> - getHeadersBuilderList() { + public java.util.List + getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { - headersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder>( - headers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder>( + headers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); headers_ = null; } return headersBuilder_; } - private java.util.List - missingHeaders_ = java.util.Collections.emptyList(); - + private java.util.List missingHeaders_ = + java.util.Collections.emptyList(); private void ensureMissingHeadersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header>( - missingHeaders_); + missingHeaders_ = new java.util.ArrayList(missingHeaders_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> - missingHeadersBuilder_; + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> missingHeadersBuilder_; /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List - getMissingHeadersList() { + public java.util.List getMissingHeadersList() { if (missingHeadersBuilder_ == null) { return java.util.Collections.unmodifiableList(missingHeaders_); } else { @@ -2026,15 +1773,11 @@ private void ensureMissingHeadersIsMutable() { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public int getMissingHeadersCount() { if (missingHeadersBuilder_ == null) { @@ -2044,18 +1787,13 @@ public int getMissingHeadersCount() { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getMissingHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getMissingHeaders(int index) { if (missingHeadersBuilder_ == null) { return missingHeaders_.get(index); } else { @@ -2063,15 +1801,11 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getM } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public Builder setMissingHeaders( int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { @@ -2088,20 +1822,14 @@ public Builder setMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public Builder setMissingHeaders( - int index, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - builderForValue) { + int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.set(index, builderForValue.build()); @@ -2112,18 +1840,13 @@ public Builder setMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public Builder addMissingHeaders( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { + public Builder addMissingHeaders(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { if (missingHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2137,15 +1860,11 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { @@ -2162,19 +1881,14 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.add(builderForValue.build()); @@ -2185,20 +1899,14 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( - int index, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - builderForValue) { + int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.add(index, builderForValue.build()); @@ -2209,23 +1917,18 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public Builder addAllMissingHeaders( - java.lang.Iterable< - ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header> - values) { + java.lang.Iterable values) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingHeaders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, missingHeaders_); onChanged(); } else { missingHeadersBuilder_.addAllMessages(values); @@ -2233,15 +1936,11 @@ public Builder addAllMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public Builder clearMissingHeaders() { if (missingHeadersBuilder_ == null) { @@ -2254,15 +1953,11 @@ public Builder clearMissingHeaders() { return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ public Builder removeMissingHeaders(int index) { if (missingHeadersBuilder_ == null) { @@ -2275,53 +1970,39 @@ public Builder removeMissingHeaders(int index) { return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - getMissingHeadersBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder getMissingHeadersBuilder( + int index) { return getMissingHeadersFieldBuilder().getBuilder(index); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index) { if (missingHeadersBuilder_ == null) { - return missingHeaders_.get(index); - } else { + return missingHeaders_.get(index); } else { return missingHeadersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> - getMissingHeadersOrBuilderList() { + public java.util.List + getMissingHeadersOrBuilderList() { if (missingHeadersBuilder_ != null) { return missingHeadersBuilder_.getMessageOrBuilderList(); } else { @@ -2329,70 +2010,45 @@ public Builder removeMissingHeaders(int index) { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - addMissingHeadersBuilder() { - return getMissingHeadersFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - .getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder addMissingHeadersBuilder() { + return getMissingHeadersFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder - addMissingHeadersBuilder(int index) { - return getMissingHeadersFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - .getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder addMissingHeadersBuilder( + int index) { + return getMissingHeadersFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder> - getMissingHeadersBuilderList() { + public java.util.List + getMissingHeadersBuilderList() { return getMissingHeadersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> getMissingHeadersFieldBuilder() { if (missingHeadersBuilder_ == null) { - missingHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder>( + missingHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder>( missingHeaders_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2401,9 +2057,9 @@ public Builder removeMissingHeaders(int index) { } return missingHeadersBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2413,13 +2069,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) - private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders(); } @@ -2428,16 +2083,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableHeaders parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableHeaders(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableHeaders parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableHeaders(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2452,4 +2107,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java similarity index 51% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java index e78696c1..842572d1 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java @@ -1,150 +1,97 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface VulnerableHeadersOrBuilder - extends +public interface VulnerableHeadersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - java.util.List + java.util.List getHeadersList(); /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getHeaders(int index); /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ int getHeadersCount(); /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ - java.util.List< - ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + java.util.List getHeadersOrBuilderList(); /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; */ com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( int index); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - java.util.List + java.util.List getMissingHeadersList(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getMissingHeaders(int index); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ int getMissingHeadersCount(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - java.util.List< - ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + java.util.List getMissingHeadersOrBuilderList(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; */ - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java index 1cbcd0ba..6802d7f8 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Information about vulnerable request parameters.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableParameters} */ -public final class VulnerableParameters extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VulnerableParameters extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) VulnerableParametersOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VulnerableParameters.newBuilder() to construct. private VulnerableParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VulnerableParameters() { parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableParameters(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VulnerableParameters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,23 +54,22 @@ private VulnerableParameters( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameterNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - parameterNames_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + parameterNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parameterNames_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,7 +77,8 @@ private VulnerableParameters( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -104,61 +87,50 @@ private VulnerableParameters( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.class, - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder.class); } public static final int PARAMETER_NAMES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList parameterNames_; /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList getParameterNamesList() { + public com.google.protobuf.ProtocolStringList + getParameterNamesList() { return parameterNames_; } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -166,23 +138,20 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString + getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,7 +163,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < parameterNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameterNames_.getRaw(i)); } @@ -223,15 +193,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters other = - (com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) obj; + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters other = (com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) obj; - if (!getParameterNamesList().equals(other.getParameterNamesList())) return false; + if (!getParameterNamesList() + .equals(other.getParameterNamesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -253,127 +223,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about vulnerable request parameters.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableParameters} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.class, - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.newBuilder() @@ -381,15 +341,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -399,14 +360,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance(); } @@ -421,8 +381,7 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters build() @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters result = - new com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters(this); + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters result = new com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -437,50 +396,46 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters other) { - if (other - == com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters other) { + if (other == com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance()) return this; if (!other.parameterNames_.isEmpty()) { if (parameterNames_.isEmpty()) { parameterNames_ = other.parameterNames_; @@ -510,9 +465,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -521,55 +474,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList parameterNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureParameterNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { parameterNames_ = new com.google.protobuf.LazyStringArrayList(parameterNames_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList getParameterNamesList() { + public com.google.protobuf.ProtocolStringList + getParameterNamesList() { return parameterNames_.getUnmodifiableView(); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -577,90 +519,80 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString + getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index to set the value at. * @param value The parameterNames to set. * @return This builder for chaining. */ - public Builder setParameterNames(int index, java.lang.String value) { + public Builder setParameterNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.set(index, value); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param value The parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNames(java.lang.String value) { + public Builder addParameterNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param values The parameterNames to add. * @return This builder for chaining. */ - public Builder addAllParameterNames(java.lang.Iterable values) { + public Builder addAllParameterNames( + java.lang.Iterable values) { ensureParameterNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameterNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, parameterNames_); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return This builder for chaining. */ public Builder clearParameterNames() { @@ -670,30 +602,28 @@ public Builder clearParameterNames() { return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param value The bytes of the parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNamesBytes(com.google.protobuf.ByteString value) { + public Builder addParameterNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -703,32 +633,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) - private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters(); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableParameters(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableParameters(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -740,8 +668,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java similarity index 60% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java index de2eb8e5..c75e054f 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java @@ -1,76 +1,50 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface VulnerableParametersOrBuilder - extends +public interface VulnerableParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - java.util.List getParameterNamesList(); + java.util.List + getParameterNamesList(); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ int getParameterNamesCount(); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ java.lang.String getParameterNames(int index); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - com.google.protobuf.ByteString getParameterNamesBytes(int index); + com.google.protobuf.ByteString + getParameterNamesBytes(int index); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java new file mode 100644 index 00000000..f6590b7c --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java @@ -0,0 +1,408 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class WebSecurityScannerProto { + private WebSecurityScannerProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nBgoogle/cloud/websecurityscanner/v1alph" + + "a/web_security_scanner.proto\022\'google.clo" + + "ud.websecurityscanner.v1alpha\032\034google/ap" + + "i/annotations.proto\032\027google/api/client.p" + + "roto\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\0329google/cloud/w" + + "ebsecurityscanner/v1alpha/crawled_url.pr" + + "oto\0325google/cloud/websecurityscanner/v1a" + + "lpha/finding.proto\032@google/cloud/websecu" + + "rityscanner/v1alpha/finding_type_stats.p" + + "roto\0329google/cloud/websecurityscanner/v1" + + "alpha/scan_config.proto\0326google/cloud/we" + + "bsecurityscanner/v1alpha/scan_run.proto\032" + + "\033google/protobuf/empty.proto\032 google/pro" + + "tobuf/field_mask.proto\"\255\001\n\027CreateScanCon" + + "figRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+clou" + + "dresourcemanager.googleapis.com/Project\022" + + "M\n\013scan_config\030\002 \001(\01323.google.cloud.webs" + + "ecurityscanner.v1alpha.ScanConfigB\003\340A\002\"]" + + "\n\027DeleteScanConfigRequest\022B\n\004name\030\001 \001(\tB" + + "4\340A\002\372A.\n,websecurityscanner.googleapis.c" + + "om/ScanConfig\"Z\n\024GetScanConfigRequest\022B\n" + + "\004name\030\001 \001(\tB4\340A\002\372A.\n,websecurityscanner." + + "googleapis.com/ScanConfig\"\204\001\n\026ListScanCo" + + "nfigsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cl" + + "oudresourcemanager.googleapis.com/Projec" + + "t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" + + "\"\236\001\n\027UpdateScanConfigRequest\022M\n\013scan_con" + + "fig\030\002 \001(\01323.google.cloud.websecurityscan" + + "ner.v1alpha.ScanConfigB\003\340A\002\0224\n\013update_ma" + + "sk\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" + + "\002\"}\n\027ListScanConfigsResponse\022I\n\014scan_con" + + "figs\030\001 \003(\01323.google.cloud.websecuritysca" + + "nner.v1alpha.ScanConfig\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"Y\n\023StartScanRunRequest\022B\n\004name\030" + + "\001 \001(\tB4\340A\002\372A.\n,websecurityscanner.google" + + "apis.com/ScanConfig\"T\n\021GetScanRunRequest" + + "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecurityscann" + + "er.googleapis.com/ScanRun\"\202\001\n\023ListScanRu" + + "nsRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,webse" + + "curityscanner.googleapis.com/ScanConfig\022" + + "\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"t" + + "\n\024ListScanRunsResponse\022C\n\tscan_runs\030\001 \003(" + + "\01320.google.cloud.websecurityscanner.v1al" + + "pha.ScanRun\022\027\n\017next_page_token\030\002 \001(\t\"U\n\022" + + "StopScanRunRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+" + + "\n)websecurityscanner.googleapis.com/Scan" + + "Run\"\202\001\n\026ListCrawledUrlsRequest\022A\n\006parent" + + "\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner.googl" + + "eapis.com/ScanRun\022\022\n\npage_token\030\002 \001(\t\022\021\n" + + "\tpage_size\030\003 \001(\005\"}\n\027ListCrawledUrlsRespo" + + "nse\022I\n\014crawled_urls\030\001 \003(\01323.google.cloud" + + ".websecurityscanner.v1alpha.CrawledUrl\022\027" + + "\n\017next_page_token\030\002 \001(\t\"T\n\021GetFindingReq" + + "uest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecuritys" + + "canner.googleapis.com/Finding\"\224\001\n\023ListFi" + + "ndingsRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)w" + + "ebsecurityscanner.googleapis.com/ScanRun" + + "\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\022\n\npage_token\030\003 \001(" + + "\t\022\021\n\tpage_size\030\004 \001(\005\"s\n\024ListFindingsResp" + + "onse\022B\n\010findings\030\001 \003(\01320.google.cloud.we" + + "bsecurityscanner.v1alpha.Finding\022\027\n\017next" + + "_page_token\030\002 \001(\t\"`\n\033ListFindingTypeStat" + + "sRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)websec" + + "urityscanner.googleapis.com/ScanRun\"u\n\034L" + + "istFindingTypeStatsResponse\022U\n\022finding_t" + + "ype_stats\030\001 \003(\01329.google.cloud.websecuri" + + "tyscanner.v1alpha.FindingTypeStats2\264\026\n\022W" + + "ebSecurityScanner\022\335\001\n\020CreateScanConfig\022@" + + ".google.cloud.websecurityscanner.v1alpha" + + ".CreateScanConfigRequest\0323.google.cloud." + + "websecurityscanner.v1alpha.ScanConfig\"R\202" + + "\323\344\223\0027\"(/v1alpha/{parent=projects/*}/scan" + + "Configs:\013scan_config\332A\022parent,scan_confi" + + "g\022\245\001\n\020DeleteScanConfig\022@.google.cloud.we" + + "bsecurityscanner.v1alpha.DeleteScanConfi" + + "gRequest\032\026.google.protobuf.Empty\"7\202\323\344\223\002*" + + "*(/v1alpha/{name=projects/*/scanConfigs/" + + "*}\332A\004name\022\274\001\n\rGetScanConfig\022=.google.clo" + + "ud.websecurityscanner.v1alpha.GetScanCon" + + "figRequest\0323.google.cloud.websecuritysca" + + "nner.v1alpha.ScanConfig\"7\202\323\344\223\002*\022(/v1alph" + + "a/{name=projects/*/scanConfigs/*}\332A\004name" + + "\022\317\001\n\017ListScanConfigs\022?.google.cloud.webs" + + "ecurityscanner.v1alpha.ListScanConfigsRe" + + "quest\032@.google.cloud.websecurityscanner." + + "v1alpha.ListScanConfigsResponse\"9\202\323\344\223\002*\022" + + "(/v1alpha/{parent=projects/*}/scanConfig" + + "s\332A\006parent\022\356\001\n\020UpdateScanConfig\022@.google" + + ".cloud.websecurityscanner.v1alpha.Update" + + "ScanConfigRequest\0323.google.cloud.websecu" + + "rityscanner.v1alpha.ScanConfig\"c\202\323\344\223\002C24" + + "/v1alpha/{scan_config.name=projects/*/sc" + + "anConfigs/*}:\013scan_config\332A\027scan_config," + + "update_mask\022\300\001\n\014StartScanRun\022<.google.cl" + + "oud.websecurityscanner.v1alpha.StartScan" + + "RunRequest\0320.google.cloud.websecuritysca" + + "nner.v1alpha.ScanRun\"@\202\323\344\223\0023\"./v1alpha/{" + + "name=projects/*/scanConfigs/*}:start:\001*\332" + + "A\004name\022\276\001\n\nGetScanRun\022:.google.cloud.web" + + "securityscanner.v1alpha.GetScanRunReques" + + "t\0320.google.cloud.websecurityscanner.v1al" + + "pha.ScanRun\"B\202\323\344\223\0025\0223/v1alpha/{name=proj" + + "ects/*/scanConfigs/*/scanRuns/*}\332A\004name\022" + + "\321\001\n\014ListScanRuns\022<.google.cloud.websecur" + + "ityscanner.v1alpha.ListScanRunsRequest\032=" + + ".google.cloud.websecurityscanner.v1alpha" + + ".ListScanRunsResponse\"D\202\323\344\223\0025\0223/v1alpha/" + + "{parent=projects/*/scanConfigs/*}/scanRu" + + "ns\332A\006parent\022\310\001\n\013StopScanRun\022;.google.clo" + + "ud.websecurityscanner.v1alpha.StopScanRu" + + "nRequest\0320.google.cloud.websecurityscann" + + "er.v1alpha.ScanRun\"J\202\323\344\223\002=\"8/v1alpha/{na" + + "me=projects/*/scanConfigs/*/scanRuns/*}:" + + "stop:\001*\332A\004name\022\350\001\n\017ListCrawledUrls\022?.goo" + + "gle.cloud.websecurityscanner.v1alpha.Lis" + + "tCrawledUrlsRequest\032@.google.cloud.webse" + + "curityscanner.v1alpha.ListCrawledUrlsRes" + + "ponse\"R\202\323\344\223\002C\022A/v1alpha/{parent=projects" + + "/*/scanConfigs/*/scanRuns/*}/crawledUrls" + + "\332A\006parent\022\311\001\n\nGetFinding\022:.google.cloud." + + "websecurityscanner.v1alpha.GetFindingReq" + + "uest\0320.google.cloud.websecurityscanner.v" + + "1alpha.Finding\"M\202\323\344\223\002@\022>/v1alpha/{name=p" + + "rojects/*/scanConfigs/*/scanRuns/*/findi" + + "ngs/*}\332A\004name\022\343\001\n\014ListFindings\022<.google." + + "cloud.websecurityscanner.v1alpha.ListFin" + + "dingsRequest\032=.google.cloud.websecuritys" + + "canner.v1alpha.ListFindingsResponse\"V\202\323\344" + + "\223\002@\022>/v1alpha/{parent=projects/*/scanCon" + + "figs/*/scanRuns/*}/findings\332A\rparent,fil" + + "ter\022\374\001\n\024ListFindingTypeStats\022D.google.cl" + + "oud.websecurityscanner.v1alpha.ListFindi" + + "ngTypeStatsRequest\032E.google.cloud.websec" + + "urityscanner.v1alpha.ListFindingTypeStat" + + "sResponse\"W\202\323\344\223\002H\022F/v1alpha/{parent=proj" + + "ects/*/scanConfigs/*/scanRuns/*}/finding" + + "TypeStats\332A\006parent\032U\312A!websecurityscanne" + + "r.googleapis.com\322A.https://www.googleapi" + + "s.com/auth/cloud-platformB\243\001\n+com.google" + + ".cloud.websecurityscanner.v1alphaB\027WebSe" + + "curityScannerProtoP\001ZYgoogle.golang.org/" + + "genproto/googleapis/cloud/websecuritysca" + + "nner/v1alpha;websecurityscannerb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor, + new java.lang.String[] { "Parent", "ScanConfig", }); + internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor, + new java.lang.String[] { "ScanConfig", "UpdateMask", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor, + new java.lang.String[] { "ScanConfigs", "NextPageToken", }); + internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor, + new java.lang.String[] { "ScanRuns", "NextPageToken", }); + internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor, + new java.lang.String[] { "CrawledUrls", "NextPageToken", }); + internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageToken", "PageSize", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor, + new java.lang.String[] { "Findings", "NextPageToken", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor, + new java.lang.String[] { "Parent", }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor, + new java.lang.String[] { "FindingTypeStats", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java index f8a3b4fc..f2ee849b 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; /** - * - * *
  * Information reported for an XSS.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.Xss} */ -public final class Xss extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Xss extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.Xss) XssOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Xss.newBuilder() to construct. private Xss(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Xss() { stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; errorMessage_ = ""; @@ -44,15 +26,16 @@ private Xss() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Xss(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Xss( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private Xss( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stackTraces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - stackTraces_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stackTraces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + stackTraces_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + errorMessage_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private Xss( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -112,61 +94,50 @@ private Xss( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.Xss.class, - com.google.cloud.websecurityscanner.v1alpha.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.Xss.class, com.google.cloud.websecurityscanner.v1alpha.Xss.Builder.class); } public static final int STACK_TRACES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList stackTraces_; /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList getStackTracesList() { + public com.google.protobuf.ProtocolStringList + getStackTracesList() { return stackTraces_; } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -174,32 +145,27 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString getStackTracesBytes(int index) { + public com.google.protobuf.ByteString + getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object errorMessage_; /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The errorMessage. */ @java.lang.Override @@ -208,29 +174,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -239,7 +205,6 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +216,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < stackTraces_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stackTraces_.getRaw(i)); } @@ -286,16 +252,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.Xss)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.Xss other = - (com.google.cloud.websecurityscanner.v1alpha.Xss) obj; + com.google.cloud.websecurityscanner.v1alpha.Xss other = (com.google.cloud.websecurityscanner.v1alpha.Xss) obj; - if (!getStackTracesList().equals(other.getStackTracesList())) return false; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getStackTracesList() + .equals(other.getStackTracesList())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -318,127 +285,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1alpha.Xss parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.Xss prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information reported for an XSS.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.Xss} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.Xss) com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.Xss.class, - com.google.cloud.websecurityscanner.v1alpha.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.Xss.class, com.google.cloud.websecurityscanner.v1alpha.Xss.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.Xss.newBuilder() @@ -446,15 +404,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -466,9 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; } @java.lang.Override @@ -487,8 +446,7 @@ public com.google.cloud.websecurityscanner.v1alpha.Xss build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Xss buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.Xss result = - new com.google.cloud.websecurityscanner.v1alpha.Xss(this); + com.google.cloud.websecurityscanner.v1alpha.Xss result = new com.google.cloud.websecurityscanner.v1alpha.Xss(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -504,39 +462,38 @@ public com.google.cloud.websecurityscanner.v1alpha.Xss buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.Xss) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.Xss) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.Xss)other); } else { super.mergeFrom(other); return this; @@ -544,8 +501,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.Xss other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance()) return this; if (!other.stackTraces_.isEmpty()) { if (stackTraces_.isEmpty()) { stackTraces_ = other.stackTraces_; @@ -588,55 +544,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList stackTraces_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStackTracesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { stackTraces_ = new com.google.protobuf.LazyStringArrayList(stackTraces_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList getStackTracesList() { + public com.google.protobuf.ProtocolStringList + getStackTracesList() { return stackTraces_.getUnmodifiableView(); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -644,90 +589,80 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString getStackTracesBytes(int index) { + public com.google.protobuf.ByteString + getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index to set the value at. * @param value The stackTraces to set. * @return This builder for chaining. */ - public Builder setStackTraces(int index, java.lang.String value) { + public Builder setStackTraces( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.set(index, value); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param value The stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTraces(java.lang.String value) { + public Builder addStackTraces( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param values The stackTraces to add. * @return This builder for chaining. */ - public Builder addAllStackTraces(java.lang.Iterable values) { + public Builder addAllStackTraces( + java.lang.Iterable values) { ensureStackTracesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stackTraces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stackTraces_); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return This builder for chaining. */ public Builder clearStackTraces() { @@ -737,22 +672,20 @@ public Builder clearStackTraces() { return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param value The bytes of the stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { + public Builder addStackTracesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); @@ -761,20 +694,18 @@ public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { private java.lang.Object errorMessage_ = ""; /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -783,21 +714,20 @@ public java.lang.String getErrorMessage() { } } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -805,68 +735,61 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage(java.lang.String value) { + public Builder setErrorMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -876,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.Xss) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.Xss) private static final com.google.cloud.websecurityscanner.v1alpha.Xss DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.Xss(); } @@ -890,16 +813,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.Xss getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Xss parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Xss(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Xss parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Xss(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -914,4 +837,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.Xss getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java similarity index 65% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java index dfa2303c..c70bccff 100644 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java @@ -1,101 +1,70 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface XssOrBuilder - extends +public interface XssOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.Xss) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - java.util.List getStackTracesList(); + java.util.List + getStackTracesList(); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ int getStackTracesCount(); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ java.lang.String getStackTraces(int index); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - com.google.protobuf.ByteString getStackTracesBytes(int index); + com.google.protobuf.ByteString + getStackTracesBytes(int index); /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString getErrorMessageBytes(); + com.google.protobuf.ByteString + getErrorMessageBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto rename to owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java similarity index 98% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java index 1cb0a29d..dc2d5c32 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java +++ b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java @@ -62,13 +62,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1718,10 +1718,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListScanConfigsPagedResponse extends AbstractPagedListResponse< - ListScanConfigsRequest, - ListScanConfigsResponse, - ScanConfig, - ListScanConfigsPage, + ListScanConfigsRequest, ListScanConfigsResponse, ScanConfig, ListScanConfigsPage, ListScanConfigsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1771,10 +1768,7 @@ public ApiFuture createPageAsync( public static class ListScanConfigsFixedSizeCollection extends AbstractFixedSizeCollection< - ListScanConfigsRequest, - ListScanConfigsResponse, - ScanConfig, - ListScanConfigsPage, + ListScanConfigsRequest, ListScanConfigsResponse, ScanConfig, ListScanConfigsPage, ListScanConfigsFixedSizeCollection> { private ListScanConfigsFixedSizeCollection( @@ -1795,10 +1789,7 @@ protected ListScanConfigsFixedSizeCollection createCollection( public static class ListScanRunsPagedResponse extends AbstractPagedListResponse< - ListScanRunsRequest, - ListScanRunsResponse, - ScanRun, - ListScanRunsPage, + ListScanRunsRequest, ListScanRunsResponse, ScanRun, ListScanRunsPage, ListScanRunsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1847,10 +1838,7 @@ public ApiFuture createPageAsync( public static class ListScanRunsFixedSizeCollection extends AbstractFixedSizeCollection< - ListScanRunsRequest, - ListScanRunsResponse, - ScanRun, - ListScanRunsPage, + ListScanRunsRequest, ListScanRunsResponse, ScanRun, ListScanRunsPage, ListScanRunsFixedSizeCollection> { private ListScanRunsFixedSizeCollection(List pages, int collectionSize) { @@ -1870,10 +1858,7 @@ protected ListScanRunsFixedSizeCollection createCollection( public static class ListCrawledUrlsPagedResponse extends AbstractPagedListResponse< - ListCrawledUrlsRequest, - ListCrawledUrlsResponse, - CrawledUrl, - ListCrawledUrlsPage, + ListCrawledUrlsRequest, ListCrawledUrlsResponse, CrawledUrl, ListCrawledUrlsPage, ListCrawledUrlsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1923,10 +1908,7 @@ public ApiFuture createPageAsync( public static class ListCrawledUrlsFixedSizeCollection extends AbstractFixedSizeCollection< - ListCrawledUrlsRequest, - ListCrawledUrlsResponse, - CrawledUrl, - ListCrawledUrlsPage, + ListCrawledUrlsRequest, ListCrawledUrlsResponse, CrawledUrl, ListCrawledUrlsPage, ListCrawledUrlsFixedSizeCollection> { private ListCrawledUrlsFixedSizeCollection( @@ -1947,10 +1929,7 @@ protected ListCrawledUrlsFixedSizeCollection createCollection( public static class ListFindingsPagedResponse extends AbstractPagedListResponse< - ListFindingsRequest, - ListFindingsResponse, - Finding, - ListFindingsPage, + ListFindingsRequest, ListFindingsResponse, Finding, ListFindingsPage, ListFindingsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1999,10 +1978,7 @@ public ApiFuture createPageAsync( public static class ListFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFindingsRequest, - ListFindingsResponse, - Finding, - ListFindingsPage, + ListFindingsRequest, ListFindingsResponse, Finding, ListFindingsPage, ListFindingsFixedSizeCollection> { private ListFindingsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java similarity index 97% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java index b218cd5b..39b6991d 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java +++ b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java @@ -31,6 +31,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.websecurityscanner.v1beta.stub.WebSecurityScannerStubSettings; @@ -46,10 +47,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are + *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java similarity index 99% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java index ee47a4c8..4d268738 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java +++ b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java @@ -55,6 +55,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java similarity index 100% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java diff --git a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java similarity index 99% rename from google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java index 52c5e9b6..634d66fc 100644 --- a/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java +++ b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java @@ -85,10 +85,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are + *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java similarity index 100% rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java similarity index 100% rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java similarity index 100% rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java diff --git a/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java b/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java similarity index 100% rename from google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java rename to owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java diff --git a/owl-bot-staging/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java b/owl-bot-staging/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java new file mode 100644 index 00000000..15b67642 --- /dev/null +++ b/owl-bot-staging/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java @@ -0,0 +1,1349 @@ +package com.google.cloud.websecurityscanner.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+ * applications hosted on Google Cloud Platform. It crawls your application, and
+ * attempts to exercise as many user inputs and event handlers as possible.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WebSecurityScannerGrpc { + + private WebSecurityScannerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.websecurityscanner.v1beta.WebSecurityScanner"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateScanConfigMethod() { + io.grpc.MethodDescriptor getCreateScanConfigMethod; + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { + WebSecurityScannerGrpc.getCreateScanConfigMethod = getCreateScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) + .build(); + } + } + } + return getCreateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", + requestType = com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteScanConfigMethod() { + io.grpc.MethodDescriptor getDeleteScanConfigMethod; + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { + WebSecurityScannerGrpc.getDeleteScanConfigMethod = getDeleteScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) + .build(); + } + } + } + return getDeleteScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", + requestType = com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetScanConfigMethod() { + io.grpc.MethodDescriptor getGetScanConfigMethod; + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + WebSecurityScannerGrpc.getGetScanConfigMethod = getGetScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) + .build(); + } + } + } + return getGetScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getListScanConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", + requestType = com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListScanConfigsMethod() { + io.grpc.MethodDescriptor getListScanConfigsMethod; + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + WebSecurityScannerGrpc.getListScanConfigsMethod = getListScanConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) + .build(); + } + } + } + return getListScanConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateScanConfigMethod() { + io.grpc.MethodDescriptor getUpdateScanConfigMethod; + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { + WebSecurityScannerGrpc.getUpdateScanConfigMethod = getUpdateScanConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) + .build(); + } + } + } + return getUpdateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartScanRun", + requestType = com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartScanRunMethod() { + io.grpc.MethodDescriptor getStartScanRunMethod; + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + WebSecurityScannerGrpc.getStartScanRunMethod = getStartScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) + .build(); + } + } + } + return getStartScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanRun", + requestType = com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetScanRunMethod() { + io.grpc.MethodDescriptor getGetScanRunMethod; + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + WebSecurityScannerGrpc.getGetScanRunMethod = getGetScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) + .build(); + } + } + } + return getGetScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListScanRunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", + requestType = com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListScanRunsMethod() { + io.grpc.MethodDescriptor getListScanRunsMethod; + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + WebSecurityScannerGrpc.getListScanRunsMethod = getListScanRunsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) + .build(); + } + } + } + return getListScanRunsMethod; + } + + private static volatile io.grpc.MethodDescriptor getStopScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopScanRun", + requestType = com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStopScanRunMethod() { + io.grpc.MethodDescriptor getStopScanRunMethod; + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + WebSecurityScannerGrpc.getStopScanRunMethod = getStopScanRunMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) + .build(); + } + } + } + return getStopScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCrawledUrlsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", + requestType = com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCrawledUrlsMethod() { + io.grpc.MethodDescriptor getListCrawledUrlsMethod; + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + WebSecurityScannerGrpc.getListCrawledUrlsMethod = getListCrawledUrlsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) + .build(); + } + } + } + return getListCrawledUrlsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFinding", + requestType = com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFindingMethod() { + io.grpc.MethodDescriptor getGetFindingMethod; + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + WebSecurityScannerGrpc.getGetFindingMethod = getGetFindingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) + .build(); + } + } + } + return getGetFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindings", + requestType = com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFindingsMethod() { + io.grpc.MethodDescriptor getListFindingsMethod; + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + WebSecurityScannerGrpc.getListFindingsMethod = getListFindingsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) + .build(); + } + } + } + return getListFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFindingTypeStatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", + requestType = com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFindingTypeStatsMethod() { + io.grpc.MethodDescriptor getListFindingTypeStatsMethod; + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { + WebSecurityScannerGrpc.getListFindingTypeStatsMethod = getListFindingTypeStatsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) + .build(); + } + } + } + return getListFindingTypeStatsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + }; + return WebSecurityScannerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WebSecurityScannerBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + }; + return WebSecurityScannerBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static WebSecurityScannerFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + }; + return WebSecurityScannerFutureStub.newStub(factory, channel); + } + + /** + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static abstract class WebSecurityScannerImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig(com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateScanConfigMethod(), responseObserver); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteScanConfigMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanConfigMethod(), responseObserver); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanConfigsMethod(), responseObserver); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig(com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateScanConfigMethod(), responseObserver); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartScanRunMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanRunsMethod(), responseObserver); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopScanRunMethod(), responseObserver); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCrawledUrlsMethod(), responseObserver); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingsMethod(), responseObserver); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingTypeStatsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig>( + this, METHODID_CREATE_SCAN_CONFIG))) + .addMethod( + getDeleteScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SCAN_CONFIG))) + .addMethod( + getGetScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig>( + this, METHODID_GET_SCAN_CONFIG))) + .addMethod( + getListScanConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse>( + this, METHODID_LIST_SCAN_CONFIGS))) + .addMethod( + getUpdateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig>( + this, METHODID_UPDATE_SCAN_CONFIG))) + .addMethod( + getStartScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun>( + this, METHODID_START_SCAN_RUN))) + .addMethod( + getGetScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun>( + this, METHODID_GET_SCAN_RUN))) + .addMethod( + getListScanRunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse>( + this, METHODID_LIST_SCAN_RUNS))) + .addMethod( + getStopScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun>( + this, METHODID_STOP_SCAN_RUN))) + .addMethod( + getListCrawledUrlsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse>( + this, METHODID_LIST_CRAWLED_URLS))) + .addMethod( + getGetFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest, + com.google.cloud.websecurityscanner.v1beta.Finding>( + this, METHODID_GET_FINDING))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse>( + this, METHODID_LIST_FINDINGS))) + .addMethod( + getListFindingTypeStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse>( + this, METHODID_LIST_FINDING_TYPE_STATS))) + .build(); + } + } + + /** + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerStub extends io.grpc.stub.AbstractAsyncStub { + private WebSecurityScannerStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig(com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig(com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private WebSecurityScannerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanConfig createScanConfig(com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.protobuf.Empty deleteScanConfig(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse listScanConfigs(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanConfig updateScanConfig(com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanRun startScanRun(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRun(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse listScanRuns(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanRunsMethod(), getCallOptions(), request); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanRun stopScanRun(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopScanRunMethod(), getCallOptions(), request); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse listCrawledUrls(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.Finding getFinding(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFindingMethod(), getCallOptions(), request); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse listFindings(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingsMethod(), getCallOptions(), request); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse listFindingTypeStats(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerFutureStub extends io.grpc.stub.AbstractFutureStub { + private WebSecurityScannerFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createScanConfig( + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteScanConfig( + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getScanConfig( + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listScanConfigs( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateScanConfig( + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startScanRun( + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getScanRun( + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listScanRuns( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); + } + + /** + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture stopScanRun( + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); + } + + /** + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCrawledUrls( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getFinding( + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); + } + + /** + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFindings( + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); + } + + /** + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFindingTypeStats( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SCAN_CONFIG = 0; + private static final int METHODID_DELETE_SCAN_CONFIG = 1; + private static final int METHODID_GET_SCAN_CONFIG = 2; + private static final int METHODID_LIST_SCAN_CONFIGS = 3; + private static final int METHODID_UPDATE_SCAN_CONFIG = 4; + private static final int METHODID_START_SCAN_RUN = 5; + private static final int METHODID_GET_SCAN_RUN = 6; + private static final int METHODID_LIST_SCAN_RUNS = 7; + private static final int METHODID_STOP_SCAN_RUN = 8; + private static final int METHODID_LIST_CRAWLED_URLS = 9; + private static final int METHODID_GET_FINDING = 10; + private static final int METHODID_LIST_FINDINGS = 11; + private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final WebSecurityScannerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SCAN_CONFIG: + serviceImpl.createScanConfig((com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCAN_CONFIG: + serviceImpl.deleteScanConfig((com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCAN_CONFIG: + serviceImpl.getScanConfig((com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCAN_CONFIGS: + serviceImpl.listScanConfigs((com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SCAN_CONFIG: + serviceImpl.updateScanConfig((com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_SCAN_RUN: + serviceImpl.startScanRun((com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCAN_RUN: + serviceImpl.getScanRun((com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCAN_RUNS: + serviceImpl.listScanRuns((com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_SCAN_RUN: + serviceImpl.stopScanRun((com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CRAWLED_URLS: + serviceImpl.listCrawledUrls((com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FINDING: + serviceImpl.getFinding((com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FINDINGS: + serviceImpl.listFindings((com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FINDING_TYPE_STATS: + serviceImpl.listFindingTypeStats((com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WebSecurityScannerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("WebSecurityScanner"); + } + } + + private static final class WebSecurityScannerFileDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier { + WebSecurityScannerFileDescriptorSupplier() {} + } + + private static final class WebSecurityScannerMethodDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + WebSecurityScannerMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (WebSecurityScannerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) + .addMethod(getCreateScanConfigMethod()) + .addMethod(getDeleteScanConfigMethod()) + .addMethod(getGetScanConfigMethod()) + .addMethod(getListScanConfigsMethod()) + .addMethod(getUpdateScanConfigMethod()) + .addMethod(getStartScanRunMethod()) + .addMethod(getGetScanRunMethod()) + .addMethod(getListScanRunsMethod()) + .addMethod(getStopScanRunMethod()) + .addMethod(getListCrawledUrlsMethod()) + .addMethod(getGetFindingMethod()) + .addMethod(getListFindingsMethod()) + .addMethod(getListFindingTypeStatsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java similarity index 71% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java index a8334886..8e5bbd3d 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/crawled_url.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
  * Security Scanner Service crawls the web applications, following all links
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.CrawledUrl}
  */
-public final class CrawledUrl extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CrawledUrl extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.CrawledUrl)
     CrawledUrlOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CrawledUrl.newBuilder() to construct.
   private CrawledUrl(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CrawledUrl() {
     httpMethod_ = "";
     url_ = "";
@@ -47,15 +29,16 @@ private CrawledUrl() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CrawledUrl();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CrawledUrl(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,34 +57,31 @@ private CrawledUrl(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              httpMethod_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            httpMethod_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              url_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            url_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              body_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            body_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -109,40 +89,35 @@ private CrawledUrl(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.CrawledUrl.class,
-            com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.CrawledUrl.class, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder.class);
   }
 
   public static final int HTTP_METHOD_FIELD_NUMBER = 1;
   private volatile java.lang.Object httpMethod_;
   /**
-   *
-   *
    * 
    * The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The httpMethod. */ @java.lang.Override @@ -151,30 +126,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** - * - * *
    * The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -185,14 +160,11 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { public static final int URL_FIELD_NUMBER = 2; private volatile java.lang.Object url_; /** - * - * *
    * The URL that was crawled.
    * 
* * string url = 2; - * * @return The url. */ @java.lang.Override @@ -201,29 +173,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** - * - * *
    * The URL that was crawled.
    * 
* * string url = 2; - * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -234,14 +206,11 @@ public com.google.protobuf.ByteString getUrlBytes() { public static final int BODY_FIELD_NUMBER = 3; private volatile java.lang.Object body_; /** - * - * *
    * The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The body. */ @java.lang.Override @@ -250,29 +219,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** - * - * *
    * The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -281,7 +250,6 @@ public com.google.protobuf.ByteString getBodyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpMethod_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpMethod_); } @@ -329,17 +298,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.CrawledUrl)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.CrawledUrl other = - (com.google.cloud.websecurityscanner.v1beta.CrawledUrl) obj; + com.google.cloud.websecurityscanner.v1beta.CrawledUrl other = (com.google.cloud.websecurityscanner.v1beta.CrawledUrl) obj; - if (!getHttpMethod().equals(other.getHttpMethod())) return false; - if (!getUrl().equals(other.getUrl())) return false; - if (!getBody().equals(other.getBody())) return false; + if (!getHttpMethod() + .equals(other.getHttpMethod())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; + if (!getBody() + .equals(other.getBody())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -363,104 +334,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.CrawledUrl prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.CrawledUrl prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
    * Security Scanner Service crawls the web applications, following all links
@@ -469,23 +432,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.CrawledUrl}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.CrawledUrl)
       com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.CrawledUrl.class,
-              com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.CrawledUrl.class, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.CrawledUrl.newBuilder()
@@ -493,15 +454,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -515,9 +477,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
@@ -536,8 +498,7 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.CrawledUrl buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.CrawledUrl result =
-          new com.google.cloud.websecurityscanner.v1beta.CrawledUrl(this);
+      com.google.cloud.websecurityscanner.v1beta.CrawledUrl result = new com.google.cloud.websecurityscanner.v1beta.CrawledUrl(this);
       result.httpMethod_ = httpMethod_;
       result.url_ = url_;
       result.body_ = body_;
@@ -549,39 +510,38 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.CrawledUrl) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.CrawledUrl) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.CrawledUrl)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -589,8 +549,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.CrawledUrl other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance()) return this;
       if (!other.getHttpMethod().isEmpty()) {
         httpMethod_ = other.httpMethod_;
         onChanged();
@@ -622,8 +581,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1beta.CrawledUrl) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.CrawledUrl) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -635,21 +593,19 @@ public Builder mergeFrom(
 
     private java.lang.Object httpMethod_ = "";
     /**
-     *
-     *
      * 
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -658,22 +614,21 @@ public java.lang.String getHttpMethod() { } } /** - * - * *
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -681,64 +636,57 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } } /** - * - * *
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod(java.lang.String value) { + public Builder setHttpMethod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** - * - * *
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** - * - * *
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; - * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -746,20 +694,18 @@ public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { private java.lang.Object url_ = ""; /** - * - * *
      * The URL that was crawled.
      * 
* * string url = 2; - * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -768,21 +714,20 @@ public java.lang.String getUrl() { } } /** - * - * *
      * The URL that was crawled.
      * 
* * string url = 2; - * * @return The bytes for url. */ - public com.google.protobuf.ByteString getUrlBytes() { + public com.google.protobuf.ByteString + getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); url_ = b; return b; } else { @@ -790,61 +735,54 @@ public com.google.protobuf.ByteString getUrlBytes() { } } /** - * - * *
      * The URL that was crawled.
      * 
* * string url = 2; - * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** - * - * *
      * The URL that was crawled.
      * 
* * string url = 2; - * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** - * - * *
      * The URL that was crawled.
      * 
* * string url = 2; - * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; @@ -852,20 +790,18 @@ public Builder setUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object body_ = ""; /** - * - * *
      * The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -874,21 +810,20 @@ public java.lang.String getBody() { } } /** - * - * *
      * The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return The bytes for body. */ - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -896,68 +831,61 @@ public com.google.protobuf.ByteString getBodyBytes() { } } /** - * - * *
      * The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody(java.lang.String value) { + public Builder setBody( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** - * - * *
      * The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** - * - * *
      * The body of the request that was used to visit the URL.
      * 
* * string body = 3; - * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes(com.google.protobuf.ByteString value) { + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -967,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.CrawledUrl) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.CrawledUrl) private static final com.google.cloud.websecurityscanner.v1beta.CrawledUrl DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.CrawledUrl(); } @@ -981,16 +909,16 @@ public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CrawledUrl parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CrawledUrl(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CrawledUrl parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CrawledUrl(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1005,4 +933,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.CrawledUrl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java similarity index 61% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java index ff068067..43a78234 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java @@ -1,102 +1,71 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/crawled_url.proto package com.google.cloud.websecurityscanner.v1beta; -public interface CrawledUrlOrBuilder - extends +public interface CrawledUrlOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.CrawledUrl) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** - * - * *
    * The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; - * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString getHttpMethodBytes(); + com.google.protobuf.ByteString + getHttpMethodBytes(); /** - * - * *
    * The URL that was crawled.
    * 
* * string url = 2; - * * @return The url. */ java.lang.String getUrl(); /** - * - * *
    * The URL that was crawled.
    * 
* * string url = 2; - * * @return The bytes for url. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString + getUrlBytes(); /** - * - * *
    * The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The body. */ java.lang.String getBody(); /** - * - * *
    * The body of the request that was used to visit the URL.
    * 
* * string body = 3; - * * @return The bytes for body. */ - com.google.protobuf.ByteString getBodyBytes(); + com.google.protobuf.ByteString + getBodyBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java new file mode 100644 index 00000000..4e001c6f --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/crawled_url.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class CrawledUrlProto { + private CrawledUrlProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/websecurityscanner/v1beta" + + "/crawled_url.proto\022&google.cloud.websecu" + + "rityscanner.v1beta\"<\n\nCrawledUrl\022\023\n\013http" + + "_method\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001(\t" + + "B\227\002\n*com.google.cloud.websecurityscanner" + + ".v1betaB\017CrawledUrlProtoP\001ZXgoogle.golan" + + "g.org/genproto/googleapis/cloud/websecur" + + "ityscanner/v1beta;websecurityscanner\252\002&G" + + "oogle.Cloud.WebSecurityScanner.V1Beta\312\002&" + + "Google\\Cloud\\WebSecurityScanner\\V1beta\352\002" + + ")Google::Cloud::WebSecurityScanner::V1be" + + "tab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor, + new java.lang.String[] { "HttpMethod", "Url", "Body", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java similarity index 61% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java index 1db99ab1..dd00c27e 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `CreateScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest} */ -public final class CreateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) CreateScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateScanConfigRequest.newBuilder() to construct. private CreateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateScanConfigRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,37 +53,32 @@ private CreateScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); } - case 18: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } - - break; + scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,42 +86,35 @@ private CreateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -152,32 +123,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,16 +157,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1beta.ScanConfig scanConfig_; /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -205,34 +169,23 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; } /** - * - * *
    * Required. The ScanConfig to be created.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder() { @@ -240,7 +193,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -272,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (scanConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getScanConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -282,18 +236,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasScanConfig() != other.hasScanConfig()) return false; if (hasScanConfig()) { - if (!getScanConfig().equals(other.getScanConfig())) return false; + if (!getScanConfig() + .equals(other.getScanConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -318,145 +273,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `CreateScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -472,16 +416,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -495,8 +437,7 @@ public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest(this); result.parent_ = parent_; if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; @@ -511,51 +452,46 @@ public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest other) { + if (other == com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -582,9 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -596,23 +530,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -621,24 +551,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -646,70 +573,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -717,58 +631,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1beta.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> - scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> scanConfigBuilder_; /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -784,15 +679,11 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConf return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setScanConfig( com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder builderForValue) { @@ -806,23 +697,17 @@ public Builder setScanConfig( return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConfig value) { if (scanConfigBuilder_ == null) { if (scanConfig_ != null) { scanConfig_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.newBuilder(scanConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial(); } else { scanConfig_ = value; } @@ -834,15 +719,11 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanCo return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearScanConfig() { if (scanConfigBuilder_ == null) { @@ -856,71 +737,55 @@ public Builder clearScanConfig() { return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConfigBuilder() { - + onChanged(); return getScanConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder() { if (scanConfigBuilder_ != null) { return scanConfigBuilder_.getMessageOrBuilder(); } else { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? + com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; } } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> getScanConfigFieldBuilder() { if (scanConfigBuilder_ == null) { - scanConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( - getScanConfig(), getParentForChildren(), isClean()); + scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( + getScanConfig(), + getParentForChildren(), + isClean()); scanConfig_ = null; } return scanConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -930,32 +795,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -967,8 +830,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..b4f98425 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface CreateScanConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent resource name where the scan is created, which should be a
+   * project resource name in the format 'projects/{projectId}'.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent resource name where the scan is created, which should be a
+   * project resource name in the format 'projects/{projectId}'.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the scanConfig field is set. + */ + boolean hasScanConfig(); + /** + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The scanConfig. + */ + com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig(); + /** + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder(); +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java similarity index 63% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java index b30f12e6..666b725d 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `DeleteScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest} */ -public final class DeleteScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) DeleteScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteScanConfigRequest.newBuilder() to construct. private DeleteScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeleteScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest other = (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `DeleteScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -404,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest result = new com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,51 +374,46 @@ public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest other) { + if (other == com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -483,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -497,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -522,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -664,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..9f431507 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface DeleteScanConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanConfig to be deleted. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanConfig to be deleted. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java index 15ae7730..0815ad80 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * A Finding resource represents a vulnerability instance identified during a
  * ScanRun.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Finding}
  */
-public final class Finding extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Finding extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.Finding)
     FindingOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Finding.newBuilder() to construct.
   private Finding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Finding() {
     name_ = "";
     findingType_ = "";
@@ -53,15 +35,16 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Finding();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Finding(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -80,186 +63,151 @@ private Finding(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              findingType_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            findingType_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              httpMethod_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            httpMethod_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              fuzzedUrl_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            fuzzedUrl_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              body_ = s;
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            body_ = s;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            description_ = s;
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              reproductionUrl_ = s;
-              break;
-            }
-          case 66:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            reproductionUrl_ = s;
+            break;
+          }
+          case 66: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            frameUrl_ = s;
+            break;
+          }
+          case 74: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              frameUrl_ = s;
-              break;
+            finalUrl_ = s;
+            break;
+          }
+          case 82: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            trackingId_ = s;
+            break;
+          }
+          case 90: {
+            com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder subBuilder = null;
+            if (outdatedLibrary_ != null) {
+              subBuilder = outdatedLibrary_.toBuilder();
+            }
+            outdatedLibrary_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outdatedLibrary_);
+              outdatedLibrary_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              finalUrl_ = s;
-              break;
+            break;
+          }
+          case 98: {
+            com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder subBuilder = null;
+            if (violatingResource_ != null) {
+              subBuilder = violatingResource_.toBuilder();
+            }
+            violatingResource_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ViolatingResource.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(violatingResource_);
+              violatingResource_ = subBuilder.buildPartial();
             }
-          case 82:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              trackingId_ = s;
-              break;
+            break;
+          }
+          case 106: {
+            com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder subBuilder = null;
+            if (vulnerableParameters_ != null) {
+              subBuilder = vulnerableParameters_.toBuilder();
+            }
+            vulnerableParameters_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(vulnerableParameters_);
+              vulnerableParameters_ = subBuilder.buildPartial();
             }
-          case 90:
-            {
-              com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder subBuilder = null;
-              if (outdatedLibrary_ != null) {
-                subBuilder = outdatedLibrary_.toBuilder();
-              }
-              outdatedLibrary_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outdatedLibrary_);
-                outdatedLibrary_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 114: {
+            com.google.cloud.websecurityscanner.v1beta.Xss.Builder subBuilder = null;
+            if (xss_ != null) {
+              subBuilder = xss_.toBuilder();
             }
-          case 98:
-            {
-              com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder subBuilder =
-                  null;
-              if (violatingResource_ != null) {
-                subBuilder = violatingResource_.toBuilder();
-              }
-              violatingResource_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.ViolatingResource.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(violatingResource_);
-                violatingResource_ = subBuilder.buildPartial();
-              }
-
-              break;
+            xss_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.Xss.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(xss_);
+              xss_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder subBuilder =
-                  null;
-              if (vulnerableParameters_ != null) {
-                subBuilder = vulnerableParameters_.toBuilder();
-              }
-              vulnerableParameters_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(vulnerableParameters_);
-                vulnerableParameters_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 122: {
+            com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder subBuilder = null;
+            if (vulnerableHeaders_ != null) {
+              subBuilder = vulnerableHeaders_.toBuilder();
             }
-          case 114:
-            {
-              com.google.cloud.websecurityscanner.v1beta.Xss.Builder subBuilder = null;
-              if (xss_ != null) {
-                subBuilder = xss_.toBuilder();
-              }
-              xss_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.Xss.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(xss_);
-                xss_ = subBuilder.buildPartial();
-              }
-
-              break;
+            vulnerableHeaders_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(vulnerableHeaders_);
+              vulnerableHeaders_ = subBuilder.buildPartial();
             }
-          case 122:
-            {
-              com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder subBuilder =
-                  null;
-              if (vulnerableHeaders_ != null) {
-                subBuilder = vulnerableHeaders_.toBuilder();
-              }
-              vulnerableHeaders_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(vulnerableHeaders_);
-                vulnerableHeaders_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 130: {
+            com.google.cloud.websecurityscanner.v1beta.Form.Builder subBuilder = null;
+            if (form_ != null) {
+              subBuilder = form_.toBuilder();
             }
-          case 130:
-            {
-              com.google.cloud.websecurityscanner.v1beta.Form.Builder subBuilder = null;
-              if (form_ != null) {
-                subBuilder = form_.toBuilder();
-              }
-              form_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.Form.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(form_);
-                form_ = subBuilder.buildPartial();
-              }
-
-              break;
+            form_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.Form.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(form_);
+              form_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -267,33 +215,29 @@ private Finding(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.FindingProto.internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.FindingProto.internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.Finding.class,
-            com.google.cloud.websecurityscanner.v1beta.Finding.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.Finding.class, com.google.cloud.websecurityscanner.v1beta.Finding.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -301,7 +245,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -310,15 +253,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -326,15 +268,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -345,8 +288,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FINDING_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object findingType_; /** - * - * *
    * The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -354,7 +295,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string finding_type = 2; - * * @return The findingType. */ @java.lang.Override @@ -363,15 +303,14 @@ public java.lang.String getFindingType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; } } /** - * - * *
    * The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -379,15 +318,16 @@ public java.lang.String getFindingType() {
    * 
* * string finding_type = 2; - * * @return The bytes for findingType. */ @java.lang.Override - public com.google.protobuf.ByteString getFindingTypeBytes() { + public com.google.protobuf.ByteString + getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingType_ = b; return b; } else { @@ -398,15 +338,12 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { public static final int HTTP_METHOD_FIELD_NUMBER = 3; private volatile java.lang.Object httpMethod_; /** - * - * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The httpMethod. */ @java.lang.Override @@ -415,30 +352,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** - * - * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -449,15 +386,12 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { public static final int FUZZED_URL_FIELD_NUMBER = 4; private volatile java.lang.Object fuzzedUrl_; /** - * - * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ @java.lang.Override @@ -466,30 +400,30 @@ public java.lang.String getFuzzedUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; } } /** - * - * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFuzzedUrlBytes() { + public com.google.protobuf.ByteString + getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -500,14 +434,11 @@ public com.google.protobuf.ByteString getFuzzedUrlBytes() { public static final int BODY_FIELD_NUMBER = 5; private volatile java.lang.Object body_; /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The body. */ @java.lang.Override @@ -516,29 +447,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -549,14 +480,11 @@ public com.google.protobuf.ByteString getBodyBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The description. */ @java.lang.Override @@ -565,29 +493,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -598,15 +526,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int REPRODUCTION_URL_FIELD_NUMBER = 7; private volatile java.lang.Object reproductionUrl_; /** - * - * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ @java.lang.Override @@ -615,30 +540,30 @@ public java.lang.String getReproductionUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; } } /** - * - * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getReproductionUrlBytes() { + public com.google.protobuf.ByteString + getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -649,15 +574,12 @@ public com.google.protobuf.ByteString getReproductionUrlBytes() { public static final int FRAME_URL_FIELD_NUMBER = 8; private volatile java.lang.Object frameUrl_; /** - * - * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The frameUrl. */ @java.lang.Override @@ -666,30 +588,30 @@ public java.lang.String getFrameUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; } } /** - * - * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFrameUrlBytes() { + public com.google.protobuf.ByteString + getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -700,14 +622,11 @@ public com.google.protobuf.ByteString getFrameUrlBytes() { public static final int FINAL_URL_FIELD_NUMBER = 9; private volatile java.lang.Object finalUrl_; /** - * - * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The finalUrl. */ @java.lang.Override @@ -716,29 +635,29 @@ public java.lang.String getFinalUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; } } /** - * - * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getFinalUrlBytes() { + public com.google.protobuf.ByteString + getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -749,15 +668,12 @@ public com.google.protobuf.ByteString getFinalUrlBytes() { public static final int TRACKING_ID_FIELD_NUMBER = 10; private volatile java.lang.Object trackingId_; /** - * - * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The trackingId. */ @java.lang.Override @@ -766,30 +682,30 @@ public java.lang.String getTrackingId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; } } /** - * - * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ @java.lang.Override - public com.google.protobuf.ByteString getTrackingIdBytes() { + public com.google.protobuf.ByteString + getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trackingId_ = b; return b; } else { @@ -800,15 +716,12 @@ public com.google.protobuf.ByteString getTrackingIdBytes() { public static final int FORM_FIELD_NUMBER = 16; private com.google.cloud.websecurityscanner.v1beta.Form form_; /** - * - * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; - * * @return Whether the form field is set. */ @java.lang.Override @@ -816,26 +729,19 @@ public boolean hasForm() { return form_ != null; } /** - * - * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; - * * @return The form. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.Form getForm() { - return form_ == null - ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance() - : form_; + return form_ == null ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance() : form_; } /** - * - * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
@@ -851,14 +757,11 @@ public com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder
   public static final int OUTDATED_LIBRARY_FIELD_NUMBER = 11;
   private com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdatedLibrary_;
   /**
-   *
-   *
    * 
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ @java.lang.Override @@ -866,25 +769,18 @@ public boolean hasOutdatedLibrary() { return outdatedLibrary_ != null; } /** - * - * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getOutdatedLibrary() { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } /** - * - * *
    * An addon containing information about outdated libraries.
    * 
@@ -892,23 +788,19 @@ public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getOutdatedLib * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder - getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { return getOutdatedLibrary(); } public static final int VIOLATING_RESOURCE_FIELD_NUMBER = 12; private com.google.cloud.websecurityscanner.v1beta.ViolatingResource violatingResource_; /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * * @return Whether the violatingResource field is set. */ @java.lang.Override @@ -916,26 +808,19 @@ public boolean hasViolatingResource() { return violatingResource_ != null; } /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * * @return The violatingResource. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getViolatingResource() { - return violatingResource_ == null - ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() - : violatingResource_; + return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() : violatingResource_; } /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -944,22 +829,18 @@ public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getViolating
    * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder
-      getViolatingResourceOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() {
     return getViolatingResource();
   }
 
   public static final int VULNERABLE_HEADERS_FIELD_NUMBER = 15;
   private com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerableHeaders_;
   /**
-   *
-   *
    * 
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * * @return Whether the vulnerableHeaders field is set. */ @java.lang.Override @@ -967,25 +848,18 @@ public boolean hasVulnerableHeaders() { return vulnerableHeaders_ != null; } /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * * @return The vulnerableHeaders. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getVulnerableHeaders() { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
@@ -993,24 +867,19 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getVulnerabl * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder - getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { return getVulnerableHeaders(); } public static final int VULNERABLE_PARAMETERS_FIELD_NUMBER = 13; private com.google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerableParameters_; /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ @java.lang.Override @@ -1018,52 +887,39 @@ public boolean hasVulnerableParameters() { return vulnerableParameters_ != null; } /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getVulnerableParameters() { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { return getVulnerableParameters(); } public static final int XSS_FIELD_NUMBER = 14; private com.google.cloud.websecurityscanner.v1beta.Xss xss_; /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; - * * @return Whether the xss field is set. */ @java.lang.Override @@ -1071,25 +927,18 @@ public boolean hasXss() { return xss_ != null; } /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; - * * @return The xss. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.Xss getXss() { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() : xss_; } /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
@@ -1102,7 +951,6 @@ public com.google.cloud.websecurityscanner.v1beta.XssOrBuilder getXssOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1114,7 +962,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1203,23 +1052,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, trackingId_); } if (outdatedLibrary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getOutdatedLibrary()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getOutdatedLibrary()); } if (violatingResource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getViolatingResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getViolatingResource()); } if (vulnerableParameters_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(13, getVulnerableParameters()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getVulnerableParameters()); } if (xss_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getXss()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getXss()); } if (vulnerableHeaders_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getVulnerableHeaders()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, getVulnerableHeaders()); } if (form_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getForm()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getForm()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1229,47 +1083,62 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.Finding)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.Finding other = - (com.google.cloud.websecurityscanner.v1beta.Finding) obj; - - if (!getName().equals(other.getName())) return false; - if (!getFindingType().equals(other.getFindingType())) return false; - if (!getHttpMethod().equals(other.getHttpMethod())) return false; - if (!getFuzzedUrl().equals(other.getFuzzedUrl())) return false; - if (!getBody().equals(other.getBody())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getReproductionUrl().equals(other.getReproductionUrl())) return false; - if (!getFrameUrl().equals(other.getFrameUrl())) return false; - if (!getFinalUrl().equals(other.getFinalUrl())) return false; - if (!getTrackingId().equals(other.getTrackingId())) return false; + com.google.cloud.websecurityscanner.v1beta.Finding other = (com.google.cloud.websecurityscanner.v1beta.Finding) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getFindingType() + .equals(other.getFindingType())) return false; + if (!getHttpMethod() + .equals(other.getHttpMethod())) return false; + if (!getFuzzedUrl() + .equals(other.getFuzzedUrl())) return false; + if (!getBody() + .equals(other.getBody())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getReproductionUrl() + .equals(other.getReproductionUrl())) return false; + if (!getFrameUrl() + .equals(other.getFrameUrl())) return false; + if (!getFinalUrl() + .equals(other.getFinalUrl())) return false; + if (!getTrackingId() + .equals(other.getTrackingId())) return false; if (hasForm() != other.hasForm()) return false; if (hasForm()) { - if (!getForm().equals(other.getForm())) return false; + if (!getForm() + .equals(other.getForm())) return false; } if (hasOutdatedLibrary() != other.hasOutdatedLibrary()) return false; if (hasOutdatedLibrary()) { - if (!getOutdatedLibrary().equals(other.getOutdatedLibrary())) return false; + if (!getOutdatedLibrary() + .equals(other.getOutdatedLibrary())) return false; } if (hasViolatingResource() != other.hasViolatingResource()) return false; if (hasViolatingResource()) { - if (!getViolatingResource().equals(other.getViolatingResource())) return false; + if (!getViolatingResource() + .equals(other.getViolatingResource())) return false; } if (hasVulnerableHeaders() != other.hasVulnerableHeaders()) return false; if (hasVulnerableHeaders()) { - if (!getVulnerableHeaders().equals(other.getVulnerableHeaders())) return false; + if (!getVulnerableHeaders() + .equals(other.getVulnerableHeaders())) return false; } if (hasVulnerableParameters() != other.hasVulnerableParameters()) return false; if (hasVulnerableParameters()) { - if (!getVulnerableParameters().equals(other.getVulnerableParameters())) return false; + if (!getVulnerableParameters() + .equals(other.getVulnerableParameters())) return false; } if (hasXss() != other.hasXss()) return false; if (hasXss()) { - if (!getXss().equals(other.getXss())) return false; + if (!getXss() + .equals(other.getXss())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1332,103 +1201,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.Finding parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.Finding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.Finding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Finding resource represents a vulnerability instance identified during a
    * ScanRun.
@@ -1436,23 +1298,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Finding}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.Finding)
       com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingProto.internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.FindingProto.internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.Finding.class,
-              com.google.cloud.websecurityscanner.v1beta.Finding.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.Finding.class, com.google.cloud.websecurityscanner.v1beta.Finding.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.Finding.newBuilder()
@@ -1460,15 +1320,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1532,9 +1393,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingProto.internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
     }
 
     @java.lang.Override
@@ -1553,8 +1414,7 @@ public com.google.cloud.websecurityscanner.v1beta.Finding build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.Finding buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.Finding result =
-          new com.google.cloud.websecurityscanner.v1beta.Finding(this);
+      com.google.cloud.websecurityscanner.v1beta.Finding result = new com.google.cloud.websecurityscanner.v1beta.Finding(this);
       result.name_ = name_;
       result.findingType_ = findingType_;
       result.httpMethod_ = httpMethod_;
@@ -1603,39 +1463,38 @@ public com.google.cloud.websecurityscanner.v1beta.Finding buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.Finding) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Finding) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Finding)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1643,8 +1502,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.Finding other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1722,8 +1580,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1beta.Finding) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.Finding) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1735,8 +1592,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1744,13 +1599,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1759,8 +1614,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1768,14 +1621,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1783,8 +1637,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1792,22 +1644,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1815,18 +1665,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1834,16 +1681,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1851,8 +1698,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object findingType_ = ""; /** - * - * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1860,13 +1705,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string finding_type = 2; - * * @return The findingType. */ public java.lang.String getFindingType() { java.lang.Object ref = findingType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; @@ -1875,8 +1720,6 @@ public java.lang.String getFindingType() { } } /** - * - * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1884,14 +1727,15 @@ public java.lang.String getFindingType() {
      * 
* * string finding_type = 2; - * * @return The bytes for findingType. */ - public com.google.protobuf.ByteString getFindingTypeBytes() { + public com.google.protobuf.ByteString + getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingType_ = b; return b; } else { @@ -1899,8 +1743,6 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { } } /** - * - * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1908,22 +1750,20 @@ public com.google.protobuf.ByteString getFindingTypeBytes() {
      * 
* * string finding_type = 2; - * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType(java.lang.String value) { + public Builder setFindingType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingType_ = value; onChanged(); return this; } /** - * - * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1931,18 +1771,15 @@ public Builder setFindingType(java.lang.String value) {
      * 
* * string finding_type = 2; - * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = getDefaultInstance().getFindingType(); onChanged(); return this; } /** - * - * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1950,16 +1787,16 @@ public Builder clearFindingType() {
      * 
* * string finding_type = 2; - * * @param value The bytes for findingType to set. * @return This builder for chaining. */ - public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { + public Builder setFindingTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingType_ = value; onChanged(); return this; @@ -1967,21 +1804,19 @@ public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object httpMethod_ = ""; /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -1990,22 +1825,21 @@ public java.lang.String getHttpMethod() { } } /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString getHttpMethodBytes() { + public com.google.protobuf.ByteString + getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -2013,64 +1847,57 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } } /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod(java.lang.String value) { + public Builder setHttpMethod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** - * - * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; - * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -2078,21 +1905,19 @@ public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { private java.lang.Object fuzzedUrl_ = ""; /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ public java.lang.String getFuzzedUrl() { java.lang.Object ref = fuzzedUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; @@ -2101,22 +1926,21 @@ public java.lang.String getFuzzedUrl() { } } /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ - public com.google.protobuf.ByteString getFuzzedUrlBytes() { + public com.google.protobuf.ByteString + getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -2124,64 +1948,57 @@ public com.google.protobuf.ByteString getFuzzedUrlBytes() { } } /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @param value The fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrl(java.lang.String value) { + public Builder setFuzzedUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fuzzedUrl_ = value; onChanged(); return this; } /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @return This builder for chaining. */ public Builder clearFuzzedUrl() { - + fuzzedUrl_ = getDefaultInstance().getFuzzedUrl(); onChanged(); return this; } /** - * - * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; - * * @param value The bytes for fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFuzzedUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fuzzedUrl_ = value; onChanged(); return this; @@ -2189,20 +2006,18 @@ public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object body_ = ""; /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -2211,21 +2026,20 @@ public java.lang.String getBody() { } } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return The bytes for body. */ - public com.google.protobuf.ByteString getBodyBytes() { + public com.google.protobuf.ByteString + getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); body_ = b; return b; } else { @@ -2233,61 +2047,54 @@ public com.google.protobuf.ByteString getBodyBytes() { } } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody(java.lang.String value) { + public Builder setBody( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes(com.google.protobuf.ByteString value) { + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; @@ -2295,20 +2102,18 @@ public Builder setBodyBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2317,21 +2122,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2339,61 +2143,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2401,21 +2198,19 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object reproductionUrl_ = ""; /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ public java.lang.String getReproductionUrl() { java.lang.Object ref = reproductionUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; @@ -2424,22 +2219,21 @@ public java.lang.String getReproductionUrl() { } } /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ - public com.google.protobuf.ByteString getReproductionUrlBytes() { + public com.google.protobuf.ByteString + getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -2447,64 +2241,57 @@ public com.google.protobuf.ByteString getReproductionUrlBytes() { } } /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @param value The reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrl(java.lang.String value) { + public Builder setReproductionUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reproductionUrl_ = value; onChanged(); return this; } /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @return This builder for chaining. */ public Builder clearReproductionUrl() { - + reproductionUrl_ = getDefaultInstance().getReproductionUrl(); onChanged(); return this; } /** - * - * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; - * * @param value The bytes for reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { + public Builder setReproductionUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reproductionUrl_ = value; onChanged(); return this; @@ -2512,21 +2299,19 @@ public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object frameUrl_ = ""; /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return The frameUrl. */ public java.lang.String getFrameUrl() { java.lang.Object ref = frameUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; @@ -2535,22 +2320,21 @@ public java.lang.String getFrameUrl() { } } /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ - public com.google.protobuf.ByteString getFrameUrlBytes() { + public com.google.protobuf.ByteString + getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -2558,64 +2342,57 @@ public com.google.protobuf.ByteString getFrameUrlBytes() { } } /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @param value The frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrl(java.lang.String value) { + public Builder setFrameUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + frameUrl_ = value; onChanged(); return this; } /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @return This builder for chaining. */ public Builder clearFrameUrl() { - + frameUrl_ = getDefaultInstance().getFrameUrl(); onChanged(); return this; } /** - * - * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; - * * @param value The bytes for frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFrameUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + frameUrl_ = value; onChanged(); return this; @@ -2623,20 +2400,18 @@ public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object finalUrl_ = ""; /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return The finalUrl. */ public java.lang.String getFinalUrl() { java.lang.Object ref = finalUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; @@ -2645,21 +2420,20 @@ public java.lang.String getFinalUrl() { } } /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ - public com.google.protobuf.ByteString getFinalUrlBytes() { + public com.google.protobuf.ByteString + getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -2667,61 +2441,54 @@ public com.google.protobuf.ByteString getFinalUrlBytes() { } } /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @param value The finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrl(java.lang.String value) { + public Builder setFinalUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + finalUrl_ = value; onChanged(); return this; } /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @return This builder for chaining. */ public Builder clearFinalUrl() { - + finalUrl_ = getDefaultInstance().getFinalUrl(); onChanged(); return this; } /** - * - * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; - * * @param value The bytes for finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { + public Builder setFinalUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + finalUrl_ = value; onChanged(); return this; @@ -2729,21 +2496,19 @@ public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { private java.lang.Object trackingId_ = ""; /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return The trackingId. */ public java.lang.String getTrackingId() { java.lang.Object ref = trackingId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; @@ -2752,22 +2517,21 @@ public java.lang.String getTrackingId() { } } /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ - public com.google.protobuf.ByteString getTrackingIdBytes() { + public com.google.protobuf.ByteString + getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); trackingId_ = b; return b; } else { @@ -2775,64 +2539,57 @@ public com.google.protobuf.ByteString getTrackingIdBytes() { } } /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @param value The trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingId(java.lang.String value) { + public Builder setTrackingId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trackingId_ = value; onChanged(); return this; } /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @return This builder for chaining. */ public Builder clearTrackingId() { - + trackingId_ = getDefaultInstance().getTrackingId(); onChanged(); return this; } /** - * - * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; - * * @param value The bytes for trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { + public Builder setTrackingIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trackingId_ = value; onChanged(); return this; @@ -2840,49 +2597,36 @@ public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1beta.Form form_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Form, - com.google.cloud.websecurityscanner.v1beta.Form.Builder, - com.google.cloud.websecurityscanner.v1beta.FormOrBuilder> - formBuilder_; + com.google.cloud.websecurityscanner.v1beta.Form, com.google.cloud.websecurityscanner.v1beta.Form.Builder, com.google.cloud.websecurityscanner.v1beta.FormOrBuilder> formBuilder_; /** - * - * *
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; - * * @return Whether the form field is set. */ public boolean hasForm() { return formBuilder_ != null || form_ != null; } /** - * - * *
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; - * * @return The form. */ public com.google.cloud.websecurityscanner.v1beta.Form getForm() { if (formBuilder_ == null) { - return form_ == null - ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance() - : form_; + return form_ == null ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance() : form_; } else { return formBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2904,8 +2648,6 @@ public Builder setForm(com.google.cloud.websecurityscanner.v1beta.Form value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2925,8 +2667,6 @@ public Builder setForm(
       return this;
     }
     /**
-     *
-     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2938,9 +2678,7 @@ public Builder mergeForm(com.google.cloud.websecurityscanner.v1beta.Form value)
       if (formBuilder_ == null) {
         if (form_ != null) {
           form_ =
-              com.google.cloud.websecurityscanner.v1beta.Form.newBuilder(form_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.websecurityscanner.v1beta.Form.newBuilder(form_).mergeFrom(value).buildPartial();
         } else {
           form_ = value;
         }
@@ -2952,8 +2690,6 @@ public Builder mergeForm(com.google.cloud.websecurityscanner.v1beta.Form value)
       return this;
     }
     /**
-     *
-     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2973,8 +2709,6 @@ public Builder clearForm() {
       return this;
     }
     /**
-     *
-     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2983,13 +2717,11 @@ public Builder clearForm() {
      * .google.cloud.websecurityscanner.v1beta.Form form = 16;
      */
     public com.google.cloud.websecurityscanner.v1beta.Form.Builder getFormBuilder() {
-
+      
       onChanged();
       return getFormFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3001,14 +2733,11 @@ public com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder
       if (formBuilder_ != null) {
         return formBuilder_.getMessageOrBuilder();
       } else {
-        return form_ == null
-            ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance()
-            : form_;
+        return form_ == null ?
+            com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance() : form_;
       }
     }
     /**
-     *
-     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3017,17 +2746,14 @@ public com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder
      * .google.cloud.websecurityscanner.v1beta.Form form = 16;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1beta.Form,
-            com.google.cloud.websecurityscanner.v1beta.Form.Builder,
-            com.google.cloud.websecurityscanner.v1beta.FormOrBuilder>
+        com.google.cloud.websecurityscanner.v1beta.Form, com.google.cloud.websecurityscanner.v1beta.Form.Builder, com.google.cloud.websecurityscanner.v1beta.FormOrBuilder> 
         getFormFieldBuilder() {
       if (formBuilder_ == null) {
-        formBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.websecurityscanner.v1beta.Form,
-                com.google.cloud.websecurityscanner.v1beta.Form.Builder,
-                com.google.cloud.websecurityscanner.v1beta.FormOrBuilder>(
-                getForm(), getParentForChildren(), isClean());
+        formBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.websecurityscanner.v1beta.Form, com.google.cloud.websecurityscanner.v1beta.Form.Builder, com.google.cloud.websecurityscanner.v1beta.FormOrBuilder>(
+                getForm(),
+                getParentForChildren(),
+                isClean());
         form_ = null;
       }
       return formBuilder_;
@@ -3035,55 +2761,41 @@ public com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder
 
     private com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdatedLibrary_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary,
-            com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder,
-            com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder>
-        outdatedLibraryBuilder_;
+        com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary, com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder> outdatedLibraryBuilder_;
     /**
-     *
-     *
      * 
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ public boolean hasOutdatedLibrary() { return outdatedLibraryBuilder_ != null || outdatedLibrary_ != null; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getOutdatedLibrary() { if (outdatedLibraryBuilder_ == null) { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } else { return outdatedLibraryBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ - public Builder setOutdatedLibrary( - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary value) { + public Builder setOutdatedLibrary(com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3097,8 +2809,6 @@ public Builder setOutdatedLibrary( return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
@@ -3117,23 +2827,17 @@ public Builder setOutdatedLibrary( return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ - public Builder mergeOutdatedLibrary( - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary value) { + public Builder mergeOutdatedLibrary(com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (outdatedLibrary_ != null) { outdatedLibrary_ = - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.newBuilder( - outdatedLibrary_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.newBuilder(outdatedLibrary_).mergeFrom(value).buildPartial(); } else { outdatedLibrary_ = value; } @@ -3145,8 +2849,6 @@ public Builder mergeOutdatedLibrary( return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
@@ -3165,42 +2867,33 @@ public Builder clearOutdatedLibrary() { return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder - getOutdatedLibraryBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder getOutdatedLibraryBuilder() { + onChanged(); return getOutdatedLibraryFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder - getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { if (outdatedLibraryBuilder_ != null) { return outdatedLibraryBuilder_.getMessageOrBuilder(); } else { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + return outdatedLibrary_ == null ? + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
@@ -3208,17 +2901,14 @@ public Builder clearOutdatedLibrary() { * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary, - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder, - com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder> + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary, com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder> getOutdatedLibraryFieldBuilder() { if (outdatedLibraryBuilder_ == null) { - outdatedLibraryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary, - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder, - com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder>( - getOutdatedLibrary(), getParentForChildren(), isClean()); + outdatedLibraryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary, com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder>( + getOutdatedLibrary(), + getParentForChildren(), + isClean()); outdatedLibrary_ = null; } return outdatedLibraryBuilder_; @@ -3226,61 +2916,44 @@ public Builder clearOutdatedLibrary() { private com.google.cloud.websecurityscanner.v1beta.ViolatingResource violatingResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ViolatingResource, - com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, - com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder> - violatingResourceBuilder_; + com.google.cloud.websecurityscanner.v1beta.ViolatingResource, com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder> violatingResourceBuilder_; /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; * @return Whether the violatingResource field is set. */ public boolean hasViolatingResource() { return violatingResourceBuilder_ != null || violatingResource_ != null; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; * @return The violatingResource. */ public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getViolatingResource() { if (violatingResourceBuilder_ == null) { - return violatingResource_ == null - ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() - : violatingResource_; + return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() : violatingResource_; } else { return violatingResourceBuilder_.getMessage(); } } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; */ - public Builder setViolatingResource( - com.google.cloud.websecurityscanner.v1beta.ViolatingResource value) { + public Builder setViolatingResource(com.google.cloud.websecurityscanner.v1beta.ViolatingResource value) { if (violatingResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3294,15 +2967,12 @@ public Builder setViolatingResource( return this; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; */ public Builder setViolatingResource( com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder builderForValue) { @@ -3316,25 +2986,18 @@ public Builder setViolatingResource( return this; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; */ - public Builder mergeViolatingResource( - com.google.cloud.websecurityscanner.v1beta.ViolatingResource value) { + public Builder mergeViolatingResource(com.google.cloud.websecurityscanner.v1beta.ViolatingResource value) { if (violatingResourceBuilder_ == null) { if (violatingResource_ != null) { violatingResource_ = - com.google.cloud.websecurityscanner.v1beta.ViolatingResource.newBuilder( - violatingResource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ViolatingResource.newBuilder(violatingResource_).mergeFrom(value).buildPartial(); } else { violatingResource_ = value; } @@ -3346,15 +3009,12 @@ public Builder mergeViolatingResource( return this; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; */ public Builder clearViolatingResource() { if (violatingResourceBuilder_ == null) { @@ -3368,66 +3028,51 @@ public Builder clearViolatingResource() { return this; } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; */ - public com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder - getViolatingResourceBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder getViolatingResourceBuilder() { + onChanged(); return getViolatingResourceFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; */ - public com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder - getViolatingResourceOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() { if (violatingResourceBuilder_ != null) { return violatingResourceBuilder_.getMessageOrBuilder(); } else { - return violatingResource_ == null - ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() - : violatingResource_; + return violatingResource_ == null ? + com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() : violatingResource_; } } /** - * - * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ViolatingResource, - com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, - com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ViolatingResource, com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder> getViolatingResourceFieldBuilder() { if (violatingResourceBuilder_ == null) { - violatingResourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ViolatingResource, - com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, - com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder>( - getViolatingResource(), getParentForChildren(), isClean()); + violatingResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ViolatingResource, com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder>( + getViolatingResource(), + getParentForChildren(), + isClean()); violatingResource_ = null; } return violatingResourceBuilder_; @@ -3435,58 +3080,41 @@ public Builder clearViolatingResource() { private com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerableHeaders_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder> - vulnerableHeadersBuilder_; + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder> vulnerableHeadersBuilder_; /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; * @return Whether the vulnerableHeaders field is set. */ public boolean hasVulnerableHeaders() { return vulnerableHeadersBuilder_ != null || vulnerableHeaders_ != null; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; * @return The vulnerableHeaders. */ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getVulnerableHeaders() { if (vulnerableHeadersBuilder_ == null) { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } else { return vulnerableHeadersBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ - public Builder setVulnerableHeaders( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders value) { + public Builder setVulnerableHeaders(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3500,14 +3128,11 @@ public Builder setVulnerableHeaders( return this; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ public Builder setVulnerableHeaders( com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder builderForValue) { @@ -3521,24 +3146,17 @@ public Builder setVulnerableHeaders( return this; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ - public Builder mergeVulnerableHeaders( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders value) { + public Builder mergeVulnerableHeaders(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (vulnerableHeaders_ != null) { vulnerableHeaders_ = - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.newBuilder( - vulnerableHeaders_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.newBuilder(vulnerableHeaders_).mergeFrom(value).buildPartial(); } else { vulnerableHeaders_ = value; } @@ -3550,14 +3168,11 @@ public Builder mergeVulnerableHeaders( return this; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ public Builder clearVulnerableHeaders() { if (vulnerableHeadersBuilder_ == null) { @@ -3571,63 +3186,48 @@ public Builder clearVulnerableHeaders() { return this; } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder - getVulnerableHeadersBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder getVulnerableHeadersBuilder() { + onChanged(); return getVulnerableHeadersFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder - getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { if (vulnerableHeadersBuilder_ != null) { return vulnerableHeadersBuilder_.getMessageOrBuilder(); } else { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + return vulnerableHeaders_ == null ? + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } } /** - * - * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder> + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder> getVulnerableHeadersFieldBuilder() { if (vulnerableHeadersBuilder_ == null) { - vulnerableHeadersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder>( - getVulnerableHeaders(), getParentForChildren(), isClean()); + vulnerableHeadersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder>( + getVulnerableHeaders(), + getParentForChildren(), + isClean()); vulnerableHeaders_ = null; } return vulnerableHeadersBuilder_; @@ -3635,65 +3235,44 @@ public Builder clearVulnerableHeaders() { private com.google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerableParameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder> - vulnerableParametersBuilder_; + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder> vulnerableParametersBuilder_; /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ public boolean hasVulnerableParameters() { return vulnerableParametersBuilder_ != null || vulnerableParameters_ != null; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters - getVulnerableParameters() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } else { return vulnerableParametersBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ - public Builder setVulnerableParameters( - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters value) { + public Builder setVulnerableParameters(com.google.cloud.websecurityscanner.v1beta.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3707,16 +3286,12 @@ public Builder setVulnerableParameters( return this; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ public Builder setVulnerableParameters( com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder builderForValue) { @@ -3730,26 +3305,18 @@ public Builder setVulnerableParameters( return this; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ - public Builder mergeVulnerableParameters( - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters value) { + public Builder mergeVulnerableParameters(com.google.cloud.websecurityscanner.v1beta.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (vulnerableParameters_ != null) { vulnerableParameters_ = - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.newBuilder( - vulnerableParameters_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.newBuilder(vulnerableParameters_).mergeFrom(value).buildPartial(); } else { vulnerableParameters_ = value; } @@ -3761,16 +3328,12 @@ public Builder mergeVulnerableParameters( return this; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ public Builder clearVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { @@ -3784,69 +3347,51 @@ public Builder clearVulnerableParameters() { return this; } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder - getVulnerableParametersBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder getVulnerableParametersBuilder() { + onChanged(); return getVulnerableParametersFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { if (vulnerableParametersBuilder_ != null) { return vulnerableParametersBuilder_.getMessageOrBuilder(); } else { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + return vulnerableParameters_ == null ? + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } } /** - * - * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder> + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder> getVulnerableParametersFieldBuilder() { if (vulnerableParametersBuilder_ == null) { - vulnerableParametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder>( - getVulnerableParameters(), getParentForChildren(), isClean()); + vulnerableParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder>( + getVulnerableParameters(), + getParentForChildren(), + isClean()); vulnerableParameters_ = null; } return vulnerableParametersBuilder_; @@ -3854,47 +3399,34 @@ public Builder clearVulnerableParameters() { private com.google.cloud.websecurityscanner.v1beta.Xss xss_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Xss, - com.google.cloud.websecurityscanner.v1beta.Xss.Builder, - com.google.cloud.websecurityscanner.v1beta.XssOrBuilder> - xssBuilder_; + com.google.cloud.websecurityscanner.v1beta.Xss, com.google.cloud.websecurityscanner.v1beta.Xss.Builder, com.google.cloud.websecurityscanner.v1beta.XssOrBuilder> xssBuilder_; /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; - * * @return Whether the xss field is set. */ public boolean hasXss() { return xssBuilder_ != null || xss_ != null; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; - * * @return The xss. */ public com.google.cloud.websecurityscanner.v1beta.Xss getXss() { if (xssBuilder_ == null) { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() : xss_; } else { return xssBuilder_.getMessage(); } } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3915,15 +3447,14 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1beta.Xss value) { return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; */ - public Builder setXss(com.google.cloud.websecurityscanner.v1beta.Xss.Builder builderForValue) { + public Builder setXss( + com.google.cloud.websecurityscanner.v1beta.Xss.Builder builderForValue) { if (xssBuilder_ == null) { xss_ = builderForValue.build(); onChanged(); @@ -3934,8 +3465,6 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1beta.Xss.Builder bui return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3946,9 +3475,7 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1beta.Xss value) { if (xssBuilder_ == null) { if (xss_ != null) { xss_ = - com.google.cloud.websecurityscanner.v1beta.Xss.newBuilder(xss_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.Xss.newBuilder(xss_).mergeFrom(value).buildPartial(); } else { xss_ = value; } @@ -3960,8 +3487,6 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1beta.Xss value) { return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3980,8 +3505,6 @@ public Builder clearXss() { return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3989,13 +3512,11 @@ public Builder clearXss() { * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; */ public com.google.cloud.websecurityscanner.v1beta.Xss.Builder getXssBuilder() { - + onChanged(); return getXssFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4006,14 +3527,11 @@ public com.google.cloud.websecurityscanner.v1beta.XssOrBuilder getXssOrBuilder() if (xssBuilder_ != null) { return xssBuilder_.getMessageOrBuilder(); } else { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? + com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() : xss_; } } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4021,24 +3539,21 @@ public com.google.cloud.websecurityscanner.v1beta.XssOrBuilder getXssOrBuilder() * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Xss, - com.google.cloud.websecurityscanner.v1beta.Xss.Builder, - com.google.cloud.websecurityscanner.v1beta.XssOrBuilder> + com.google.cloud.websecurityscanner.v1beta.Xss, com.google.cloud.websecurityscanner.v1beta.Xss.Builder, com.google.cloud.websecurityscanner.v1beta.XssOrBuilder> getXssFieldBuilder() { if (xssBuilder_ == null) { - xssBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Xss, - com.google.cloud.websecurityscanner.v1beta.Xss.Builder, - com.google.cloud.websecurityscanner.v1beta.XssOrBuilder>( - getXss(), getParentForChildren(), isClean()); + xssBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.Xss, com.google.cloud.websecurityscanner.v1beta.Xss.Builder, com.google.cloud.websecurityscanner.v1beta.XssOrBuilder>( + getXss(), + getParentForChildren(), + isClean()); xss_ = null; } return xssBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4048,12 +3563,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.Finding) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.Finding) private static final com.google.cloud.websecurityscanner.v1beta.Finding DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.Finding(); } @@ -4062,16 +3577,16 @@ public static com.google.cloud.websecurityscanner.v1beta.Finding getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Finding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Finding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Finding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4086,4 +3601,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java new file mode 100644 index 00000000..2b906b00 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java @@ -0,0 +1,134 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/finding_addon.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class FindingAddonProto { + private FindingAddonProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/websecurityscanner/v1beta" + + "/finding_addon.proto\022&google.cloud.webse" + + "curityscanner.v1beta\"*\n\004Form\022\022\n\naction_u" + + "ri\030\001 \001(\t\022\016\n\006fields\030\002 \003(\t\"Q\n\017OutdatedLibr" + + "ary\022\024\n\014library_name\030\001 \001(\t\022\017\n\007version\030\002 \001" + + "(\t\022\027\n\017learn_more_urls\030\003 \003(\t\"?\n\021Violating" + + "Resource\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resour" + + "ce_url\030\002 \001(\t\"/\n\024VulnerableParameters\022\027\n\017" + + "parameter_names\030\001 \003(\t\"\350\001\n\021VulnerableHead" + + "ers\022Q\n\007headers\030\001 \003(\0132@.google.cloud.webs" + + "ecurityscanner.v1beta.VulnerableHeaders." + + "Header\022Y\n\017missing_headers\030\002 \003(\0132@.google" + + ".cloud.websecurityscanner.v1beta.Vulnera" + + "bleHeaders.Header\032%\n\006Header\022\014\n\004name\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t\"2\n\003Xss\022\024\n\014stack_traces\030" + + "\001 \003(\t\022\025\n\rerror_message\030\002 \001(\tB\231\002\n*com.goo" + + "gle.cloud.websecurityscanner.v1betaB\021Fin" + + "dingAddonProtoP\001ZXgoogle.golang.org/genp" + + "roto/googleapis/cloud/websecurityscanner" + + "/v1beta;websecurityscanner\252\002&Google.Clou" + + "d.WebSecurityScanner.V1Beta\312\002&Google\\Clo" + + "ud\\WebSecurityScanner\\V1beta\352\002)Google::C" + + "loud::WebSecurityScanner::V1betab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor, + new java.lang.String[] { "ActionUri", "Fields", }); + internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor, + new java.lang.String[] { "LibraryName", "Version", "LearnMoreUrls", }); + internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor, + new java.lang.String[] { "ContentType", "ResourceUrl", }); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor, + new java.lang.String[] { "ParameterNames", }); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor, + new java.lang.String[] { "Headers", "MissingHeaders", }); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor = + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor, + new java.lang.String[] { "Name", "Value", }); + internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor, + new java.lang.String[] { "StackTraces", "ErrorMessage", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java similarity index 84% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java index c8c81187..e8121da0 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding.proto package com.google.cloud.websecurityscanner.v1beta; -public interface FindingOrBuilder - extends +public interface FindingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.Finding) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -33,13 +15,10 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -47,14 +26,12 @@ public interface FindingOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -62,13 +39,10 @@ public interface FindingOrBuilder
    * 
* * string finding_type = 2; - * * @return The findingType. */ java.lang.String getFindingType(); /** - * - * *
    * The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -76,250 +50,202 @@ public interface FindingOrBuilder
    * 
* * string finding_type = 2; - * * @return The bytes for findingType. */ - com.google.protobuf.ByteString getFindingTypeBytes(); + com.google.protobuf.ByteString + getFindingTypeBytes(); /** - * - * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** - * - * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; - * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString getHttpMethodBytes(); + com.google.protobuf.ByteString + getHttpMethodBytes(); /** - * - * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The fuzzedUrl. */ java.lang.String getFuzzedUrl(); /** - * - * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; - * * @return The bytes for fuzzedUrl. */ - com.google.protobuf.ByteString getFuzzedUrlBytes(); + com.google.protobuf.ByteString + getFuzzedUrlBytes(); /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The body. */ java.lang.String getBody(); /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The bytes for body. */ - com.google.protobuf.ByteString getBodyBytes(); + com.google.protobuf.ByteString + getBodyBytes(); /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The reproductionUrl. */ java.lang.String getReproductionUrl(); /** - * - * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; - * * @return The bytes for reproductionUrl. */ - com.google.protobuf.ByteString getReproductionUrlBytes(); + com.google.protobuf.ByteString + getReproductionUrlBytes(); /** - * - * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The frameUrl. */ java.lang.String getFrameUrl(); /** - * - * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; - * * @return The bytes for frameUrl. */ - com.google.protobuf.ByteString getFrameUrlBytes(); + com.google.protobuf.ByteString + getFrameUrlBytes(); /** - * - * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The finalUrl. */ java.lang.String getFinalUrl(); /** - * - * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; - * * @return The bytes for finalUrl. */ - com.google.protobuf.ByteString getFinalUrlBytes(); + com.google.protobuf.ByteString + getFinalUrlBytes(); /** - * - * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The trackingId. */ java.lang.String getTrackingId(); /** - * - * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; - * * @return The bytes for trackingId. */ - com.google.protobuf.ByteString getTrackingIdBytes(); + com.google.protobuf.ByteString + getTrackingIdBytes(); /** - * - * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; - * * @return Whether the form field is set. */ boolean hasForm(); /** - * - * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; - * * @return The form. */ com.google.cloud.websecurityscanner.v1beta.Form getForm(); /** - * - * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
@@ -330,32 +256,24 @@ public interface FindingOrBuilder
   com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder();
 
   /**
-   *
-   *
    * 
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; - * * @return Whether the outdatedLibrary field is set. */ boolean hasOutdatedLibrary(); /** - * - * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; - * * @return The outdatedLibrary. */ com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getOutdatedLibrary(); /** - * - * *
    * An addon containing information about outdated libraries.
    * 
@@ -365,34 +283,26 @@ public interface FindingOrBuilder com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder(); /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * * @return Whether the violatingResource field is set. */ boolean hasViolatingResource(); /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; - * * @return The violatingResource. */ com.google.cloud.websecurityscanner.v1beta.ViolatingResource getViolatingResource(); /** - * - * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -400,114 +310,84 @@ public interface FindingOrBuilder
    *
    * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12;
    */
-  com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder
-      getViolatingResourceOrBuilder();
+  com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder getViolatingResourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * * @return Whether the vulnerableHeaders field is set. */ boolean hasVulnerableHeaders(); /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; - * * @return The vulnerableHeaders. */ com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getVulnerableHeaders(); /** - * - * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ - com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder - getVulnerableHeadersOrBuilder(); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder(); /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; * @return Whether the vulnerableParameters field is set. */ boolean hasVulnerableParameters(); /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; * @return The vulnerableParameters. */ com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getVulnerableParameters(); /** - * - * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; - * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; */ - com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder - getVulnerableParametersOrBuilder(); + com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder(); /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; - * * @return Whether the xss field is set. */ boolean hasXss(); /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; - * * @return The xss. */ com.google.cloud.websecurityscanner.v1beta.Xss getXss(); /** - * - * *
    * An addon containing information reported for an XSS, if any.
    * 
diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java new file mode 100644 index 00000000..f5d93a07 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java @@ -0,0 +1,86 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/finding.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class FindingProto { + private FindingProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/websecurityscanner/v1beta" + + "/finding.proto\022&google.cloud.websecurity" + + "scanner.v1beta\032\031google/api/resource.prot" + + "o\032:google/cloud/websecurityscanner/v1bet" + + "a/finding_addon.proto\"\251\006\n\007Finding\022\014\n\004nam" + + "e\030\001 \001(\t\022\024\n\014finding_type\030\002 \001(\t\022\023\n\013http_me" + + "thod\030\003 \001(\t\022\022\n\nfuzzed_url\030\004 \001(\t\022\014\n\004body\030\005" + + " \001(\t\022\023\n\013description\030\006 \001(\t\022\030\n\020reproductio" + + "n_url\030\007 \001(\t\022\021\n\tframe_url\030\010 \001(\t\022\021\n\tfinal_" + + "url\030\t \001(\t\022\023\n\013tracking_id\030\n \001(\t\022:\n\004form\030\020" + + " \001(\0132,.google.cloud.websecurityscanner.v" + + "1beta.Form\022Q\n\020outdated_library\030\013 \001(\01327.g" + + "oogle.cloud.websecurityscanner.v1beta.Ou" + + "tdatedLibrary\022U\n\022violating_resource\030\014 \001(" + + "\01329.google.cloud.websecurityscanner.v1be" + + "ta.ViolatingResource\022U\n\022vulnerable_heade" + + "rs\030\017 \001(\01329.google.cloud.websecurityscann" + + "er.v1beta.VulnerableHeaders\022[\n\025vulnerabl" + + "e_parameters\030\r \001(\0132<.google.cloud.websec" + + "urityscanner.v1beta.VulnerableParameters" + + "\0228\n\003xss\030\016 \001(\0132+.google.cloud.websecurity" + + "scanner.v1beta.Xss:\204\001\352A\200\001\n)websecuritysc" + + "anner.googleapis.com/Finding\022Sprojects/{" + + "project}/scanConfigs/{scan_config}/scanR" + + "uns/{scan_run}/findings/{finding}B\224\002\n*co" + + "m.google.cloud.websecurityscanner.v1beta" + + "B\014FindingProtoP\001ZXgoogle.golang.org/genp" + + "roto/googleapis/cloud/websecurityscanner" + + "/v1beta;websecurityscanner\252\002&Google.Clou" + + "d.WebSecurityScanner.V1Beta\312\002&Google\\Clo" + + "ud\\WebSecurityScanner\\V1beta\352\002)Google::C" + + "loud::WebSecurityScanner::V1betab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor, + new java.lang.String[] { "Name", "FindingType", "HttpMethod", "FuzzedUrl", "Body", "Description", "ReproductionUrl", "FrameUrl", "FinalUrl", "TrackingId", "Form", "OutdatedLibrary", "ViolatingResource", "VulnerableHeaders", "VulnerableParameters", "Xss", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java similarity index 70% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java index 40ea677b..f333459c 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * A FindingTypeStats resource represents stats regarding a specific FindingType
  * of Findings under a given ScanRun.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.FindingTypeStats}
  */
-public final class FindingTypeStats extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FindingTypeStats extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.FindingTypeStats)
     FindingTypeStatsOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FindingTypeStats.newBuilder() to construct.
   private FindingTypeStats(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FindingTypeStats() {
     findingType_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FindingTypeStats();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FindingTypeStats(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,25 +54,24 @@ private FindingTypeStats(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              findingType_ = s;
-              break;
-            }
-          case 16:
-            {
-              findingCount_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            findingType_ = s;
+            break;
+          }
+          case 16: {
+
+            findingCount_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,39 +79,34 @@ private FindingTypeStats(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.class,
-            com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder.class);
   }
 
   public static final int FINDING_TYPE_FIELD_NUMBER = 1;
   private volatile java.lang.Object findingType_;
   /**
-   *
-   *
    * 
    * The finding type associated with the stats.
    * 
* * string finding_type = 1; - * * @return The findingType. */ @java.lang.Override @@ -138,29 +115,29 @@ public java.lang.String getFindingType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; } } /** - * - * *
    * The finding type associated with the stats.
    * 
* * string finding_type = 1; - * * @return The bytes for findingType. */ @java.lang.Override - public com.google.protobuf.ByteString getFindingTypeBytes() { + public com.google.protobuf.ByteString + getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingType_ = b; return b; } else { @@ -171,14 +148,11 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { public static final int FINDING_COUNT_FIELD_NUMBER = 2; private int findingCount_; /** - * - * *
    * The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; - * * @return The findingCount. */ @java.lang.Override @@ -187,7 +161,6 @@ public int getFindingCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(findingType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, findingType_); } @@ -219,7 +193,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, findingType_); } if (findingCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, findingCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, findingCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -229,16 +204,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.FindingTypeStats)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats other = - (com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) obj; + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats other = (com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) obj; - if (!getFindingType().equals(other.getFindingType())) return false; - if (getFindingCount() != other.getFindingCount()) return false; + if (!getFindingType() + .equals(other.getFindingType())) return false; + if (getFindingCount() + != other.getFindingCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -260,104 +236,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.FindingTypeStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A FindingTypeStats resource represents stats regarding a specific FindingType
    * of Findings under a given ScanRun.
@@ -365,23 +333,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.FindingTypeStats}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.FindingTypeStats)
       com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.class,
-              com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.newBuilder()
@@ -389,15 +355,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -409,9 +376,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
@@ -430,8 +397,7 @@ public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.FindingTypeStats result =
-          new com.google.cloud.websecurityscanner.v1beta.FindingTypeStats(this);
+      com.google.cloud.websecurityscanner.v1beta.FindingTypeStats result = new com.google.cloud.websecurityscanner.v1beta.FindingTypeStats(this);
       result.findingType_ = findingType_;
       result.findingCount_ = findingCount_;
       onBuilt();
@@ -442,39 +408,38 @@ public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats buildPartial(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.FindingTypeStats)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -482,8 +447,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.FindingTypeStats other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance()) return this;
       if (!other.getFindingType().isEmpty()) {
         findingType_ = other.findingType_;
         onChanged();
@@ -510,8 +474,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -523,20 +486,18 @@ public Builder mergeFrom(
 
     private java.lang.Object findingType_ = "";
     /**
-     *
-     *
      * 
      * The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @return The findingType. */ public java.lang.String getFindingType() { java.lang.Object ref = findingType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; @@ -545,21 +506,20 @@ public java.lang.String getFindingType() { } } /** - * - * *
      * The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @return The bytes for findingType. */ - public com.google.protobuf.ByteString getFindingTypeBytes() { + public com.google.protobuf.ByteString + getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); findingType_ = b; return b; } else { @@ -567,76 +527,66 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { } } /** - * - * *
      * The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType(java.lang.String value) { + public Builder setFindingType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingType_ = value; onChanged(); return this; } /** - * - * *
      * The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = getDefaultInstance().getFindingType(); onChanged(); return this; } /** - * - * *
      * The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @param value The bytes for findingType to set. * @return This builder for chaining. */ - public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { + public Builder setFindingTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingType_ = value; onChanged(); return this; } - private int findingCount_; + private int findingCount_ ; /** - * - * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @return The findingCount. */ @java.lang.Override @@ -644,43 +594,37 @@ public int getFindingCount() { return findingCount_; } /** - * - * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @param value The findingCount to set. * @return This builder for chaining. */ public Builder setFindingCount(int value) { - + findingCount_ = value; onChanged(); return this; } /** - * - * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @return This builder for chaining. */ public Builder clearFindingCount() { - + findingCount_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -690,12 +634,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.FindingTypeStats) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.FindingTypeStats) private static final com.google.cloud.websecurityscanner.v1beta.FindingTypeStats DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.FindingTypeStats(); } @@ -704,16 +648,16 @@ public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FindingTypeStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FindingTypeStats(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindingTypeStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FindingTypeStats(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -728,4 +672,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java similarity index 54% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java index 1021b9f0..b78eb348 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java @@ -1,62 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1beta; -public interface FindingTypeStatsOrBuilder - extends +public interface FindingTypeStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.FindingTypeStats) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The finding type associated with the stats.
    * 
* * string finding_type = 1; - * * @return The findingType. */ java.lang.String getFindingType(); /** - * - * *
    * The finding type associated with the stats.
    * 
* * string finding_type = 1; - * * @return The bytes for findingType. */ - com.google.protobuf.ByteString getFindingTypeBytes(); + com.google.protobuf.ByteString + getFindingTypeBytes(); /** - * - * *
    * The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; - * * @return The findingCount. */ int getFindingCount(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java new file mode 100644 index 00000000..61295590 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/finding_type_stats.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class FindingTypeStatsProto { + private FindingTypeStatsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n?google/cloud/websecurityscanner/v1beta" + + "/finding_type_stats.proto\022&google.cloud." + + "websecurityscanner.v1beta\"?\n\020FindingType" + + "Stats\022\024\n\014finding_type\030\001 \001(\t\022\025\n\rfinding_c" + + "ount\030\002 \001(\005B\235\002\n*com.google.cloud.websecur" + + "ityscanner.v1betaB\025FindingTypeStatsProto" + + "P\001ZXgoogle.golang.org/genproto/googleapi" + + "s/cloud/websecurityscanner/v1beta;websec" + + "urityscanner\252\002&Google.Cloud.WebSecurityS" + + "canner.V1Beta\312\002&Google\\Cloud\\WebSecurity" + + "Scanner\\V1beta\352\002)Google::Cloud::WebSecur" + + "ityScanner::V1betab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor, + new java.lang.String[] { "FindingType", "FindingCount", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java index 5b578613..d614a420 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * ! Information about a vulnerability with an HTML.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Form} */ -public final class Form extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Form extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.Form) FormOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Form.newBuilder() to construct. private Form(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Form() { actionUri_ = ""; fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,15 +26,16 @@ private Form() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Form(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Form( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private Form( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - actionUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - fields_.add(s); - break; + actionUri_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fields_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + fields_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private Form( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fields_ = fields_.getUnmodifiableView(); @@ -112,33 +94,27 @@ private Form( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.Form.class, - com.google.cloud.websecurityscanner.v1beta.Form.Builder.class); + com.google.cloud.websecurityscanner.v1beta.Form.class, com.google.cloud.websecurityscanner.v1beta.Form.Builder.class); } public static final int ACTION_URI_FIELD_NUMBER = 1; private volatile java.lang.Object actionUri_; /** - * - * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; - * * @return The actionUri. */ @java.lang.Override @@ -147,29 +123,29 @@ public java.lang.String getActionUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionUri_ = s; return s; } } /** - * - * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; - * * @return The bytes for actionUri. */ @java.lang.Override - public com.google.protobuf.ByteString getActionUriBytes() { + public com.google.protobuf.ByteString + getActionUriBytes() { java.lang.Object ref = actionUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); actionUri_ = b; return b; } else { @@ -180,42 +156,34 @@ public com.google.protobuf.ByteString getActionUriBytes() { public static final int FIELDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList fields_; /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @return A list containing the fields. */ - public com.google.protobuf.ProtocolStringList getFieldsList() { + public com.google.protobuf.ProtocolStringList + getFieldsList() { return fields_; } /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @return The count of fields. */ public int getFieldsCount() { return fields_.size(); } /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @param index The index of the element to return. * @return The fields at the given index. */ @@ -223,23 +191,20 @@ public java.lang.String getFields(int index) { return fields_.get(index); } /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - public com.google.protobuf.ByteString getFieldsBytes(int index) { + public com.google.protobuf.ByteString + getFieldsBytes(int index) { return fields_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +216,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actionUri_); } @@ -286,16 +252,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.Form)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.Form other = - (com.google.cloud.websecurityscanner.v1beta.Form) obj; + com.google.cloud.websecurityscanner.v1beta.Form other = (com.google.cloud.websecurityscanner.v1beta.Form) obj; - if (!getActionUri().equals(other.getActionUri())) return false; - if (!getFieldsList().equals(other.getFieldsList())) return false; + if (!getActionUri() + .equals(other.getActionUri())) return false; + if (!getFieldsList() + .equals(other.getFieldsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -318,127 +285,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.Form parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.Form parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.Form prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ! Information about a vulnerability with an HTML.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Form} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.Form) com.google.cloud.websecurityscanner.v1beta.FormOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.Form.class, - com.google.cloud.websecurityscanner.v1beta.Form.Builder.class); + com.google.cloud.websecurityscanner.v1beta.Form.class, com.google.cloud.websecurityscanner.v1beta.Form.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.Form.newBuilder() @@ -446,15 +404,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -466,9 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; } @java.lang.Override @@ -487,8 +446,7 @@ public com.google.cloud.websecurityscanner.v1beta.Form build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.Form buildPartial() { - com.google.cloud.websecurityscanner.v1beta.Form result = - new com.google.cloud.websecurityscanner.v1beta.Form(this); + com.google.cloud.websecurityscanner.v1beta.Form result = new com.google.cloud.websecurityscanner.v1beta.Form(this); int from_bitField0_ = bitField0_; result.actionUri_ = actionUri_; if (((bitField0_ & 0x00000001) != 0)) { @@ -504,39 +462,38 @@ public com.google.cloud.websecurityscanner.v1beta.Form buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.Form) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Form) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Form)other); } else { super.mergeFrom(other); return this; @@ -544,8 +501,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.Form other) { - if (other == com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance()) return this; if (!other.getActionUri().isEmpty()) { actionUri_ = other.actionUri_; onChanged(); @@ -588,25 +544,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object actionUri_ = ""; /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @return The actionUri. */ public java.lang.String getActionUri() { java.lang.Object ref = actionUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionUri_ = s; return s; @@ -615,21 +568,20 @@ public java.lang.String getActionUri() { } } /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @return The bytes for actionUri. */ - public com.google.protobuf.ByteString getActionUriBytes() { + public com.google.protobuf.ByteString + getActionUriBytes() { java.lang.Object ref = actionUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); actionUri_ = b; return b; } else { @@ -637,112 +589,95 @@ public com.google.protobuf.ByteString getActionUriBytes() { } } /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @param value The actionUri to set. * @return This builder for chaining. */ - public Builder setActionUri(java.lang.String value) { + public Builder setActionUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + actionUri_ = value; onChanged(); return this; } /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @return This builder for chaining. */ public Builder clearActionUri() { - + actionUri_ = getDefaultInstance().getActionUri(); onChanged(); return this; } /** - * - * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; - * * @param value The bytes for actionUri to set. * @return This builder for chaining. */ - public Builder setActionUriBytes(com.google.protobuf.ByteString value) { + public Builder setActionUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + actionUri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList fields_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new com.google.protobuf.LazyStringArrayList(fields_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @return A list containing the fields. */ - public com.google.protobuf.ProtocolStringList getFieldsList() { + public com.google.protobuf.ProtocolStringList + getFieldsList() { return fields_.getUnmodifiableView(); } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @return The count of fields. */ public int getFieldsCount() { return fields_.size(); } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param index The index of the element to return. * @return The fields at the given index. */ @@ -750,90 +685,80 @@ public java.lang.String getFields(int index) { return fields_.get(index); } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - public com.google.protobuf.ByteString getFieldsBytes(int index) { + public com.google.protobuf.ByteString + getFieldsBytes(int index) { return fields_.getByteString(index); } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param index The index to set the value at. * @param value The fields to set. * @return This builder for chaining. */ - public Builder setFields(int index, java.lang.String value) { + public Builder setFields( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); + throw new NullPointerException(); + } + ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param value The fields to add. * @return This builder for chaining. */ - public Builder addFields(java.lang.String value) { + public Builder addFields( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); + throw new NullPointerException(); + } + ensureFieldsIsMutable(); fields_.add(value); onChanged(); return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param values The fields to add. * @return This builder for chaining. */ - public Builder addAllFields(java.lang.Iterable values) { + public Builder addAllFields( + java.lang.Iterable values) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fields_); onChanged(); return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @return This builder for chaining. */ public Builder clearFields() { @@ -843,30 +768,28 @@ public Builder clearFields() { return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @param value The bytes of the fields to add. * @return This builder for chaining. */ - public Builder addFieldsBytes(com.google.protobuf.ByteString value) { + public Builder addFieldsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFieldsIsMutable(); fields_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -876,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.Form) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.Form) private static final com.google.cloud.websecurityscanner.v1beta.Form DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.Form(); } @@ -890,16 +813,16 @@ public static com.google.cloud.websecurityscanner.v1beta.Form getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Form parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Form(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Form parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Form(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -914,4 +837,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.Form getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java similarity index 64% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java index 033698c6..991f84ae 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java @@ -1,101 +1,70 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface FormOrBuilder - extends +public interface FormOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.Form) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; - * * @return The actionUri. */ java.lang.String getActionUri(); /** - * - * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; - * * @return The bytes for actionUri. */ - com.google.protobuf.ByteString getActionUriBytes(); + com.google.protobuf.ByteString + getActionUriBytes(); /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @return A list containing the fields. */ - java.util.List getFieldsList(); + java.util.List + getFieldsList(); /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @return The count of fields. */ int getFieldsCount(); /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @param index The index of the element to return. * @return The fields at the given index. */ java.lang.String getFields(int index); /** - * - * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; - * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - com.google.protobuf.ByteString getFieldsBytes(int index); + com.google.protobuf.ByteString + getFieldsBytes(int index); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java index 9c58abb6..19efd738 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `GetFinding` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetFindingRequest} */ -public final class GetFindingRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFindingRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.GetFindingRequest) GetFindingRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFindingRequest.newBuilder() to construct. private GetFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFindingRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetFindingRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private GetFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.GetFindingRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest other = - (com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) obj; + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest other = (com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetFinding` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetFindingRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.GetFindingRequest) com.google.cloud.websecurityscanner.v1beta.GetFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +345,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.getDefaultInstance(); } @@ -403,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest result = - new com.google.cloud.websecurityscanner.v1beta.GetFindingRequest(this); + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest result = new com.google.cloud.websecurityscanner.v1beta.GetFindingRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetFindingRequest)other); } else { super.mergeFrom(other); return this; @@ -454,9 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -519,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -545,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -628,13 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.GetFindingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.GetFindingRequest) - private static final com.google.cloud.websecurityscanner.v1beta.GetFindingRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.GetFindingRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.GetFindingRequest(); } @@ -643,16 +580,16 @@ public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFindingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFindingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -667,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java new file mode 100644 index 00000000..82d82324 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface GetFindingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetFindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the Finding to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the Finding to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java similarity index 64% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java index 2801eb0b..ad9f1629 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `GetScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetScanConfigRequest} */ -public final class GetScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) GetScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetScanConfigRequest.newBuilder() to construct. private GetScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetScanConfigRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest other = (com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest result = new com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,50 +374,46 @@ public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest other) { + if (other == com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -479,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -518,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -623,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..51da9ac4 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface GetScanConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanConfig to be returned. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanConfig to be returned. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java index b85b8769..f7ed60f3 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `GetScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetScanRunRequest} */ -public final class GetScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) GetScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetScanRunRequest.newBuilder() to construct. private GetScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private GetScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest other = - (com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest other = (com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `GetScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) com.google.cloud.websecurityscanner.v1beta.GetScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +345,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.getDefaultInstance(); } @@ -403,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest result = - new com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest(this); + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest result = new com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest)other); } else { super.mergeFrom(other); return this; @@ -454,9 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -519,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -545,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -628,13 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest(); } @@ -643,16 +580,16 @@ public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -667,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java new file mode 100644 index 00000000..a2400447 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface GetScanRunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanRun to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanRun to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java index 916c047d..32c1841c 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest} */ -public final class ListCrawledUrlsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCrawledUrlsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) ListCrawledUrlsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCrawledUrlsRequest.newBuilder() to construct. private ListCrawledUrlsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCrawledUrlsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListCrawledUrlsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListCrawledUrlsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,43 +85,36 @@ private ListCrawledUrlsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,33 +123,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -186,8 +158,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -195,7 +165,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -204,15 +173,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -220,15 +188,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -239,8 +208,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -248,7 +215,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -257,7 +223,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,7 +234,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -295,7 +261,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -305,17 +272,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest other = - (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) obj; + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest other = (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -339,145 +308,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -491,14 +449,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.getDefaultInstance(); } @@ -513,8 +470,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest build() @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest result = - new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest(this); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -526,50 +482,46 @@ public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -600,9 +552,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -614,24 +564,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -640,25 +586,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -666,73 +609,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -740,8 +670,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -749,13 +677,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -764,8 +692,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -773,14 +699,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -788,8 +715,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -797,22 +722,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -820,18 +743,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -839,25 +759,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -865,7 +783,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -873,8 +790,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -882,19 +797,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -902,18 +814,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -923,32 +834,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) - private static final com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -960,8 +869,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java index 97458224..765f81fc 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListCrawledUrlsRequestOrBuilder - extends +public interface ListCrawledUrlsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -66,13 +39,10 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -80,14 +50,12 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -95,7 +63,6 @@ public interface ListCrawledUrlsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java index 6f82cec4..2866ede9 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Response for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse} */ -public final class ListCrawledUrlsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCrawledUrlsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) ListCrawledUrlsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCrawledUrlsResponse.newBuilder() to construct. private ListCrawledUrlsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCrawledUrlsResponse() { crawledUrls_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListCrawledUrlsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCrawledUrlsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,28 @@ private ListCrawledUrlsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.CrawledUrl>(); - mutable_bitField0_ |= 0x00000001; - } - crawledUrls_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.CrawledUrl.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + crawledUrls_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + crawledUrls_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1beta.CrawledUrl.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,7 +84,8 @@ private ListCrawledUrlsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); @@ -116,27 +94,22 @@ private ListCrawledUrlsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.Builder.class); } public static final int CRAWLED_URLS_FIELD_NUMBER = 1; private java.util.List crawledUrls_; /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -144,13 +117,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ @java.lang.Override - public java.util.List - getCrawledUrlsList() { + public java.util.List getCrawledUrlsList() { return crawledUrls_; } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -158,13 +128,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCrawledUrlsOrBuilderList() { return crawledUrls_; } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -176,8 +144,6 @@ public int getCrawledUrlsCount() { return crawledUrls_.size(); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -189,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl getCrawledUrls(int return crawledUrls_.get(index); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -206,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawled public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -223,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -255,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < crawledUrls_.size(); i++) { output.writeMessage(1, crawledUrls_.get(i)); } @@ -284,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < crawledUrls_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, crawledUrls_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, crawledUrls_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -297,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse other = - (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) obj; + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse other = (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) obj; - if (!getCrawledUrlsList().equals(other.getCrawledUrlsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getCrawledUrlsList() + .equals(other.getCrawledUrlsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,147 +293,135 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCrawledUrlsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,16 +437,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.getDefaultInstance(); } @java.lang.Override @@ -509,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse build( @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse result = - new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse(this); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse result = new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse(this); int from_bitField0_ = bitField0_; if (crawledUrlsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -530,51 +478,46 @@ public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.getDefaultInstance()) return this; if (crawledUrlsBuilder_ == null) { if (!other.crawledUrls_.isEmpty()) { if (crawledUrls_.isEmpty()) { @@ -593,10 +536,9 @@ public Builder mergeFrom( crawledUrlsBuilder_ = null; crawledUrls_ = other.crawledUrls_; bitField0_ = (bitField0_ & ~0x00000001); - crawledUrlsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCrawledUrlsFieldBuilder() - : null; + crawledUrlsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCrawledUrlsFieldBuilder() : null; } else { crawledUrlsBuilder_.addAllMessages(other.crawledUrls_); } @@ -625,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -636,38 +576,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List crawledUrls_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCrawledUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = - new java.util.ArrayList( - crawledUrls_); + crawledUrls_ = new java.util.ArrayList(crawledUrls_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.CrawledUrl, - com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder> - crawledUrlsBuilder_; + com.google.cloud.websecurityscanner.v1beta.CrawledUrl, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder> crawledUrlsBuilder_; /** - * - * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsList() { + public java.util.List getCrawledUrlsList() { if (crawledUrlsBuilder_ == null) { return java.util.Collections.unmodifiableList(crawledUrls_); } else { @@ -675,8 +605,6 @@ private void ensureCrawledUrlsIsMutable() { } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -691,8 +619,6 @@ public int getCrawledUrlsCount() { } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -707,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl getCrawledUrls(int } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -730,8 +654,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -750,8 +672,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -772,8 +692,6 @@ public Builder addCrawledUrls(com.google.cloud.websecurityscanner.v1beta.Crawled return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -795,8 +713,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -815,8 +731,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -835,8 +749,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -844,11 +756,11 @@ public Builder addCrawledUrls( * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ public Builder addAllCrawledUrls( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (crawledUrlsBuilder_ == null) { ensureCrawledUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crawledUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, crawledUrls_); onChanged(); } else { crawledUrlsBuilder_.addAllMessages(values); @@ -856,8 +768,6 @@ public Builder addAllCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -875,8 +785,6 @@ public Builder clearCrawledUrls() { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -894,8 +802,6 @@ public Builder removeCrawledUrls(int index) { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -907,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder getCrawledU return getCrawledUrlsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -918,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder getCrawledU public com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawledUrlsOrBuilder( int index) { if (crawledUrlsBuilder_ == null) { - return crawledUrls_.get(index); - } else { + return crawledUrls_.get(index); } else { return crawledUrlsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsOrBuilderList() { + public java.util.List + getCrawledUrlsOrBuilderList() { if (crawledUrlsBuilder_ != null) { return crawledUrlsBuilder_.getMessageOrBuilderList(); } else { @@ -941,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawled } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -950,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawled * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder addCrawledUrlsBuilder() { - return getCrawledUrlsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance()); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -964,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder addCrawledU */ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder addCrawledUrlsBuilder( int index) { - return getCrawledUrlsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance()); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsBuilderList() { + public java.util.List + getCrawledUrlsBuilderList() { return getCrawledUrlsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.CrawledUrl, - com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder> + com.google.cloud.websecurityscanner.v1beta.CrawledUrl, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder> getCrawledUrlsFieldBuilder() { if (crawledUrlsBuilder_ == null) { - crawledUrlsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.CrawledUrl, - com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, - com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder>( - crawledUrls_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + crawledUrlsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.CrawledUrl, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder>( + crawledUrls_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); crawledUrls_ = null; } return crawledUrlsBuilder_; @@ -1001,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder addCrawledU private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1024,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1047,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) - private static final com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse(); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java index 4ff47dbe..0f79126a 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListCrawledUrlsResponseOrBuilder - extends +public interface ListCrawledUrlsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - java.util.List getCrawledUrlsList(); + java.util.List + getCrawledUrlsList(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -44,8 +25,6 @@ public interface ListCrawledUrlsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1beta.CrawledUrl getCrawledUrls(int index); /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -54,51 +33,43 @@ public interface ListCrawledUrlsResponseOrBuilder */ int getCrawledUrlsCount(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - java.util.List + java.util.List getCrawledUrlsOrBuilderList(); /** - * - * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawledUrlsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawledUrlsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java similarity index 63% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java index bdac7a6d..e2b40a30 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest} */ -public final class ListFindingTypeStatsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingTypeStatsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) ListFindingTypeStatsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsRequest.newBuilder() to construct. private ListFindingTypeStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingTypeStatsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingTypeStatsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private ListFindingTypeStatsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private ListFindingTypeStatsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest other = - (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) obj; + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest other = (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,145 +208,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -383,22 +345,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest build() { - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result = - buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -407,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest bu @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result = - new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest(this); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -418,51 +376,46 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -486,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -500,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -526,25 +473,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -552,80 +496,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -635,32 +566,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) - private static final com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -672,8 +601,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java new file mode 100644 index 00000000..dc0b39df --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface ListFindingTypeStatsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent resource name, which should be a scan run resource name in the
+   * format
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent resource name, which should be a scan run resource name in the
+   * format
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java similarity index 62% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java index 230bd82f..37f7cd12 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Response for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse} */ -public final class ListFindingTypeStatsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingTypeStatsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) ListFindingTypeStatsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsResponse.newBuilder() to construct. private ListFindingTypeStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingTypeStatsResponse() { findingTypeStats_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingTypeStatsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingTypeStatsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private ListFindingTypeStatsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats>(); - mutable_bitField0_ |= 0x00000001; - } - findingTypeStats_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findingTypeStats_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + findingTypeStats_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private ListFindingTypeStatsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); @@ -108,103 +87,80 @@ private ListFindingTypeStatsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.Builder.class); } public static final int FINDING_TYPE_STATS_FIELD_NUMBER = 1; - private java.util.List - findingTypeStats_; + private java.util.List findingTypeStats_; /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public java.util.List - getFindingTypeStatsList() { + public java.util.List getFindingTypeStatsList() { return findingTypeStats_; } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> + public java.util.List getFindingTypeStatsOrBuilderList() { return findingTypeStats_; } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override public int getFindingTypeStatsCount() { return findingTypeStats_.size(); } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTypeStats( - int index) { + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTypeStats(int index) { return findingTypeStats_.get(index); } /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder - getFindingTypeStatsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( + int index) { return findingTypeStats_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,7 +172,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < findingTypeStats_.size(); i++) { output.writeMessage(1, findingTypeStats_.get(i)); } @@ -230,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findingTypeStats_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findingTypeStats_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, findingTypeStats_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -240,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse other = - (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) obj; + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse other = (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) obj; - if (!getFindingTypeStatsList().equals(other.getFindingTypeStatsList())) return false; + if (!getFindingTypeStatsList() + .equals(other.getFindingTypeStatsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -270,148 +228,135 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.Builder - .class); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFindingTypeStatsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -425,22 +370,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse build() { - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result = - buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -449,8 +391,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse b @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result = - new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse(this); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result = new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse(this); int from_bitField0_ = bitField0_; if (findingTypeStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -469,52 +410,46 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse b public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) other); + if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) { + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.getDefaultInstance()) return this; if (findingTypeStatsBuilder_ == null) { if (!other.findingTypeStats_.isEmpty()) { if (findingTypeStats_.isEmpty()) { @@ -533,10 +468,9 @@ public Builder mergeFrom( findingTypeStatsBuilder_ = null; findingTypeStats_ = other.findingTypeStats_; bitField0_ = (bitField0_ & ~0x00000001); - findingTypeStatsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFindingTypeStatsFieldBuilder() - : null; + findingTypeStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFindingTypeStatsFieldBuilder() : null; } else { findingTypeStatsBuilder_.addAllMessages(other.findingTypeStats_); } @@ -561,9 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -572,40 +504,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - findingTypeStats_ = java.util.Collections.emptyList(); - + private java.util.List findingTypeStats_ = + java.util.Collections.emptyList(); private void ensureFindingTypeStatsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = - new java.util.ArrayList( - findingTypeStats_); + findingTypeStats_ = new java.util.ArrayList(findingTypeStats_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> - findingTypeStatsBuilder_; + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> findingTypeStatsBuilder_; /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public java.util.List - getFindingTypeStatsList() { + public java.util.List getFindingTypeStatsList() { if (findingTypeStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(findingTypeStats_); } else { @@ -613,15 +533,11 @@ private void ensureFindingTypeStatsIsMutable() { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public int getFindingTypeStatsCount() { if (findingTypeStatsBuilder_ == null) { @@ -631,18 +547,13 @@ public int getFindingTypeStatsCount() { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTypeStats( - int index) { + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTypeStats(int index) { if (findingTypeStatsBuilder_ == null) { return findingTypeStats_.get(index); } else { @@ -650,15 +561,11 @@ public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTyp } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public Builder setFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats value) { @@ -675,19 +582,14 @@ public Builder setFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public Builder setFindingTypeStats( - int index, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.set(index, builderForValue.build()); @@ -698,18 +600,13 @@ public Builder setFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public Builder addFindingTypeStats( - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats value) { + public Builder addFindingTypeStats(com.google.cloud.websecurityscanner.v1beta.FindingTypeStats value) { if (findingTypeStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -723,15 +620,11 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats value) { @@ -748,15 +641,11 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder builderForValue) { @@ -770,19 +659,14 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public Builder addFindingTypeStats( - int index, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.add(index, builderForValue.build()); @@ -793,22 +677,18 @@ public Builder addFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public Builder addAllFindingTypeStats( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findingTypeStats_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, findingTypeStats_); onChanged(); } else { findingTypeStatsBuilder_.addAllMessages(values); @@ -816,15 +696,11 @@ public Builder addAllFindingTypeStats( return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public Builder clearFindingTypeStats() { if (findingTypeStatsBuilder_ == null) { @@ -837,15 +713,11 @@ public Builder clearFindingTypeStats() { return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ public Builder removeFindingTypeStats(int index) { if (findingTypeStatsBuilder_ == null) { @@ -858,53 +730,39 @@ public Builder removeFindingTypeStats(int index) { return this; } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder - getFindingTypeStatsBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder getFindingTypeStatsBuilder( + int index) { return getFindingTypeStatsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder - getFindingTypeStatsOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( + int index) { if (findingTypeStatsBuilder_ == null) { - return findingTypeStats_.get(index); - } else { + return findingTypeStats_.get(index); } else { return findingTypeStatsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> - getFindingTypeStatsOrBuilderList() { + public java.util.List + getFindingTypeStatsOrBuilderList() { if (findingTypeStatsBuilder_ != null) { return findingTypeStatsBuilder_.getMessageOrBuilderList(); } else { @@ -912,67 +770,45 @@ public Builder removeFindingTypeStats(int index) { } } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder - addFindingTypeStatsBuilder() { - return getFindingTypeStatsFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder addFindingTypeStatsBuilder() { + return getFindingTypeStatsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance()); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder - addFindingTypeStatsBuilder(int index) { - return getFindingTypeStatsFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder addFindingTypeStatsBuilder( + int index) { + return getFindingTypeStatsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance()); } /** - * - * *
      * The list of FindingTypeStats returned.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - public java.util.List - getFindingTypeStatsBuilderList() { + public java.util.List + getFindingTypeStatsBuilderList() { return getFindingTypeStatsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> getFindingTypeStatsFieldBuilder() { if (findingTypeStatsBuilder_ == null) { - findingTypeStatsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, - com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder>( + findingTypeStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder>( findingTypeStats_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -981,9 +817,9 @@ public Builder removeFindingTypeStats(int index) { } return findingTypeStatsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -993,33 +829,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) - private static final com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse(); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1031,8 +864,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java similarity index 60% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java index dc075064..c11e2faf 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java @@ -1,83 +1,52 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListFindingTypeStatsResponseOrBuilder - extends +public interface ListFindingTypeStatsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - java.util.List + java.util.List getFindingTypeStatsList(); /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTypeStats(int index); /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ int getFindingTypeStatsCount(); /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ - java.util.List + java.util.List getFindingTypeStatsOrBuilderList(); /** - * - * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; */ com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( int index); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java similarity index 71% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java index 87539f9b..8f615b49 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingsRequest} */ -public final class ListFindingsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListFindingsRequest) ListFindingsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsRequest.newBuilder() to construct. private ListFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListFindingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 32: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 32: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -112,43 +92,36 @@ private ListFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -157,33 +130,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -194,8 +165,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -204,7 +173,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -213,15 +181,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -230,15 +197,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -249,8 +217,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -258,7 +224,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -267,15 +232,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -283,15 +247,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -302,8 +267,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -311,7 +274,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -320,7 +282,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,7 +293,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -364,7 +326,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -374,18 +337,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest other = - (com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest other = (com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -411,127 +377,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListFindingsRequest) com.google.cloud.websecurityscanner.v1beta.ListFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.newBuilder() @@ -539,15 +495,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -563,14 +520,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.getDefaultInstance(); } @@ -585,8 +541,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest result = - new com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest(this); + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageToken_ = pageToken_; @@ -599,39 +554,38 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest)other); } else { super.mergeFrom(other); return this; @@ -639,9 +593,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -676,9 +628,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -690,24 +640,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -716,25 +662,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -742,73 +685,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -816,8 +746,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -826,13 +754,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -841,8 +769,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -851,14 +777,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -866,8 +793,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -876,22 +801,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -900,18 +823,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -920,16 +840,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -937,8 +857,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -946,13 +864,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -961,8 +879,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -970,14 +886,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -985,8 +902,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -994,22 +909,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -1017,18 +930,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -1036,25 +946,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1062,7 +970,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -1070,8 +977,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1079,19 +984,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1099,18 +1001,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1120,32 +1021,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListFindingsRequest) - private static final com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1157,8 +1056,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java index c1bec864..975732f5 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListFindingsRequestOrBuilder - extends +public interface ListFindingsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListFindingsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -67,13 +40,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -82,14 +52,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -97,13 +65,10 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -111,14 +76,12 @@ public interface ListFindingsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -126,7 +89,6 @@ public interface ListFindingsRequestOrBuilder
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java index f0e98b1d..69d4457c 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Response for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingsResponse} */ -public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFindingsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListFindingsResponse) ListFindingsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFindingsResponse.newBuilder() to construct. private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFindingsResponse() { findings_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListFindingsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findings_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - findings_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.Finding.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findings_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + findings_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1beta.Finding.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -115,27 +94,22 @@ private ListFindingsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.Builder.class); } public static final int FINDINGS_FIELD_NUMBER = 1; private java.util.List findings_; /** - * - * *
    * The list of Findings returned.
    * 
@@ -147,8 +121,6 @@ public java.util.List getFin return findings_; } /** - * - * *
    * The list of Findings returned.
    * 
@@ -156,13 +128,11 @@ public java.util.List getFin * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFindingsOrBuilderList() { return findings_; } /** - * - * *
    * The list of Findings returned.
    * 
@@ -174,8 +144,6 @@ public int getFindingsCount() { return findings_.size(); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -187,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1beta.Finding getFindings(int index) return findings_.get(index); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -204,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOr public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -253,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < findings_.size(); i++) { output.writeMessage(1, findings_.get(i)); } @@ -282,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findings_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, findings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -295,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse other = - (com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) obj; + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse other = (com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) obj; - if (!getFindingsList().equals(other.getFindingsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getFindingsList() + .equals(other.getFindingsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListFindingsResponse) com.google.cloud.websecurityscanner.v1beta.ListFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.newBuilder() @@ -456,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getFindingsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.getDefaultInstance(); } @@ -504,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse result = - new com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse(this); + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse result = new com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse(this); int from_bitField0_ = bitField0_; if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -525,50 +478,46 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.getDefaultInstance()) return this; if (findingsBuilder_ == null) { if (!other.findings_.isEmpty()) { if (findings_.isEmpty()) { @@ -587,10 +536,9 @@ public Builder mergeFrom( findingsBuilder_ = null; findings_ = other.findings_; bitField0_ = (bitField0_ & ~0x00000001); - findingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFindingsFieldBuilder() - : null; + findingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFindingsFieldBuilder() : null; } else { findingsBuilder_.addAllMessages(other.findings_); } @@ -619,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -630,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List findings_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFindingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findings_ = - new java.util.ArrayList(findings_); + findings_ = new java.util.ArrayList(findings_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Finding, - com.google.cloud.websecurityscanner.v1beta.Finding.Builder, - com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder> - findingsBuilder_; + com.google.cloud.websecurityscanner.v1beta.Finding, com.google.cloud.websecurityscanner.v1beta.Finding.Builder, com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder> findingsBuilder_; /** - * - * *
      * The list of Findings returned.
      * 
@@ -667,8 +605,6 @@ public java.util.List getFin } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -683,8 +619,6 @@ public int getFindingsCount() { } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -699,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1beta.Finding getFindings(int index) } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -722,8 +654,6 @@ public Builder setFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -742,8 +672,6 @@ public Builder setFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -764,8 +692,6 @@ public Builder addFindings(com.google.cloud.websecurityscanner.v1beta.Finding va return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -787,8 +713,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -807,8 +731,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -827,8 +749,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -839,7 +759,8 @@ public Builder addAllFindings( java.lang.Iterable values) { if (findingsBuilder_ == null) { ensureFindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, findings_); onChanged(); } else { findingsBuilder_.addAllMessages(values); @@ -847,8 +768,6 @@ public Builder addAllFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -866,8 +785,6 @@ public Builder clearFindings() { return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -885,8 +802,6 @@ public Builder removeFindings(int index) { return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -898,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder getFindingsBui return getFindingsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of Findings returned.
      * 
@@ -909,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder getFindingsBui public com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOrBuilder( int index) { if (findingsBuilder_ == null) { - return findings_.get(index); - } else { + return findings_.get(index); } else { return findingsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ - public java.util.List - getFindingsOrBuilderList() { + public java.util.List + getFindingsOrBuilderList() { if (findingsBuilder_ != null) { return findingsBuilder_.getMessageOrBuilderList(); } else { @@ -932,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOr } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -941,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOr * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder addFindingsBuilder() { - return getFindingsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance()); + return getFindingsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance()); } /** - * - * *
      * The list of Findings returned.
      * 
@@ -955,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder addFindingsBui */ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder addFindingsBuilder( int index) { - return getFindingsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance()); + return getFindingsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance()); } /** - * - * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ - public java.util.List - getFindingsBuilderList() { + public java.util.List + getFindingsBuilderList() { return getFindingsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Finding, - com.google.cloud.websecurityscanner.v1beta.Finding.Builder, - com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder> + com.google.cloud.websecurityscanner.v1beta.Finding, com.google.cloud.websecurityscanner.v1beta.Finding.Builder, com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder> getFindingsFieldBuilder() { if (findingsBuilder_ == null) { - findingsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Finding, - com.google.cloud.websecurityscanner.v1beta.Finding.Builder, - com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder>( - findings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + findingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.Finding, com.google.cloud.websecurityscanner.v1beta.Finding.Builder, com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder>( + findings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); findings_ = null; } return findingsBuilder_; @@ -992,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder addFindingsBui private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1015,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1038,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListFindingsResponse) - private static final com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse(); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java index 9f51c883..731383be 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListFindingsResponseOrBuilder - extends +public interface ListFindingsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListFindingsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ - java.util.List getFindingsList(); + java.util.List + getFindingsList(); /** - * - * *
    * The list of Findings returned.
    * 
@@ -44,8 +25,6 @@ public interface ListFindingsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1beta.Finding getFindings(int index); /** - * - * *
    * The list of Findings returned.
    * 
@@ -54,51 +33,43 @@ public interface ListFindingsResponseOrBuilder */ int getFindingsCount(); /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ - java.util.List + java.util.List getFindingsOrBuilderList(); /** - * - * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ - com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java index f80cdd78..d049d2cf 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest} */ -public final class ListScanConfigsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) ListScanConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanConfigsRequest.newBuilder() to construct. private ListScanConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanConfigsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListScanConfigsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListScanConfigsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,8 +156,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -193,7 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -202,15 +171,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -218,15 +186,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -237,8 +206,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -246,7 +213,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -255,7 +221,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest other = - (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) obj; + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest other = (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,145 +306,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -489,14 +447,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.getDefaultInstance(); } @@ -511,8 +468,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest build() @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest result = - new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest(this); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -524,50 +480,46 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -598,9 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -612,23 +562,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -637,24 +583,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -662,70 +605,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -733,8 +663,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -742,13 +670,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -757,8 +685,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -766,14 +692,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -781,8 +708,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -790,22 +715,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -813,18 +736,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -832,25 +752,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -858,7 +776,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -866,8 +783,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -875,19 +790,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -895,18 +807,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -916,32 +827,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) - private static final com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -953,8 +862,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java index 1b9df87d..ba39d379 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListScanConfigsRequestOrBuilder - extends +public interface ListScanConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -64,13 +37,10 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -78,14 +48,12 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -93,7 +61,6 @@ public interface ListScanConfigsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java index 1d5891fd..3a57b0b4 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Response for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse} */ -public final class ListScanConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) ListScanConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanConfigsResponse.newBuilder() to construct. private ListScanConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanConfigsResponse() { scanConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanConfigsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,28 @@ private ListScanConfigsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.ScanConfig>(); - mutable_bitField0_ |= 0x00000001; - } - scanConfigs_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanConfigs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + scanConfigs_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,7 +84,8 @@ private ListScanConfigsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); @@ -116,27 +94,22 @@ private ListScanConfigsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.Builder.class); } public static final int SCAN_CONFIGS_FIELD_NUMBER = 1; private java.util.List scanConfigs_; /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -144,13 +117,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ @java.lang.Override - public java.util.List - getScanConfigsList() { + public java.util.List getScanConfigsList() { return scanConfigs_; } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -158,13 +128,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanConfigsOrBuilderList() { return scanConfigs_; } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -176,8 +144,6 @@ public int getScanConfigsCount() { return scanConfigs_.size(); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -189,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfigs(int return scanConfigs_.get(index); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -206,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -223,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -255,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < scanConfigs_.size(); i++) { output.writeMessage(1, scanConfigs_.get(i)); } @@ -284,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, scanConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -297,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse other = - (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) obj; + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse other = (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) obj; - if (!getScanConfigsList().equals(other.getScanConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getScanConfigsList() + .equals(other.getScanConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,147 +293,135 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getScanConfigsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,16 +437,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.getDefaultInstance(); } @java.lang.Override @@ -509,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse build( @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse result = - new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse(this); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse result = new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse(this); int from_bitField0_ = bitField0_; if (scanConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -530,51 +478,46 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.getDefaultInstance()) return this; if (scanConfigsBuilder_ == null) { if (!other.scanConfigs_.isEmpty()) { if (scanConfigs_.isEmpty()) { @@ -593,10 +536,9 @@ public Builder mergeFrom( scanConfigsBuilder_ = null; scanConfigs_ = other.scanConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - scanConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getScanConfigsFieldBuilder() - : null; + scanConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getScanConfigsFieldBuilder() : null; } else { scanConfigsBuilder_.addAllMessages(other.scanConfigs_); } @@ -625,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -636,38 +576,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List scanConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureScanConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = - new java.util.ArrayList( - scanConfigs_); + scanConfigs_ = new java.util.ArrayList(scanConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> - scanConfigsBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> scanConfigsBuilder_; /** - * - * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsList() { + public java.util.List getScanConfigsList() { if (scanConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(scanConfigs_); } else { @@ -675,8 +605,6 @@ private void ensureScanConfigsIsMutable() { } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -691,8 +619,6 @@ public int getScanConfigsCount() { } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -707,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfigs(int } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -730,8 +654,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -750,8 +672,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -772,8 +692,6 @@ public Builder addScanConfigs(com.google.cloud.websecurityscanner.v1beta.ScanCon return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -795,8 +713,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -815,8 +731,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -835,8 +749,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -844,11 +756,11 @@ public Builder addScanConfigs( * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ public Builder addAllScanConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (scanConfigsBuilder_ == null) { ensureScanConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scanConfigs_); onChanged(); } else { scanConfigsBuilder_.addAllMessages(values); @@ -856,8 +768,6 @@ public Builder addAllScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -875,8 +785,6 @@ public Builder clearScanConfigs() { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -894,8 +802,6 @@ public Builder removeScanConfigs(int index) { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -907,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConf return getScanConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -918,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConf public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigsOrBuilder( int index) { if (scanConfigsBuilder_ == null) { - return scanConfigs_.get(index); - } else { + return scanConfigs_.get(index); } else { return scanConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsOrBuilderList() { + public java.util.List + getScanConfigsOrBuilderList() { if (scanConfigsBuilder_ != null) { return scanConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -941,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -950,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder addScanConfigsBuilder() { - return getScanConfigsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -964,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder addScanConf */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder addScanConfigsBuilder( int index) { - return getScanConfigsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsBuilderList() { + public java.util.List + getScanConfigsBuilderList() { return getScanConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> getScanConfigsFieldBuilder() { if (scanConfigsBuilder_ == null) { - scanConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( - scanConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + scanConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( + scanConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); scanConfigs_ = null; } return scanConfigsBuilder_; @@ -1001,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder addScanConf private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1024,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1047,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) - private static final com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse(); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java index c52b947e..845e712e 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListScanConfigsResponseOrBuilder - extends +public interface ListScanConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - java.util.List getScanConfigsList(); + java.util.List + getScanConfigsList(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -44,8 +25,6 @@ public interface ListScanConfigsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfigs(int index); /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -54,51 +33,43 @@ public interface ListScanConfigsResponseOrBuilder */ int getScanConfigsCount(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - java.util.List + java.util.List getScanConfigsOrBuilderList(); /** - * - * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java index aff0e1c0..32cb456e 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanRunsRequest} */ -public final class ListScanRunsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanRunsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) ListScanRunsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanRunsRequest.newBuilder() to construct. private ListScanRunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanRunsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanRunsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListScanRunsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListScanRunsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,8 +156,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -193,7 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -202,15 +171,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -218,15 +186,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -237,8 +206,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -246,7 +213,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -255,7 +221,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +232,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,7 +259,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,17 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest other = - (com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) obj; + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest other = (com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,127 +306,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanRunsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.newBuilder() @@ -465,15 +424,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,14 +447,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.getDefaultInstance(); } @@ -509,8 +468,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest result = - new com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest(this); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -522,39 +480,38 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest)other); } else { super.mergeFrom(other); return this; @@ -562,9 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -595,9 +550,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -609,23 +562,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -634,24 +583,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -659,70 +605,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -730,8 +663,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -739,13 +670,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string page_token = 2; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -754,8 +685,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -763,14 +692,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -778,8 +708,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -787,22 +715,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 2; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -810,18 +736,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -829,25 +752,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -855,7 +776,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -863,8 +783,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -872,19 +790,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -892,18 +807,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -913,32 +827,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) - private static final com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,8 +862,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java similarity index 61% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java index d1cdde6f..a02571fa 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListScanRunsRequestOrBuilder - extends +public interface ListScanRunsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -64,13 +37,10 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -78,14 +48,12 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * string page_token = 2; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -93,7 +61,6 @@ public interface ListScanRunsRequestOrBuilder
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java similarity index 73% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java index 6562b694..3186acd3 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Response for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanRunsResponse} */ -public final class ListScanRunsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListScanRunsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) ListScanRunsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListScanRunsResponse.newBuilder() to construct. private ListScanRunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListScanRunsResponse() { scanRuns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListScanRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListScanRunsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListScanRunsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanRuns_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - scanRuns_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanRuns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + scanRuns_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListScanRunsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); @@ -115,27 +94,22 @@ private ListScanRunsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.Builder.class); } public static final int SCAN_RUNS_FIELD_NUMBER = 1; private java.util.List scanRuns_; /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -147,8 +121,6 @@ public java.util.List getSca return scanRuns_; } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -156,13 +128,11 @@ public java.util.List getSca * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanRunsOrBuilderList() { return scanRuns_; } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -174,8 +144,6 @@ public int getScanRunsCount() { return scanRuns_.size(); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -187,8 +155,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRuns(int index) return scanRuns_.get(index); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -204,15 +170,12 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOr public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -253,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < scanRuns_.size(); i++) { output.writeMessage(1, scanRuns_.get(i)); } @@ -282,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanRuns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanRuns_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, scanRuns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -295,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse other = - (com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) obj; + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse other = (com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) obj; - if (!getScanRunsList().equals(other.getScanRunsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getScanRunsList() + .equals(other.getScanRunsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanRunsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.newBuilder() @@ -456,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getScanRunsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.getDefaultInstance(); } @@ -504,8 +458,7 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse result = - new com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse(this); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse result = new com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse(this); int from_bitField0_ = bitField0_; if (scanRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -525,50 +478,46 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.getDefaultInstance()) return this; if (scanRunsBuilder_ == null) { if (!other.scanRuns_.isEmpty()) { if (scanRuns_.isEmpty()) { @@ -587,10 +536,9 @@ public Builder mergeFrom( scanRunsBuilder_ = null; scanRuns_ = other.scanRuns_; bitField0_ = (bitField0_ & ~0x00000001); - scanRunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getScanRunsFieldBuilder() - : null; + scanRunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getScanRunsFieldBuilder() : null; } else { scanRunsBuilder_.addAllMessages(other.scanRuns_); } @@ -619,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -630,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List scanRuns_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureScanRunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanRuns_ = - new java.util.ArrayList(scanRuns_); + scanRuns_ = new java.util.ArrayList(scanRuns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, - com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> - scanRunsBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> scanRunsBuilder_; /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -667,8 +605,6 @@ public java.util.List getSca } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -683,8 +619,6 @@ public int getScanRunsCount() { } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -699,8 +633,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRuns(int index) } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -722,8 +654,6 @@ public Builder setScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -742,8 +672,6 @@ public Builder setScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -764,8 +692,6 @@ public Builder addScanRuns(com.google.cloud.websecurityscanner.v1beta.ScanRun va return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -787,8 +713,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -807,8 +731,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -827,8 +749,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -839,7 +759,8 @@ public Builder addAllScanRuns( java.lang.Iterable values) { if (scanRunsBuilder_ == null) { ensureScanRunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanRuns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, scanRuns_); onChanged(); } else { scanRunsBuilder_.addAllMessages(values); @@ -847,8 +768,6 @@ public Builder addAllScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -866,8 +785,6 @@ public Builder clearScanRuns() { return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -885,8 +802,6 @@ public Builder removeScanRuns(int index) { return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -898,8 +813,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder getScanRunsBui return getScanRunsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -909,22 +822,19 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder getScanRunsBui public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOrBuilder( int index) { if (scanRunsBuilder_ == null) { - return scanRuns_.get(index); - } else { + return scanRuns_.get(index); } else { return scanRunsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsOrBuilderList() { + public java.util.List + getScanRunsOrBuilderList() { if (scanRunsBuilder_ != null) { return scanRunsBuilder_.getMessageOrBuilderList(); } else { @@ -932,8 +842,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOr } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -941,12 +849,10 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOr * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder addScanRunsBuilder() { - return getScanRunsFieldBuilder() - .addBuilder(com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()); + return getScanRunsFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()); } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -955,36 +861,30 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder addScanRunsBui */ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder addScanRunsBuilder( int index) { - return getScanRunsFieldBuilder() - .addBuilder( - index, com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()); + return getScanRunsFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()); } /** - * - * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsBuilderList() { + public java.util.List + getScanRunsBuilderList() { return getScanRunsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, - com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> getScanRunsFieldBuilder() { if (scanRunsBuilder_ == null) { - scanRunsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, - com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder>( - scanRuns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + scanRunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder>( + scanRuns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); scanRuns_ = null; } return scanRunsBuilder_; @@ -992,21 +892,19 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder addScanRunsBui private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1015,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1038,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,32 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) - private static final com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse(); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,8 +1037,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java index 3e1252bd..f84d198f 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListScanRunsResponseOrBuilder - extends +public interface ListScanRunsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ - java.util.List getScanRunsList(); + java.util.List + getScanRunsList(); /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -44,8 +25,6 @@ public interface ListScanRunsResponseOrBuilder */ com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRuns(int index); /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -54,51 +33,43 @@ public interface ListScanRunsResponseOrBuilder */ int getScanRunsCount(); /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ - java.util.List + java.util.List getScanRunsOrBuilderList(); /** - * - * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ - com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOrBuilder(int index); + com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOrBuilder( + int index); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java index acf0bcd4..703c5208 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Information reported for an outdated library.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.OutdatedLibrary} */ -public final class OutdatedLibrary extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OutdatedLibrary extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.OutdatedLibrary) OutdatedLibraryOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OutdatedLibrary.newBuilder() to construct. private OutdatedLibrary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OutdatedLibrary() { libraryName_ = ""; version_ = ""; @@ -45,15 +27,16 @@ private OutdatedLibrary() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutdatedLibrary(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OutdatedLibrary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,37 +56,34 @@ private OutdatedLibrary( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - libraryName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + libraryName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - learnMoreUrls_.add(s); - break; + version_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + learnMoreUrls_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,7 +91,8 @@ private OutdatedLibrary( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = learnMoreUrls_.getUnmodifiableView(); @@ -120,33 +101,27 @@ private OutdatedLibrary( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.class, - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder.class); } public static final int LIBRARY_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object libraryName_; /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The libraryName. */ @java.lang.Override @@ -155,29 +130,29 @@ public java.lang.String getLibraryName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; } } /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ @java.lang.Override - public com.google.protobuf.ByteString getLibraryNameBytes() { + public com.google.protobuf.ByteString + getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); libraryName_ = b; return b; } else { @@ -188,14 +163,11 @@ public com.google.protobuf.ByteString getLibraryNameBytes() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The version. */ @java.lang.Override @@ -204,29 +176,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -237,42 +209,34 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int LEARN_MORE_URLS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList learnMoreUrls_; /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList + getLearnMoreUrlsList() { return learnMoreUrls_; } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -280,23 +244,20 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,7 +269,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(libraryName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, libraryName_); } @@ -349,17 +311,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary other = - (com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) obj; + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary other = (com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) obj; - if (!getLibraryName().equals(other.getLibraryName())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (!getLearnMoreUrlsList().equals(other.getLearnMoreUrlsList())) return false; + if (!getLibraryName() + .equals(other.getLibraryName())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getLearnMoreUrlsList() + .equals(other.getLearnMoreUrlsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -385,127 +349,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information reported for an outdated library.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.OutdatedLibrary} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.OutdatedLibrary) com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.class, - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.newBuilder() @@ -513,15 +467,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -535,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; } @java.lang.Override @@ -556,8 +511,7 @@ public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary buildPartial() { - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary result = - new com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary(this); + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary result = new com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary(this); int from_bitField0_ = bitField0_; result.libraryName_ = libraryName_; result.version_ = version_; @@ -574,39 +528,38 @@ public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary)other); } else { super.mergeFrom(other); return this; @@ -614,8 +567,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary other) { - if (other == com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance()) return this; if (!other.getLibraryName().isEmpty()) { libraryName_ = other.libraryName_; onChanged(); @@ -653,8 +605,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -663,25 +614,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object libraryName_ = ""; /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return The libraryName. */ public java.lang.String getLibraryName() { java.lang.Object ref = libraryName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; @@ -690,21 +638,20 @@ public java.lang.String getLibraryName() { } } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ - public com.google.protobuf.ByteString getLibraryNameBytes() { + public com.google.protobuf.ByteString + getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); libraryName_ = b; return b; } else { @@ -712,61 +659,54 @@ public com.google.protobuf.ByteString getLibraryNameBytes() { } } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @param value The libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryName(java.lang.String value) { + public Builder setLibraryName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + libraryName_ = value; onChanged(); return this; } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return This builder for chaining. */ public Builder clearLibraryName() { - + libraryName_ = getDefaultInstance().getLibraryName(); onChanged(); return this; } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @param value The bytes for libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { + public Builder setLibraryNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + libraryName_ = value; onChanged(); return this; @@ -774,20 +714,18 @@ public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object version_ = ""; /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -796,21 +734,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + public com.google.protobuf.ByteString + getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -818,112 +755,95 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList learnMoreUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLearnMoreUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(learnMoreUrls_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList + getLearnMoreUrlsList() { return learnMoreUrls_.getUnmodifiableView(); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -931,90 +851,80 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param index The index to set the value at. * @param value The learnMoreUrls to set. * @return This builder for chaining. */ - public Builder setLearnMoreUrls(int index, java.lang.String value) { + public Builder setLearnMoreUrls( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.set(index, value); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param value The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrls(java.lang.String value) { + public Builder addLearnMoreUrls( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param values The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addAllLearnMoreUrls(java.lang.Iterable values) { + public Builder addAllLearnMoreUrls( + java.lang.Iterable values) { ensureLearnMoreUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, learnMoreUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, learnMoreUrls_); onChanged(); return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @return This builder for chaining. */ public Builder clearLearnMoreUrls() { @@ -1024,30 +934,28 @@ public Builder clearLearnMoreUrls() { return this; } /** - * - * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; - * * @param value The bytes of the learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrlsBytes(com.google.protobuf.ByteString value) { + public Builder addLearnMoreUrlsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1057,12 +965,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.OutdatedLibrary) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.OutdatedLibrary) private static final com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary(); } @@ -1071,16 +979,16 @@ public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutdatedLibrary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutdatedLibrary(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutdatedLibrary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutdatedLibrary(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1095,4 +1003,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java similarity index 67% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java index a6372eec..68ad3f2f 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java @@ -1,126 +1,90 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface OutdatedLibraryOrBuilder - extends +public interface OutdatedLibraryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.OutdatedLibrary) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The libraryName. */ java.lang.String getLibraryName(); /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The bytes for libraryName. */ - com.google.protobuf.ByteString getLibraryNameBytes(); + com.google.protobuf.ByteString + getLibraryNameBytes(); /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return A list containing the learnMoreUrls. */ - java.util.List getLearnMoreUrlsList(); + java.util.List + getLearnMoreUrlsList(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @return The count of learnMoreUrls. */ int getLearnMoreUrlsCount(); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ java.lang.String getLearnMoreUrls(int index); /** - * - * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; - * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index); + com.google.protobuf.ByteString + getLearnMoreUrlsBytes(int index); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java index 534992ec..054742f3 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_config.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * A ScanConfig resource contains the configurations to launch a scan.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig} */ -public final class ScanConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ScanConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfig) ScanConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ScanConfig.newBuilder() to construct. private ScanConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ScanConfig() { name_ = ""; displayName_ = ""; @@ -50,15 +32,16 @@ private ScanConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ScanConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ScanConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -78,151 +61,128 @@ private ScanConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; + displayName_ = s; + break; + } + case 24: { + + maxQps_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + startingUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 24: - { - maxQps_ = input.readInt32(); - break; + startingUrls_.add(s); + break; + } + case 42: { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder subBuilder = null; + if (authentication_ != null) { + subBuilder = authentication_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - startingUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - startingUrls_.add(s); - break; + authentication_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authentication_); + authentication_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder - subBuilder = null; - if (authentication_ != null) { - subBuilder = authentication_.toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authentication_); - authentication_ = subBuilder.buildPartial(); - } - break; - } - case 48: - { - int rawValue = input.readEnum(); + break; + } + case 48: { + int rawValue = input.readEnum(); - userAgent_ = rawValue; - break; + userAgent_ = rawValue; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - blacklistPatterns_.add(s); - break; + blacklistPatterns_.add(s); + break; + } + case 66: { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder subBuilder = null; + if (schedule_ != null) { + subBuilder = schedule_.toBuilder(); + } + schedule_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schedule_); + schedule_ = subBuilder.buildPartial(); } - case 66: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder subBuilder = - null; - if (schedule_ != null) { - subBuilder = schedule_.toBuilder(); - } - schedule_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schedule_); - schedule_ = subBuilder.buildPartial(); - } - break; + break; + } + case 72: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + targetPlatforms_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - case 72: - { + targetPlatforms_.add(rawValue); + break; + } + case 74: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000004) != 0)) { targetPlatforms_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } targetPlatforms_.add(rawValue); - break; } - case 74: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - targetPlatforms_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - targetPlatforms_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 80: - { - int rawValue = input.readEnum(); + input.popLimit(oldLimit); + break; + } + case 80: { + int rawValue = input.readEnum(); - exportToSecurityCommandCenter_ = rawValue; - break; + exportToSecurityCommandCenter_ = rawValue; + break; + } + case 90: { + com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder subBuilder = null; + if (latestRun_ != null) { + subBuilder = latestRun_.toBuilder(); } - case 90: - { - com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder subBuilder = null; - if (latestRun_ != null) { - subBuilder = latestRun_.toBuilder(); - } - latestRun_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latestRun_); - latestRun_ = subBuilder.buildPartial(); - } - - break; + latestRun_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latestRun_); + latestRun_ = subBuilder.buildPartial(); } - case 96: - { - int rawValue = input.readEnum(); - riskLevel_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 96: { + int rawValue = input.readEnum(); + + riskLevel_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -230,7 +190,8 @@ private ScanConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { startingUrls_ = startingUrls_.getUnmodifiableView(); @@ -245,35 +206,29 @@ private ScanConfig( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder.class); } /** - * - * *
    * Type of user agents used for scanning.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent} */ - public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { + public enum UserAgent + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -282,8 +237,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ USER_AGENT_UNSPECIFIED(0), /** - * - * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -292,8 +245,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_LINUX(1), /** - * - * *
      * Chrome on Android.
      * 
@@ -302,8 +253,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_ANDROID(2), /** - * - * *
      * Safari on IPhone.
      * 
@@ -315,8 +264,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -325,8 +272,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int USER_AGENT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -335,8 +280,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_LINUX_VALUE = 1; /** - * - * *
      * Chrome on Android.
      * 
@@ -345,8 +288,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_ANDROID_VALUE = 2; /** - * - * *
      * Safari on IPhone.
      * 
@@ -355,6 +296,7 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SAFARI_IPHONE_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -379,53 +321,50 @@ public static UserAgent valueOf(int value) { */ public static UserAgent forNumber(int value) { switch (value) { - case 0: - return USER_AGENT_UNSPECIFIED; - case 1: - return CHROME_LINUX; - case 2: - return CHROME_ANDROID; - case 3: - return SAFARI_IPHONE; - default: - return null; + case 0: return USER_AGENT_UNSPECIFIED; + case 1: return CHROME_LINUX; + case 2: return CHROME_ANDROID; + case 3: return SAFARI_IPHONE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + UserAgent> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UserAgent findValueByNumber(int number) { + return UserAgent.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public UserAgent findValueByNumber(int number) { - return UserAgent.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor().getEnumTypes().get(0); } private static final UserAgent[] VALUES = values(); - public static UserAgent valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static UserAgent valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -443,18 +382,15 @@ private UserAgent(int value) { } /** - * - * *
    * Cloud platforms supported by Cloud Web Security Scanner.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform} */ - public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { + public enum TargetPlatform + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The target platform is unknown. Requests with this enum value will be
      * rejected with INVALID_ARGUMENT error.
@@ -464,8 +400,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum {
      */
     TARGET_PLATFORM_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Google App Engine service.
      * 
@@ -474,8 +408,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { */ APP_ENGINE(1), /** - * - * *
      * Google Compute Engine service.
      * 
@@ -487,8 +419,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The target platform is unknown. Requests with this enum value will be
      * rejected with INVALID_ARGUMENT error.
@@ -498,8 +428,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TARGET_PLATFORM_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Google App Engine service.
      * 
@@ -508,8 +436,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int APP_ENGINE_VALUE = 1; /** - * - * *
      * Google Compute Engine service.
      * 
@@ -518,6 +444,7 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPUTE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -542,51 +469,49 @@ public static TargetPlatform valueOf(int value) { */ public static TargetPlatform forNumber(int value) { switch (value) { - case 0: - return TARGET_PLATFORM_UNSPECIFIED; - case 1: - return APP_ENGINE; - case 2: - return COMPUTE; - default: - return null; + case 0: return TARGET_PLATFORM_UNSPECIFIED; + case 1: return APP_ENGINE; + case 2: return COMPUTE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + TargetPlatform> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TargetPlatform findValueByNumber(int number) { + return TargetPlatform.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TargetPlatform findValueByNumber(int number) { - return TargetPlatform.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor().getEnumTypes().get(1); } private static final TargetPlatform[] VALUES = values(); - public static TargetPlatform valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TargetPlatform valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -604,8 +529,6 @@ private TargetPlatform(int value) { } /** - * - * *
    * Scan risk levels supported by Cloud Web Security Scanner. LOW impact
    * scanning will minimize requests with the potential to modify data. To
@@ -614,10 +537,9 @@ private TargetPlatform(int value) {
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel}
    */
-  public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum {
+  public enum RiskLevel
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Use default, which is NORMAL.
      * 
@@ -626,8 +548,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ RISK_LEVEL_UNSPECIFIED(0), /** - * - * *
      * Normal scanning (Recommended)
      * 
@@ -636,8 +556,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ NORMAL(1), /** - * - * *
      * Lower impact scanning
      * 
@@ -649,8 +567,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Use default, which is NORMAL.
      * 
@@ -659,8 +575,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RISK_LEVEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Normal scanning (Recommended)
      * 
@@ -669,8 +583,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NORMAL_VALUE = 1; /** - * - * *
      * Lower impact scanning
      * 
@@ -679,6 +591,7 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOW_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -703,51 +616,49 @@ public static RiskLevel valueOf(int value) { */ public static RiskLevel forNumber(int value) { switch (value) { - case 0: - return RISK_LEVEL_UNSPECIFIED; - case 1: - return NORMAL; - case 2: - return LOW; - default: - return null; + case 0: return RISK_LEVEL_UNSPECIFIED; + case 1: return NORMAL; + case 2: return LOW; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + RiskLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RiskLevel findValueByNumber(int number) { + return RiskLevel.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RiskLevel findValueByNumber(int number) { - return RiskLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor() - .getEnumTypes() - .get(2); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor().getEnumTypes().get(2); } private static final RiskLevel[] VALUES = values(); - public static RiskLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RiskLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -765,20 +676,16 @@ private RiskLevel(int value) { } /** - * - * *
    * Controls export of scan configurations and results to Cloud Security
    * Command Center.
    * 
* - * Protobuf enum {@code - * google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter} + * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter} */ - public enum ExportToSecurityCommandCenter implements com.google.protobuf.ProtocolMessageEnum { + public enum ExportToSecurityCommandCenter + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Use default, which is ENABLED.
      * 
@@ -787,8 +694,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED(0), /** - * - * *
      * Export results of this scan to Cloud Security Command Center.
      * 
@@ -797,8 +702,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ ENABLED(1), /** - * - * *
      * Do not export results of this scan to Cloud Security Command Center.
      * 
@@ -810,8 +713,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco ; /** - * - * *
      * Use default, which is ENABLED.
      * 
@@ -820,8 +721,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ public static final int EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Export results of this scan to Cloud Security Command Center.
      * 
@@ -830,8 +729,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ public static final int ENABLED_VALUE = 1; /** - * - * *
      * Do not export results of this scan to Cloud Security Command Center.
      * 
@@ -840,6 +737,7 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ public static final int DISABLED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -864,14 +762,10 @@ public static ExportToSecurityCommandCenter valueOf(int value) { */ public static ExportToSecurityCommandCenter forNumber(int value) { switch (value) { - case 0: - return EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED; - case 1: - return ENABLED; - case 2: - return DISABLED; - default: - return null; + case 0: return EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED; + case 1: return ENABLED; + case 2: return DISABLED; + default: return null; } } @@ -879,31 +773,29 @@ public static ExportToSecurityCommandCenter forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExportToSecurityCommandCenter> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExportToSecurityCommandCenter findValueByNumber(int number) { + return ExportToSecurityCommandCenter.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExportToSecurityCommandCenter findValueByNumber(int number) { - return ExportToSecurityCommandCenter.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor() - .getEnumTypes() - .get(3); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor().getEnumTypes().get(3); } private static final ExportToSecurityCommandCenter[] VALUES = values(); @@ -911,7 +803,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static ExportToSecurityCommandCenter valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -928,132 +821,97 @@ private ExportToSecurityCommandCenter(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter) } - public interface AuthenticationOrBuilder - extends + public interface AuthenticationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return Whether the googleAccount field is set. */ boolean hasGoogleAccount(); /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return The googleAccount. */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - getGoogleAccount(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getGoogleAccount(); /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder - getGoogleAccountOrBuilder(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ boolean hasCustomAccount(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - getCustomAccount(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getCustomAccount(); /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder - getCustomAccountOrBuilder(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder(); - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.AuthenticationCase - getAuthenticationCase(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.AuthenticationCase getAuthenticationCase(); } /** - * - * *
    * Scan authentication configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication} */ - public static final class Authentication extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Authentication extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) AuthenticationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Authentication.newBuilder() to construct. private Authentication(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Authentication() {} + private Authentication() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Authentication(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Authentication( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1072,67 +930,41 @@ private Authentication( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 1) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 1; - break; + case 10: { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder subBuilder = null; + if (authenticationCase_ == 1) { + subBuilder = ((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_).toBuilder(); } - case 18: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .Builder - subBuilder = null; - if (authenticationCase_ == 2) { - subBuilder = - ((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount) - authentication_) - .toBuilder(); - } - authentication_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount) - authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 2; - break; + authentication_ = + input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_); + authentication_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + authenticationCase_ = 1; + break; + } + case 18: { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder subBuilder = null; + if (authenticationCase_ == 2) { + subBuilder = ((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_).toBuilder(); + } + authentication_ = + input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_); + authentication_ = subBuilder.buildPartial(); } + authenticationCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1140,109 +972,88 @@ private Authentication( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder.class); } - public interface GoogleAccountOrBuilder - extends + public interface GoogleAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ java.lang.String getPassword(); /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); } /** - * - * *
      * Describes authentication configuration that uses a Google account.
      * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount} */ - public static final class GoogleAccount extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GoogleAccount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) GoogleAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GoogleAccount.newBuilder() to construct. private GoogleAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GoogleAccount() { username_ = ""; password_ = ""; @@ -1250,15 +1061,16 @@ private GoogleAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GoogleAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GoogleAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1277,27 +1089,25 @@ private GoogleAccount( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + password_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1305,42 +1115,34 @@ private GoogleAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ @java.lang.Override @@ -1349,29 +1151,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1382,17 +1184,12 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ @java.lang.Override @@ -1401,32 +1198,30 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1435,7 +1230,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1447,7 +1241,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -1477,19 +1272,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount other = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount other = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) obj; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1510,116 +1303,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1629,53 +1394,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Describes authentication configuration that uses a Google account.
        * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1687,23 +1443,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - build() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - result = buildPartial(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount build() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1711,12 +1463,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - result = - new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount(this); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount buildPartial() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount result = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount(this); result.username_ = username_; result.password_ = password_; onBuilt(); @@ -1727,57 +1475,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - other); + if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) { + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -1801,14 +1538,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - parsedMessage = null; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1820,20 +1554,18 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1842,21 +1574,20 @@ public java.lang.String getUsername() { } } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1864,61 +1595,54 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -1926,23 +1650,19 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1951,24 +1671,21 @@ public java.lang.String getPassword() { } } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1976,75 +1693,61 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2057,36 +1760,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount(); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GoogleAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GoogleAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GoogleAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2098,118 +1795,94 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CustomAccountOrBuilder - extends + public interface CustomAccountOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ java.lang.String getPassword(); /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The loginUrl. */ java.lang.String getLoginUrl(); /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for loginUrl. */ - com.google.protobuf.ByteString getLoginUrlBytes(); + com.google.protobuf.ByteString + getLoginUrlBytes(); } /** - * - * *
      * Describes authentication configuration that uses a custom account.
      * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount} */ - public static final class CustomAccount extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CustomAccount extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) CustomAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomAccount.newBuilder() to construct. private CustomAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CustomAccount() { username_ = ""; password_ = ""; @@ -2218,15 +1891,16 @@ private CustomAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CustomAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CustomAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2245,34 +1919,31 @@ private CustomAccount( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + password_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - loginUrl_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + loginUrl_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2280,42 +1951,34 @@ private CustomAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ @java.lang.Override @@ -2324,29 +1987,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -2357,17 +2020,12 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ @java.lang.Override @@ -2376,32 +2034,30 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -2412,14 +2068,11 @@ public com.google.protobuf.ByteString getPasswordBytes() { public static final int LOGIN_URL_FIELD_NUMBER = 3; private volatile java.lang.Object loginUrl_; /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The loginUrl. */ @java.lang.Override @@ -2428,29 +2081,29 @@ public java.lang.String getLoginUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; } } /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for loginUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getLoginUrlBytes() { + public com.google.protobuf.ByteString + getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); loginUrl_ = b; return b; } else { @@ -2459,7 +2112,6 @@ public com.google.protobuf.ByteString getLoginUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2471,7 +2123,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -2507,20 +2160,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount)) { + if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount other = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount other = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) obj; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; - if (!getLoginUrl().equals(other.getLoginUrl())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; + if (!getLoginUrl() + .equals(other.getLoginUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2543,116 +2195,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2662,53 +2286,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Describes authentication configuration that uses a custom account.
        * 
* - * Protobuf type {@code - * google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2722,23 +2337,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - build() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - result = buildPartial(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount build() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2746,12 +2357,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - result = - new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount(this); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount buildPartial() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount result = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount(this); result.username_ = username_; result.password_ = password_; result.loginUrl_ = loginUrl_; @@ -2763,57 +2370,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - other); + if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) { + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -2841,14 +2437,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - parsedMessage = null; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2860,20 +2453,18 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -2882,21 +2473,20 @@ public java.lang.String getUsername() { } } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -2904,61 +2494,54 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -2966,23 +2549,19 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -2991,24 +2570,21 @@ public java.lang.String getPassword() { } } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -3016,70 +2592,57 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; @@ -3087,20 +2650,18 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { private java.lang.Object loginUrl_ = ""; /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The loginUrl. */ public java.lang.String getLoginUrl() { java.lang.Object ref = loginUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; @@ -3109,88 +2670,79 @@ public java.lang.String getLoginUrl() { } } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for loginUrl. */ - public com.google.protobuf.ByteString getLoginUrlBytes() { + public com.google.protobuf.ByteString + getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); loginUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - /** - * - * + /** *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrl(java.lang.String value) { + public Builder setLoginUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + loginUrl_ = value; onChanged(); return this; } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLoginUrl() { - + loginUrl_ = getDefaultInstance().getLoginUrl(); onChanged(); return this; } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrlBytes(com.google.protobuf.ByteString value) { + public Builder setLoginUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + loginUrl_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3203,36 +2755,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount(); + DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount(); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3244,24 +2790,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int authenticationCase_ = 0; private java.lang.Object authentication_; - public enum AuthenticationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GOOGLE_ACCOUNT(1), CUSTOM_ACCOUNT(2), AUTHENTICATION_NOT_SET(0); private final int value; - private AuthenticationCase(int value) { this.value = value; } @@ -3277,38 +2820,30 @@ public static AuthenticationCase valueOf(int value) { public static AuthenticationCase forNumber(int value) { switch (value) { - case 1: - return GOOGLE_ACCOUNT; - case 2: - return CUSTOM_ACCOUNT; - case 0: - return AUTHENTICATION_NOT_SET; - default: - return null; + case 1: return GOOGLE_ACCOUNT; + case 2: return CUSTOM_ACCOUNT; + case 0: return AUTHENTICATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AuthenticationCase getAuthenticationCase() { - return AuthenticationCase.forNumber(authenticationCase_); + public AuthenticationCase + getAuthenticationCase() { + return AuthenticationCase.forNumber( + authenticationCase_); } public static final int GOOGLE_ACCOUNT_FIELD_NUMBER = 1; /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return Whether the googleAccount field is set. */ @java.lang.Override @@ -3316,63 +2851,42 @@ public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - getGoogleAccount() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccountOrBuilder - getGoogleAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } public static final int CUSTOM_ACCOUNT_FIELD_NUMBER = 2; /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ @java.lang.Override @@ -3380,53 +2894,36 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - getCustomAccount() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getCustomAccount() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } /** - * - * *
      * Authentication using a custom account.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccountOrBuilder - getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3438,18 +2935,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (authenticationCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - authentication_); + output.writeMessage(1, (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_); } if (authenticationCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - authentication_); + output.writeMessage(2, (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_); } unknownFields.writeTo(output); } @@ -3461,18 +2953,12 @@ public int getSerializedSize() { size = 0; if (authenticationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - authentication_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_); } if (authenticationCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - authentication_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3482,21 +2968,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication other = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication other = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) obj; if (!getAuthenticationCase().equals(other.getAuthenticationCase())) return false; switch (authenticationCase_) { case 1: - if (!getGoogleAccount().equals(other.getGoogleAccount())) return false; + if (!getGoogleAccount() + .equals(other.getGoogleAccount())) return false; break; case 2: - if (!getCustomAccount().equals(other.getCustomAccount())) return false; + if (!getCustomAccount() + .equals(other.getCustomAccount())) return false; break; case 0: default: @@ -3530,95 +3017,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3628,49 +3107,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Scan authentication configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3680,22 +3154,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication build() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result = - buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3704,8 +3175,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication buil @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result = - new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication(this); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication(this); if (authenticationCase_ == 1) { if (googleAccountBuilder_ == null) { result.authentication_ = authentication_; @@ -3729,68 +3199,58 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance()) return this; switch (other.getAuthenticationCase()) { - case GOOGLE_ACCOUNT: - { - mergeGoogleAccount(other.getGoogleAccount()); - break; - } - case CUSTOM_ACCOUNT: - { - mergeCustomAccount(other.getCustomAccount()); - break; - } - case AUTHENTICATION_NOT_SET: - { - break; - } + case GOOGLE_ACCOUNT: { + mergeGoogleAccount(other.getGoogleAccount()); + break; + } + case CUSTOM_ACCOUNT: { + mergeCustomAccount(other.getCustomAccount()); + break; + } + case AUTHENTICATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3811,9 +3271,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3822,12 +3280,12 @@ public Builder mergeFrom( } return this; } - private int authenticationCase_ = 0; private java.lang.Object authentication_; - - public AuthenticationCase getAuthenticationCase() { - return AuthenticationCase.forNumber(authenticationCase_); + public AuthenticationCase + getAuthenticationCase() { + return AuthenticationCase.forNumber( + authenticationCase_); } public Builder clearAuthentication() { @@ -3837,24 +3295,15 @@ public Builder clearAuthentication() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccountOrBuilder> - googleAccountBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder> googleAccountBuilder_; /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return Whether the googleAccount field is set. */ @java.lang.Override @@ -3862,51 +3311,35 @@ public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - getGoogleAccount() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { if (googleAccountBuilder_ == null) { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } else { if (authenticationCase_ == 1) { return googleAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - value) { + public Builder setGoogleAccount(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3920,19 +3353,14 @@ public Builder setGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder builderForValue) { if (googleAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -3943,32 +3371,18 @@ public Builder setGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - public Builder mergeGoogleAccount( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - value) { + public Builder mergeGoogleAccount(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { - if (authenticationCase_ == 1 - && authentication_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount.getDefaultInstance()) { - authentication_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .newBuilder( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount) - authentication_) - .mergeFrom(value) - .buildPartial(); + if (authenticationCase_ == 1 && + authentication_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) { + authentication_ = com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.newBuilder((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_) + .mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -3984,15 +3398,11 @@ public Builder mergeGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ public Builder clearGoogleAccount() { if (googleAccountBuilder_ == null) { @@ -4011,111 +3421,67 @@ public Builder clearGoogleAccount() { return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .Builder - getGoogleAccountBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder getGoogleAccountBuilder() { return getGoogleAccountFieldBuilder().getBuilder(); } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccountOrBuilder - getGoogleAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { if ((authenticationCase_ == 1) && (googleAccountBuilder_ != null)) { return googleAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccountOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder> getGoogleAccountFieldBuilder() { if (googleAccountBuilder_ == null) { if (!(authenticationCase_ == 1)) { - authentication_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .getDefaultInstance(); + authentication_ = com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); } - googleAccountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - .Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .GoogleAccount) - authentication_, + googleAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 1; - onChanged(); - ; + onChanged();; return googleAccountBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccountOrBuilder> - customAccountBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder> customAccountBuilder_; /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return Whether the customAccount field is set. */ @java.lang.Override @@ -4123,51 +3489,35 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - getCustomAccount() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getCustomAccount() { if (customAccountBuilder_ == null) { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } else { if (authenticationCase_ == 2) { return customAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public Builder setCustomAccount( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - value) { + public Builder setCustomAccount(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount value) { if (customAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4181,19 +3531,14 @@ public Builder setCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ public Builder setCustomAccount( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder builderForValue) { if (customAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -4204,32 +3549,18 @@ public Builder setCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public Builder mergeCustomAccount( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - value) { + public Builder mergeCustomAccount(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount value) { if (customAccountBuilder_ == null) { - if (authenticationCase_ == 2 - && authentication_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount.getDefaultInstance()) { - authentication_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .newBuilder( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount) - authentication_) - .mergeFrom(value) - .buildPartial(); + if (authenticationCase_ == 2 && + authentication_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) { + authentication_ = com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.newBuilder((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_) + .mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -4245,15 +3576,11 @@ public Builder mergeCustomAccount( return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ public Builder clearCustomAccount() { if (customAccountBuilder_ == null) { @@ -4272,93 +3599,58 @@ public Builder clearCustomAccount() { return this; } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .Builder - getCustomAccountBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder getCustomAccountBuilder() { return getCustomAccountFieldBuilder().getBuilder(); } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccountOrBuilder - getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { if ((authenticationCase_ == 2) && (customAccountBuilder_ != null)) { return customAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount) - authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } } /** - * - * *
        * Authentication using a custom account.
        * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccountOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder> getCustomAccountFieldBuilder() { if (customAccountBuilder_ == null) { if (!(authenticationCase_ == 2)) { - authentication_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .getDefaultInstance(); + authentication_ = com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); } - customAccountBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - .Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .CustomAccount) - authentication_, + customAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 2; - onChanged(); - ; + onChanged();; return customAccountBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4371,32 +3663,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) - private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication(); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Authentication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Authentication(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authentication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Authentication(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4408,20 +3698,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ScheduleOrBuilder - extends + public interface ScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4430,13 +3717,10 @@ public interface ScheduleOrBuilder
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ boolean hasScheduleTime(); /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4445,13 +3729,10 @@ public interface ScheduleOrBuilder
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ com.google.protobuf.Timestamp getScheduleTime(); /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4464,50 +3745,46 @@ public interface ScheduleOrBuilder
     com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder();
 
     /**
-     *
-     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The intervalDurationDays. */ int getIntervalDurationDays(); } /** - * - * *
    * Scan schedule configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule} */ - public static final class Schedule extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Schedule extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) ScheduleOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Schedule.newBuilder() to construct. private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Schedule() {} + private Schedule() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Schedule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Schedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4526,33 +3803,31 @@ private Schedule( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduleTime_ != null) { + subBuilder = scheduleTime_.toBuilder(); } - case 16: - { - intervalDurationDays_ = input.readInt32(); - break; + scheduleTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduleTime_); + scheduleTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + + intervalDurationDays_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4560,33 +3835,29 @@ private Schedule( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder.class); } public static final int SCHEDULE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp scheduleTime_; /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4595,7 +3866,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -4603,8 +3873,6 @@ public boolean hasScheduleTime() { return scheduleTime_ != null; } /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4613,18 +3881,13 @@ public boolean hasScheduleTime() {
      * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } /** - * - * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -4642,14 +3905,11 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
     public static final int INTERVAL_DURATION_DAYS_FIELD_NUMBER = 2;
     private int intervalDurationDays_;
     /**
-     *
-     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The intervalDurationDays. */ @java.lang.Override @@ -4658,7 +3918,6 @@ public int getIntervalDurationDays() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4670,7 +3929,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (scheduleTime_ != null) { output.writeMessage(1, getScheduleTime()); } @@ -4687,10 +3947,12 @@ public int getSerializedSize() { size = 0; if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getScheduleTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getScheduleTime()); } if (intervalDurationDays_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, intervalDurationDays_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, intervalDurationDays_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4700,19 +3962,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule other = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule other = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) obj; if (hasScheduleTime() != other.hasScheduleTime()) return false; if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) return false; + if (!getScheduleTime() + .equals(other.getScheduleTime())) return false; } - if (getIntervalDurationDays() != other.getIntervalDurationDays()) return false; + if (getIntervalDurationDays() + != other.getIntervalDurationDays()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4736,94 +3999,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4833,32 +4089,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Scan schedule configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.newBuilder() @@ -4866,15 +4117,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4890,14 +4142,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance(); } @@ -4912,8 +4163,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule result = - new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule(this); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule result = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule(this); if (scheduleTimeBuilder_ == null) { result.scheduleTime_ = scheduleTime_; } else { @@ -4928,52 +4178,46 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule other) { + if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance()) return this; if (other.hasScheduleTime()) { mergeScheduleTime(other.getScheduleTime()); } @@ -4999,9 +4243,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5013,13 +4255,8 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp scheduleTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleTimeBuilder_; /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5028,15 +4265,12 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return scheduleTimeBuilder_ != null || scheduleTime_ != null; } /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5045,21 +4279,16 @@ public boolean hasScheduleTime() {
        * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return The scheduleTime. */ public com.google.protobuf.Timestamp getScheduleTime() { if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; + return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; } else { return scheduleTimeBuilder_.getMessage(); } } /** - * - * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5083,8 +4312,6 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5094,7 +4321,8 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp schedule_time = 1;
        */
-      public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setScheduleTime(
+          com.google.protobuf.Timestamp.Builder builderForValue) {
         if (scheduleTimeBuilder_ == null) {
           scheduleTime_ = builderForValue.build();
           onChanged();
@@ -5105,8 +4333,6 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForV
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5120,9 +4346,7 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         if (scheduleTimeBuilder_ == null) {
           if (scheduleTime_ != null) {
             scheduleTime_ =
-                com.google.protobuf.Timestamp.newBuilder(scheduleTime_)
-                    .mergeFrom(value)
-                    .buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(scheduleTime_).mergeFrom(value).buildPartial();
           } else {
             scheduleTime_ = value;
           }
@@ -5134,8 +4358,6 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5157,8 +4379,6 @@ public Builder clearScheduleTime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5169,13 +4389,11 @@ public Builder clearScheduleTime() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() {
-
+        
         onChanged();
         return getScheduleTimeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5189,14 +4407,11 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
         if (scheduleTimeBuilder_ != null) {
           return scheduleTimeBuilder_.getMessageOrBuilder();
         } else {
-          return scheduleTime_ == null
-              ? com.google.protobuf.Timestamp.getDefaultInstance()
-              : scheduleTime_;
+          return scheduleTime_ == null ?
+              com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_;
         }
       }
       /**
-       *
-       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5207,32 +4422,26 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
           getScheduleTimeFieldBuilder() {
         if (scheduleTimeBuilder_ == null) {
-          scheduleTimeBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Timestamp,
-                  com.google.protobuf.Timestamp.Builder,
-                  com.google.protobuf.TimestampOrBuilder>(
-                  getScheduleTime(), getParentForChildren(), isClean());
+          scheduleTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                  getScheduleTime(),
+                  getParentForChildren(),
+                  isClean());
           scheduleTime_ = null;
         }
         return scheduleTimeBuilder_;
       }
 
-      private int intervalDurationDays_;
+      private int intervalDurationDays_ ;
       /**
-       *
-       *
        * 
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The intervalDurationDays. */ @java.lang.Override @@ -5240,41 +4449,34 @@ public int getIntervalDurationDays() { return intervalDurationDays_; } /** - * - * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The intervalDurationDays to set. * @return This builder for chaining. */ public Builder setIntervalDurationDays(int value) { - + intervalDurationDays_ = value; onChanged(); return this; } /** - * - * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearIntervalDurationDays() { - + intervalDurationDays_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5287,32 +4489,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) - private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule(); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schedule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5324,17 +4524,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5342,7 +4540,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -5351,15 +4548,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5367,15 +4563,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -5386,14 +4583,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -5402,29 +4596,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -5435,8 +4629,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int MAX_QPS_FIELD_NUMBER = 3; private int maxQps_; /** - * - * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -5445,7 +4637,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -5456,42 +4647,34 @@ public int getMaxQps() { public static final int STARTING_URLS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList startingUrls_; /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList + getStartingUrlsList() { return startingUrls_; } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -5499,34 +4682,28 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString + getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } public static final int AUTHENTICATION_FIELD_NUMBER = 5; private com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication_; /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; * @return Whether the authentication field is set. */ @java.lang.Override @@ -5534,121 +4711,92 @@ public boolean hasAuthentication() { return authentication_ != null; } /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; * @return The authentication. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getAuthentication() { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance() - : authentication_; + return authentication_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance() : authentication_; } /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder - getAuthenticationOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() { return getAuthentication(); } public static final int USER_AGENT_FIELD_NUMBER = 6; private int userAgent_; /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override - public int getUserAgentValue() { + @java.lang.Override public int getUserAgentValue() { return userAgent_; } /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent getUserAgent() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.UNRECOGNIZED : result; } public static final int BLACKLIST_PATTERNS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList blacklistPatterns_; /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList + getBlacklistPatternsList() { return blacklistPatterns_; } /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -5656,33 +4804,28 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } public static final int SCHEDULE_FIELD_NUMBER = 8; private com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule_; /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ @java.lang.Override @@ -5690,25 +4833,18 @@ public boolean hasSchedule() { return schedule_ != null; } /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getSchedule() { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() : schedule_; } /** - * - * *
    * The schedule of the ScanConfig.
    * 
@@ -5716,64 +4852,43 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getSchedul * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder - getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { return getSchedule(); } public static final int TARGET_PLATFORMS_FIELD_NUMBER = 9; private java.util.List targetPlatforms_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform> - targetPlatforms_converter_ = + java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform> targetPlatforms_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>() { - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform convert( - java.lang.Integer from) { + java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform.valueOf( - from); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform - .UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform.valueOf(from); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform.UNRECOGNIZED : result; } }; /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the targetPlatforms. */ @java.lang.Override - public java.util.List - getTargetPlatformsList() { + public java.util.List getTargetPlatformsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>( - targetPlatforms_, targetPlatforms_converter_); + java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>(targetPlatforms_, targetPlatforms_converter_); } /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return The count of targetPlatforms. */ @java.lang.Override @@ -5781,55 +4896,40 @@ public int getTargetPlatformsCount() { return targetPlatforms_.size(); } /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms( - int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms(int index) { return targetPlatforms_converter_.convert(targetPlatforms_.get(index)); } /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the enum numeric values on the wire for targetPlatforms. */ @java.lang.Override - public java.util.List getTargetPlatformsValueList() { + public java.util.List + getTargetPlatformsValueList() { return targetPlatforms_; } /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ @@ -5837,67 +4937,45 @@ public java.util.List getTargetPlatformsValueList() { public int getTargetPlatformsValue(int index) { return targetPlatforms_.get(index); } - private int targetPlatformsMemoizedSerializedSize; public static final int EXPORT_TO_SECURITY_COMMAND_CENTER_FIELD_NUMBER = 10; private int exportToSecurityCommandCenter_; /** - * - * *
    * Controls export of scan configurations and results to Cloud Security
    * Command Center.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ - @java.lang.Override - public int getExportToSecurityCommandCenterValue() { + @java.lang.Override public int getExportToSecurityCommandCenterValue() { return exportToSecurityCommandCenter_; } /** - * - * *
    * Controls export of scan configurations and results to Cloud Security
    * Command Center.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The exportToSecurityCommandCenter. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - getExportToSecurityCommandCenter() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.valueOf( - exportToSecurityCommandCenter_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - .UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.valueOf(exportToSecurityCommandCenter_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.UNRECOGNIZED : result; } public static final int LATEST_RUN_FIELD_NUMBER = 11; private com.google.cloud.websecurityscanner.v1beta.ScanRun latestRun_; /** - * - * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; - * * @return Whether the latestRun field is set. */ @java.lang.Override @@ -5905,25 +4983,18 @@ public boolean hasLatestRun() { return latestRun_ != null; } /** - * - * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; - * * @return The latestRun. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun getLatestRun() { - return latestRun_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() - : latestRun_; + return latestRun_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() : latestRun_; } /** - * - * *
    * Latest ScanRun if available.
    * 
@@ -5938,43 +5009,31 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getLatestRunO public static final int RISK_LEVEL_FIELD_NUMBER = 12; private int riskLevel_; /** - * - * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @return The enum numeric value on the wire for riskLevel. */ - @java.lang.Override - public int getRiskLevelValue() { + @java.lang.Override public int getRiskLevelValue() { return riskLevel_; } /** - * - * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @return The riskLevel. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel getRiskLevel() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel getRiskLevel() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.valueOf(riskLevel_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.valueOf(riskLevel_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5986,7 +5045,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); @@ -6003,9 +5063,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (authentication_ != null) { output.writeMessage(5, getAuthentication()); } - if (userAgent_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED - .getNumber()) { + if (userAgent_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { output.writeEnum(6, userAgent_); } for (int i = 0; i < blacklistPatterns_.size(); i++) { @@ -6021,18 +5079,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < targetPlatforms_.size(); i++) { output.writeEnumNoTag(targetPlatforms_.get(i)); } - if (exportToSecurityCommandCenter_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - .EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED - .getNumber()) { + if (exportToSecurityCommandCenter_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED.getNumber()) { output.writeEnum(10, exportToSecurityCommandCenter_); } if (latestRun_ != null) { output.writeMessage(11, getLatestRun()); } - if (riskLevel_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED - .getNumber()) { + if (riskLevel_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(12, riskLevel_); } unknownFields.writeTo(output); @@ -6051,7 +5104,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (maxQps_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxQps_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxQps_); } { int dataSize = 0; @@ -6062,12 +5116,12 @@ public int getSerializedSize() { size += 1 * getStartingUrlsList().size(); } if (authentication_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthentication()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAuthentication()); } - if (userAgent_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, userAgent_); + if (userAgent_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, userAgent_); } { int dataSize = 0; @@ -6078,35 +5132,32 @@ public int getSerializedSize() { size += 1 * getBlacklistPatternsList().size(); } if (schedule_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSchedule()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSchedule()); } { int dataSize = 0; for (int i = 0; i < targetPlatforms_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(targetPlatforms_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(targetPlatforms_.get(i)); } size += dataSize; - if (!getTargetPlatformsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - targetPlatformsMemoizedSerializedSize = dataSize; + if (!getTargetPlatformsList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }targetPlatformsMemoizedSerializedSize = dataSize; } - if (exportToSecurityCommandCenter_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - .EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(10, exportToSecurityCommandCenter_); + if (exportToSecurityCommandCenter_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, exportToSecurityCommandCenter_); } if (latestRun_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLatestRun()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getLatestRun()); } - if (riskLevel_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, riskLevel_); + if (riskLevel_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, riskLevel_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -6116,33 +5167,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfig other = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig) obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfig other = (com.google.cloud.websecurityscanner.v1beta.ScanConfig) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getMaxQps() != other.getMaxQps()) return false; - if (!getStartingUrlsList().equals(other.getStartingUrlsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (getMaxQps() + != other.getMaxQps()) return false; + if (!getStartingUrlsList() + .equals(other.getStartingUrlsList())) return false; if (hasAuthentication() != other.hasAuthentication()) return false; if (hasAuthentication()) { - if (!getAuthentication().equals(other.getAuthentication())) return false; + if (!getAuthentication() + .equals(other.getAuthentication())) return false; } if (userAgent_ != other.userAgent_) return false; - if (!getBlacklistPatternsList().equals(other.getBlacklistPatternsList())) return false; + if (!getBlacklistPatternsList() + .equals(other.getBlacklistPatternsList())) return false; if (hasSchedule() != other.hasSchedule()) return false; if (hasSchedule()) { - if (!getSchedule().equals(other.getSchedule())) return false; + if (!getSchedule() + .equals(other.getSchedule())) return false; } if (!targetPlatforms_.equals(other.targetPlatforms_)) return false; if (exportToSecurityCommandCenter_ != other.exportToSecurityCommandCenter_) return false; if (hasLatestRun() != other.hasLatestRun()) return false; if (hasLatestRun()) { - if (!getLatestRun().equals(other.getLatestRun())) return false; + if (!getLatestRun() + .equals(other.getLatestRun())) return false; } if (riskLevel_ != other.riskLevel_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -6198,127 +5256,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanConfig prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A ScanConfig resource contains the configurations to launch a scan.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfig) com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.newBuilder() @@ -6326,15 +5374,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -6378,9 +5427,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto - .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; } @java.lang.Override @@ -6399,8 +5448,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig result = - new com.google.cloud.websecurityscanner.v1beta.ScanConfig(this); + com.google.cloud.websecurityscanner.v1beta.ScanConfig result = new com.google.cloud.websecurityscanner.v1beta.ScanConfig(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -6446,39 +5494,38 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig)other); } else { super.mergeFrom(other); return this; @@ -6486,8 +5533,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfig other) { - if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -6566,8 +5612,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.ScanConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6576,13 +5621,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6590,13 +5632,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -6605,8 +5647,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6614,14 +5654,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -6629,8 +5670,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6638,22 +5677,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6661,18 +5698,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6680,16 +5714,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -6697,20 +5731,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -6719,21 +5751,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -6741,70 +5772,61 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private int maxQps_; + private int maxQps_ ; /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -6813,7 +5835,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -6821,8 +5842,6 @@ public int getMaxQps() { return maxQps_; } /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -6831,19 +5850,16 @@ public int getMaxQps() {
      * 
* * int32 max_qps = 3; - * * @param value The maxQps to set. * @return This builder for chaining. */ public Builder setMaxQps(int value) { - + maxQps_ = value; onChanged(); return this; } /** - * - * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -6852,62 +5868,51 @@ public Builder setMaxQps(int value) {
      * 
* * int32 max_qps = 3; - * * @return This builder for chaining. */ public Builder clearMaxQps() { - + maxQps_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList startingUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList startingUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStartingUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { startingUrls_ = new com.google.protobuf.LazyStringArrayList(startingUrls_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList + getStartingUrlsList() { return startingUrls_.getUnmodifiableView(); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -6915,90 +5920,80 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString + getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The startingUrls to set. * @return This builder for chaining. */ - public Builder setStartingUrls(int index, java.lang.String value) { + public Builder setStartingUrls( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrls(java.lang.String value) { + public Builder addStartingUrls( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The startingUrls to add. * @return This builder for chaining. */ - public Builder addAllStartingUrls(java.lang.Iterable values) { + public Builder addAllStartingUrls( + java.lang.Iterable values) { ensureStartingUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, startingUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, startingUrls_); onChanged(); return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearStartingUrls() { @@ -7008,22 +6003,20 @@ public Builder clearStartingUrls() { return this; } /** - * - * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { + public Builder addStartingUrlsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); @@ -7032,63 +6025,44 @@ public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder> - authenticationBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder> authenticationBuilder_; /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; * @return Whether the authentication field is set. */ public boolean hasAuthentication() { return authenticationBuilder_ != null || authentication_ != null; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; * @return The authentication. */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - getAuthentication() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getAuthentication() { if (authenticationBuilder_ == null) { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .getDefaultInstance() - : authentication_; + return authentication_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance() : authentication_; } else { return authenticationBuilder_.getMessage(); } } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ - public Builder setAuthentication( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication value) { + public Builder setAuthentication(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7102,19 +6076,15 @@ public Builder setAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ public Builder setAuthentication( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder builderForValue) { if (authenticationBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -7125,25 +6095,18 @@ public Builder setAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ - public Builder mergeAuthentication( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication value) { + public Builder mergeAuthentication(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (authentication_ != null) { authentication_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.newBuilder( - authentication_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.newBuilder(authentication_).mergeFrom(value).buildPartial(); } else { authentication_ = value; } @@ -7155,15 +6118,12 @@ public Builder mergeAuthentication( return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ public Builder clearAuthentication() { if (authenticationBuilder_ == null) { @@ -7177,67 +6137,51 @@ public Builder clearAuthentication() { return this; } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder - getAuthenticationBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder getAuthenticationBuilder() { + onChanged(); return getAuthenticationFieldBuilder().getBuilder(); } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder - getAuthenticationOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() { if (authenticationBuilder_ != null) { return authenticationBuilder_.getMessageOrBuilder(); } else { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .getDefaultInstance() - : authentication_; + return authentication_ == null ? + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance() : authentication_; } } /** - * - * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder> getAuthenticationFieldBuilder() { if (authenticationBuilder_ == null) { - authenticationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder>( - getAuthentication(), getParentForChildren(), isClean()); + authenticationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder>( + getAuthentication(), + getParentForChildren(), + isClean()); authentication_ = null; } return authenticationBuilder_; @@ -7245,147 +6189,117 @@ public Builder clearAuthentication() { private int userAgent_ = 0; /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override - public int getUserAgentValue() { + @java.lang.Override public int getUserAgentValue() { return userAgent_; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @param value The enum numeric value on the wire for userAgent to set. * @return This builder for chaining. */ public Builder setUserAgentValue(int value) { - + userAgent_ = value; onChanged(); return this; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.UNRECOGNIZED : result; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @param value The userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgent( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent value) { + public Builder setUserAgent(com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent value) { if (value == null) { throw new NullPointerException(); } - + userAgent_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @return This builder for chaining. */ public Builder clearUserAgent() { - + userAgent_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList blacklistPatterns_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureBlacklistPatternsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(blacklistPatterns_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList + getBlacklistPatternsList() { return blacklistPatterns_.getUnmodifiableView(); } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -7393,95 +6307,85 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param index The index to set the value at. * @param value The blacklistPatterns to set. * @return This builder for chaining. */ - public Builder setBlacklistPatterns(int index, java.lang.String value) { + public Builder setBlacklistPatterns( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.set(index, value); onChanged(); return this; } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param value The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatterns(java.lang.String value) { + public Builder addBlacklistPatterns( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); return this; } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param values The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addAllBlacklistPatterns(java.lang.Iterable values) { + public Builder addAllBlacklistPatterns( + java.lang.Iterable values) { ensureBlacklistPatternsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blacklistPatterns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blacklistPatterns_); onChanged(); return this; } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @return This builder for chaining. */ public Builder clearBlacklistPatterns() { @@ -7491,23 +6395,21 @@ public Builder clearBlacklistPatterns() { return this; } /** - * - * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; - * * @param value The bytes of the blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { + public Builder addBlacklistPatternsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); @@ -7516,55 +6418,41 @@ public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { private com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder> - scheduleBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder> scheduleBuilder_; /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ public boolean hasSchedule() { return scheduleBuilder_ != null || schedule_ != null; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getSchedule() { if (scheduleBuilder_ == null) { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() : schedule_; } else { return scheduleBuilder_.getMessage(); } } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ - public Builder setSchedule( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule value) { + public Builder setSchedule(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule value) { if (scheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7578,8 +6466,6 @@ public Builder setSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -7598,22 +6484,17 @@ public Builder setSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ - public Builder mergeSchedule( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule value) { + public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule value) { if (scheduleBuilder_ == null) { if (schedule_ != null) { schedule_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.newBuilder(schedule_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.newBuilder(schedule_).mergeFrom(value).buildPartial(); } else { schedule_ = value; } @@ -7625,8 +6506,6 @@ public Builder mergeSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -7645,42 +6524,33 @@ public Builder clearSchedule() { return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder - getScheduleBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder getScheduleBuilder() { + onChanged(); return getScheduleFieldBuilder().getBuilder(); } /** - * - * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder - getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { if (scheduleBuilder_ != null) { return scheduleBuilder_.getMessageOrBuilder(); } else { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + return schedule_ == null ? + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() : schedule_; } } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -7688,24 +6558,21 @@ public Builder clearSchedule() { * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder> getScheduleFieldBuilder() { if (scheduleBuilder_ == null) { - scheduleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder>( - getSchedule(), getParentForChildren(), isClean()); + scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder>( + getSchedule(), + getParentForChildren(), + isClean()); schedule_ = null; } return scheduleBuilder_; } - private java.util.List targetPlatforms_ = java.util.Collections.emptyList(); - + private java.util.List targetPlatforms_ = + java.util.Collections.emptyList(); private void ensureTargetPlatformsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { targetPlatforms_ = new java.util.ArrayList(targetPlatforms_); @@ -7713,73 +6580,50 @@ private void ensureTargetPlatformsIsMutable() { } } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the targetPlatforms. */ - public java.util.List - getTargetPlatformsList() { + public java.util.List getTargetPlatformsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>( - targetPlatforms_, targetPlatforms_converter_); + java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>(targetPlatforms_, targetPlatforms_converter_); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return The count of targetPlatforms. */ public int getTargetPlatformsCount() { return targetPlatforms_.size(); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms( - int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms(int index) { return targetPlatforms_converter_.convert(targetPlatforms_.get(index)); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index to set the value at. * @param value The targetPlatforms to set. * @return This builder for chaining. @@ -7795,22 +6639,16 @@ public Builder setTargetPlatforms( return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param value The targetPlatforms to add. * @return This builder for chaining. */ - public Builder addTargetPlatforms( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform value) { + public Builder addTargetPlatforms(com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform value) { if (value == null) { throw new NullPointerException(); } @@ -7820,24 +6658,17 @@ public Builder addTargetPlatforms( return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param values The targetPlatforms to add. * @return This builder for chaining. */ public Builder addAllTargetPlatforms( - java.lang.Iterable< - ? extends com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform> - values) { + java.lang.Iterable values) { ensureTargetPlatformsIsMutable(); for (com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform value : values) { targetPlatforms_.add(value.getNumber()); @@ -7846,17 +6677,12 @@ public Builder addAllTargetPlatforms( return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return This builder for chaining. */ public Builder clearTargetPlatforms() { @@ -7866,34 +6692,25 @@ public Builder clearTargetPlatforms() { return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the enum numeric values on the wire for targetPlatforms. */ - public java.util.List getTargetPlatformsValueList() { + public java.util.List + getTargetPlatformsValueList() { return java.util.Collections.unmodifiableList(targetPlatforms_); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ @@ -7901,39 +6718,30 @@ public int getTargetPlatformsValue(int index) { return targetPlatforms_.get(index); } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index to set the value at. * @param value The enum numeric value on the wire for targetPlatforms to set. * @return This builder for chaining. */ - public Builder setTargetPlatformsValue(int index, int value) { + public Builder setTargetPlatformsValue( + int index, int value) { ensureTargetPlatformsIsMutable(); targetPlatforms_.set(index, value); onChanged(); return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param value The enum numeric value on the wire for targetPlatforms to add. * @return This builder for chaining. */ @@ -7944,21 +6752,17 @@ public Builder addTargetPlatformsValue(int value) { return this; } /** - * - * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param values The enum numeric values on the wire for targetPlatforms to add. * @return This builder for chaining. */ - public Builder addAllTargetPlatformsValue(java.lang.Iterable values) { + public Builder addAllTargetPlatformsValue( + java.lang.Iterable values) { ensureTargetPlatformsIsMutable(); for (int value : values) { targetPlatforms_.add(value); @@ -7969,111 +6773,78 @@ public Builder addAllTargetPlatformsValue(java.lang.Iterable private int exportToSecurityCommandCenter_ = 0; /** - * - * *
      * Controls export of scan configurations and results to Cloud Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ - @java.lang.Override - public int getExportToSecurityCommandCenterValue() { + @java.lang.Override public int getExportToSecurityCommandCenterValue() { return exportToSecurityCommandCenter_; } /** - * - * *
      * Controls export of scan configurations and results to Cloud Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @param value The enum numeric value on the wire for exportToSecurityCommandCenter to set. * @return This builder for chaining. */ public Builder setExportToSecurityCommandCenterValue(int value) { - + exportToSecurityCommandCenter_ = value; onChanged(); return this; } /** - * - * *
      * Controls export of scan configurations and results to Cloud Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The exportToSecurityCommandCenter. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - getExportToSecurityCommandCenter() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - .valueOf(exportToSecurityCommandCenter_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - .UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.valueOf(exportToSecurityCommandCenter_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.UNRECOGNIZED : result; } /** - * - * *
      * Controls export of scan configurations and results to Cloud Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @param value The exportToSecurityCommandCenter to set. * @return This builder for chaining. */ - public Builder setExportToSecurityCommandCenter( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter value) { + public Builder setExportToSecurityCommandCenter(com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter value) { if (value == null) { throw new NullPointerException(); } - + exportToSecurityCommandCenter_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Controls export of scan configurations and results to Cloud Security
      * Command Center.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return This builder for chaining. */ public Builder clearExportToSecurityCommandCenter() { - + exportToSecurityCommandCenter_ = 0; onChanged(); return this; @@ -8081,47 +6852,34 @@ public Builder clearExportToSecurityCommandCenter() { private com.google.cloud.websecurityscanner.v1beta.ScanRun latestRun_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, - com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> - latestRunBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> latestRunBuilder_; /** - * - * *
      * Latest ScanRun if available.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; - * * @return Whether the latestRun field is set. */ public boolean hasLatestRun() { return latestRunBuilder_ != null || latestRun_ != null; } /** - * - * *
      * Latest ScanRun if available.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; - * * @return The latestRun. */ public com.google.cloud.websecurityscanner.v1beta.ScanRun getLatestRun() { if (latestRunBuilder_ == null) { - return latestRun_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() - : latestRun_; + return latestRun_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() : latestRun_; } else { return latestRunBuilder_.getMessage(); } } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8142,8 +6900,6 @@ public Builder setLatestRun(com.google.cloud.websecurityscanner.v1beta.ScanRun v return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8162,8 +6918,6 @@ public Builder setLatestRun( return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8174,9 +6928,7 @@ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1beta.ScanRun if (latestRunBuilder_ == null) { if (latestRun_ != null) { latestRun_ = - com.google.cloud.websecurityscanner.v1beta.ScanRun.newBuilder(latestRun_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanRun.newBuilder(latestRun_).mergeFrom(value).buildPartial(); } else { latestRun_ = value; } @@ -8188,8 +6940,6 @@ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1beta.ScanRun return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8208,8 +6958,6 @@ public Builder clearLatestRun() { return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8217,13 +6965,11 @@ public Builder clearLatestRun() { * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; */ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder getLatestRunBuilder() { - + onChanged(); return getLatestRunFieldBuilder().getBuilder(); } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8234,14 +6980,11 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getLatestRunO if (latestRunBuilder_ != null) { return latestRunBuilder_.getMessageOrBuilder(); } else { - return latestRun_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() - : latestRun_; + return latestRun_ == null ? + com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() : latestRun_; } } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8249,17 +6992,14 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getLatestRunO * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, - com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> getLatestRunFieldBuilder() { if (latestRunBuilder_ == null) { - latestRunBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, - com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder>( - getLatestRun(), getParentForChildren(), isClean()); + latestRunBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder>( + getLatestRun(), + getParentForChildren(), + isClean()); latestRun_ = null; } return latestRunBuilder_; @@ -8267,100 +7007,80 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getLatestRunO private int riskLevel_ = 0; /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @return The enum numeric value on the wire for riskLevel. */ - @java.lang.Override - public int getRiskLevelValue() { + @java.lang.Override public int getRiskLevelValue() { return riskLevel_; } /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @param value The enum numeric value on the wire for riskLevel to set. * @return This builder for chaining. */ public Builder setRiskLevelValue(int value) { - + riskLevel_ = value; onChanged(); return this; } /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @return The riskLevel. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel getRiskLevel() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.valueOf(riskLevel_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.valueOf(riskLevel_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.UNRECOGNIZED : result; } /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @param value The riskLevel to set. * @return This builder for chaining. */ - public Builder setRiskLevel( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel value) { + public Builder setRiskLevel(com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel value) { if (value == null) { throw new NullPointerException(); } - + riskLevel_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @return This builder for chaining. */ public Builder clearRiskLevel() { - + riskLevel_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8370,12 +7090,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfig) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig) private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfig(); } @@ -8384,16 +7104,16 @@ public static com.google.cloud.websecurityscanner.v1beta.ScanConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8408,4 +7128,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java similarity index 75% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java index 2f1c0033..53863ec2 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_config_error.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Defines a custom error message used by CreateScanConfig and UpdateScanConfig
  * APIs when scan configuration validation fails. It is also reported as part of
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfigError}
  */
-public final class ScanConfigError extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanConfigError extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfigError)
     ScanConfigErrorOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanConfigError.newBuilder() to construct.
   private ScanConfigError(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanConfigError() {
     code_ = 0;
     fieldName_ = "";
@@ -47,15 +29,16 @@ private ScanConfigError() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanConfigError();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanConfigError(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,27 +57,25 @@ private ScanConfigError(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              code_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            code_ = rawValue;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              fieldName_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            fieldName_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -102,31 +83,27 @@ private ScanConfigError(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.class,
-            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.class, com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Output only.
    * Defines an error reason code.
@@ -135,10 +112,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanConfigError.Code}
    */
-  public enum Code implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Code
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * There is no error.
      * 
@@ -147,8 +123,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0, 0), /** - * - * *
      * Indicates an internal server error.
      * Please DO NOT USE THIS ERROR CODE unless the root cause is truly unknown.
@@ -158,8 +132,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     INTERNAL_ERROR(2, 1),
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot validate the scan
      * settings due to an App Engine API backend error.
@@ -169,8 +141,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     APPENGINE_API_BACKEND_ERROR(3, 2),
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot access the
      * App Engine API to validate scan settings.
@@ -180,8 +150,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     APPENGINE_API_NOT_ACCESSIBLE(4, 3),
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but the Default Host of the
      * App Engine is not set.
@@ -191,8 +159,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     APPENGINE_DEFAULT_HOST_MISSING(5, 4),
     /**
-     *
-     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -201,8 +167,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CANNOT_USE_GOOGLE_COM_ACCOUNT(6, 6), /** - * - * *
      * The account of the scan creator can not be used for scanning.
      * 
@@ -211,8 +175,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CANNOT_USE_OWNER_ACCOUNT(7, 7), /** - * - * *
      * This scan targets Compute Engine, but we cannot validate scan settings
      * due to a Compute Engine API backend error.
@@ -222,8 +184,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     COMPUTE_API_BACKEND_ERROR(8, 8),
     /**
-     *
-     *
      * 
      * This scan targets Compute Engine, but we cannot access the Compute Engine
      * API to validate the scan settings.
@@ -233,8 +193,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     COMPUTE_API_NOT_ACCESSIBLE(9, 9),
     /**
-     *
-     *
      * 
      * The Custom Login URL does not belong to the current project.
      * 
@@ -243,8 +201,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT(10, 10), /** - * - * *
      * The Custom Login URL is malformed (can not be parsed).
      * 
@@ -253,8 +209,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CUSTOM_LOGIN_URL_MALFORMED(11, 11), /** - * - * *
      * The Custom Login URL is mapped to a non-routable IP address in DNS.
      * 
@@ -263,8 +217,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS(12, 12), /** - * - * *
      * The Custom Login URL is mapped to an IP address which is not reserved for
      * the current project.
@@ -274,8 +226,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS(13, 13),
     /**
-     *
-     *
      * 
      * The Custom Login URL has a non-routable IP address.
      * 
@@ -284,8 +234,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS(14, 14), /** - * - * *
      * The Custom Login URL has an IP address which is not reserved for the
      * current project.
@@ -295,8 +243,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS(15, 15),
     /**
-     *
-     *
      * 
      * Another scan with the same name (case-sensitive) already exists.
      * 
@@ -305,8 +251,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ DUPLICATE_SCAN_NAME(16, 16), /** - * - * *
      * A field is set to an invalid value.
      * 
@@ -315,8 +259,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ INVALID_FIELD_VALUE(17, 18), /** - * - * *
      * There was an error trying to authenticate to the scan target.
      * 
@@ -325,8 +267,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ FAILED_TO_AUTHENTICATE_TO_TARGET(18, 19), /** - * - * *
      * Finding type value is not specified in the list findings request.
      * 
@@ -335,8 +275,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ FINDING_TYPE_UNSPECIFIED(19, 20), /** - * - * *
      * Scan targets Compute Engine, yet current project was not whitelisted for
      * Google Compute Engine Scanning Alpha access.
@@ -346,8 +284,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     FORBIDDEN_TO_SCAN_COMPUTE(20, 21),
     /**
-     *
-     *
      * 
      * User tries to update managed scan
      * 
@@ -356,8 +292,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ FORBIDDEN_UPDATE_TO_MANAGED_SCAN(21, 43), /** - * - * *
      * The supplied filter is malformed. For example, it can not be parsed, does
      * not have a filter type in expression, or the same filter type appears
@@ -368,8 +302,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     MALFORMED_FILTER(22, 22),
     /**
-     *
-     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -378,8 +310,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ MALFORMED_RESOURCE_NAME(23, 23), /** - * - * *
      * The current project is not in an active state.
      * 
@@ -388,8 +318,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ PROJECT_INACTIVE(24, 24), /** - * - * *
      * A required field is not set.
      * 
@@ -398,8 +326,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ REQUIRED_FIELD(25, 25), /** - * - * *
      * Project id, scanconfig id, scanrun id, or finding id are not consistent
      * with each other in resource name.
@@ -409,8 +335,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESOURCE_NAME_INCONSISTENT(26, 26),
     /**
-     *
-     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -419,8 +343,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SCAN_ALREADY_RUNNING(27, 27), /** - * - * *
      * The scan that was requested to be stopped is not running.
      * 
@@ -429,8 +351,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SCAN_NOT_RUNNING(28, 28), /** - * - * *
      * One of the seed URLs does not belong to the current project.
      * 
@@ -439,8 +359,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT(29, 29), /** - * - * *
      * One of the seed URLs is malformed (can not be parsed).
      * 
@@ -449,8 +367,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SEED_URL_MALFORMED(30, 30), /** - * - * *
      * One of the seed URLs is mapped to a non-routable IP address in DNS.
      * 
@@ -459,8 +375,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS(31, 31), /** - * - * *
      * One of the seed URLs is mapped to an IP address which is not reserved
      * for the current project.
@@ -470,8 +384,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS(32, 32),
     /**
-     *
-     *
      * 
      * One of the seed URLs has on-routable IP address.
      * 
@@ -480,8 +392,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS(33, 33), /** - * - * *
      * One of the seed URLs has an IP address that is not reserved
      * for the current project.
@@ -491,8 +401,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SEED_URL_HAS_UNRESERVED_IP_ADDRESS(34, 35),
     /**
-     *
-     *
      * 
      * The Cloud Security Scanner service account is not configured under the
      * project.
@@ -502,8 +410,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SERVICE_ACCOUNT_NOT_CONFIGURED(35, 36),
     /**
-     *
-     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -512,8 +418,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ TOO_MANY_SCANS(36, 37), /** - * - * *
      * Resolving the details of the current project fails.
      * 
@@ -522,8 +426,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ UNABLE_TO_RESOLVE_PROJECT_INFO(37, 38), /** - * - * *
      * One or more blacklist patterns were in the wrong format.
      * 
@@ -532,8 +434,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ UNSUPPORTED_BLACKLIST_PATTERN_FORMAT(38, 39), /** - * - * *
      * The supplied filter is not supported.
      * 
@@ -542,8 +442,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ UNSUPPORTED_FILTER(39, 40), /** - * - * *
      * The supplied finding type is not supported. For example, we do not
      * provide findings of the given finding type.
@@ -553,8 +451,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     UNSUPPORTED_FINDING_TYPE(40, 41),
     /**
-     *
-     *
      * 
      * The URL scheme of one or more of the supplied URLs is not supported.
      * 
@@ -566,8 +462,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * There is no error.
      * 
@@ -576,8 +470,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final Code OK = CODE_UNSPECIFIED; /** - * - * *
      * There is no error.
      * 
@@ -586,8 +478,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * There is no error.
      * 
@@ -596,8 +486,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OK_VALUE = 0; /** - * - * *
      * Indicates an internal server error.
      * Please DO NOT USE THIS ERROR CODE unless the root cause is truly unknown.
@@ -607,8 +495,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INTERNAL_ERROR_VALUE = 1;
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot validate the scan
      * settings due to an App Engine API backend error.
@@ -618,8 +504,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int APPENGINE_API_BACKEND_ERROR_VALUE = 2;
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot access the
      * App Engine API to validate scan settings.
@@ -629,8 +513,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int APPENGINE_API_NOT_ACCESSIBLE_VALUE = 3;
     /**
-     *
-     *
      * 
      * One of the seed URLs is an App Engine URL but the Default Host of the
      * App Engine is not set.
@@ -640,8 +522,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int APPENGINE_DEFAULT_HOST_MISSING_VALUE = 4;
     /**
-     *
-     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -650,8 +530,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANNOT_USE_GOOGLE_COM_ACCOUNT_VALUE = 6; /** - * - * *
      * The account of the scan creator can not be used for scanning.
      * 
@@ -660,8 +538,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANNOT_USE_OWNER_ACCOUNT_VALUE = 7; /** - * - * *
      * This scan targets Compute Engine, but we cannot validate scan settings
      * due to a Compute Engine API backend error.
@@ -671,8 +547,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int COMPUTE_API_BACKEND_ERROR_VALUE = 8;
     /**
-     *
-     *
      * 
      * This scan targets Compute Engine, but we cannot access the Compute Engine
      * API to validate the scan settings.
@@ -682,8 +556,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int COMPUTE_API_NOT_ACCESSIBLE_VALUE = 9;
     /**
-     *
-     *
      * 
      * The Custom Login URL does not belong to the current project.
      * 
@@ -692,8 +564,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT_VALUE = 10; /** - * - * *
      * The Custom Login URL is malformed (can not be parsed).
      * 
@@ -702,8 +572,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_LOGIN_URL_MALFORMED_VALUE = 11; /** - * - * *
      * The Custom Login URL is mapped to a non-routable IP address in DNS.
      * 
@@ -712,8 +580,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS_VALUE = 12; /** - * - * *
      * The Custom Login URL is mapped to an IP address which is not reserved for
      * the current project.
@@ -723,8 +589,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS_VALUE = 13;
     /**
-     *
-     *
      * 
      * The Custom Login URL has a non-routable IP address.
      * 
@@ -733,8 +597,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS_VALUE = 14; /** - * - * *
      * The Custom Login URL has an IP address which is not reserved for the
      * current project.
@@ -744,8 +606,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS_VALUE = 15;
     /**
-     *
-     *
      * 
      * Another scan with the same name (case-sensitive) already exists.
      * 
@@ -754,8 +614,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DUPLICATE_SCAN_NAME_VALUE = 16; /** - * - * *
      * A field is set to an invalid value.
      * 
@@ -764,8 +622,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INVALID_FIELD_VALUE_VALUE = 18; /** - * - * *
      * There was an error trying to authenticate to the scan target.
      * 
@@ -774,8 +630,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_TO_AUTHENTICATE_TO_TARGET_VALUE = 19; /** - * - * *
      * Finding type value is not specified in the list findings request.
      * 
@@ -784,8 +638,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FINDING_TYPE_UNSPECIFIED_VALUE = 20; /** - * - * *
      * Scan targets Compute Engine, yet current project was not whitelisted for
      * Google Compute Engine Scanning Alpha access.
@@ -795,8 +647,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FORBIDDEN_TO_SCAN_COMPUTE_VALUE = 21;
     /**
-     *
-     *
      * 
      * User tries to update managed scan
      * 
@@ -805,8 +655,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FORBIDDEN_UPDATE_TO_MANAGED_SCAN_VALUE = 43; /** - * - * *
      * The supplied filter is malformed. For example, it can not be parsed, does
      * not have a filter type in expression, or the same filter type appears
@@ -817,8 +665,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MALFORMED_FILTER_VALUE = 22;
     /**
-     *
-     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -827,8 +673,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MALFORMED_RESOURCE_NAME_VALUE = 23; /** - * - * *
      * The current project is not in an active state.
      * 
@@ -837,8 +681,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROJECT_INACTIVE_VALUE = 24; /** - * - * *
      * A required field is not set.
      * 
@@ -847,8 +689,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REQUIRED_FIELD_VALUE = 25; /** - * - * *
      * Project id, scanconfig id, scanrun id, or finding id are not consistent
      * with each other in resource name.
@@ -858,8 +698,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESOURCE_NAME_INCONSISTENT_VALUE = 26;
     /**
-     *
-     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -868,8 +706,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCAN_ALREADY_RUNNING_VALUE = 27; /** - * - * *
      * The scan that was requested to be stopped is not running.
      * 
@@ -878,8 +714,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCAN_NOT_RUNNING_VALUE = 28; /** - * - * *
      * One of the seed URLs does not belong to the current project.
      * 
@@ -888,8 +722,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT_VALUE = 29; /** - * - * *
      * One of the seed URLs is malformed (can not be parsed).
      * 
@@ -898,8 +730,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEED_URL_MALFORMED_VALUE = 30; /** - * - * *
      * One of the seed URLs is mapped to a non-routable IP address in DNS.
      * 
@@ -908,8 +738,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS_VALUE = 31; /** - * - * *
      * One of the seed URLs is mapped to an IP address which is not reserved
      * for the current project.
@@ -919,8 +747,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS_VALUE = 32;
     /**
-     *
-     *
      * 
      * One of the seed URLs has on-routable IP address.
      * 
@@ -929,8 +755,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS_VALUE = 33; /** - * - * *
      * One of the seed URLs has an IP address that is not reserved
      * for the current project.
@@ -940,8 +764,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SEED_URL_HAS_UNRESERVED_IP_ADDRESS_VALUE = 35;
     /**
-     *
-     *
      * 
      * The Cloud Security Scanner service account is not configured under the
      * project.
@@ -951,8 +773,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SERVICE_ACCOUNT_NOT_CONFIGURED_VALUE = 36;
     /**
-     *
-     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -961,8 +781,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TOO_MANY_SCANS_VALUE = 37; /** - * - * *
      * Resolving the details of the current project fails.
      * 
@@ -971,8 +789,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNABLE_TO_RESOLVE_PROJECT_INFO_VALUE = 38; /** - * - * *
      * One or more blacklist patterns were in the wrong format.
      * 
@@ -981,8 +797,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSUPPORTED_BLACKLIST_PATTERN_FORMAT_VALUE = 39; /** - * - * *
      * The supplied filter is not supported.
      * 
@@ -991,8 +805,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSUPPORTED_FILTER_VALUE = 40; /** - * - * *
      * The supplied finding type is not supported. For example, we do not
      * provide findings of the given finding type.
@@ -1002,8 +814,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int UNSUPPORTED_FINDING_TYPE_VALUE = 41;
     /**
-     *
-     *
      * 
      * The URL scheme of one or more of the supplied URLs is not supported.
      * 
@@ -1012,6 +822,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNSUPPORTED_URL_SCHEME_VALUE = 42; + public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( @@ -1036,174 +847,91 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: - return CODE_UNSPECIFIED; - case 1: - return INTERNAL_ERROR; - case 2: - return APPENGINE_API_BACKEND_ERROR; - case 3: - return APPENGINE_API_NOT_ACCESSIBLE; - case 4: - return APPENGINE_DEFAULT_HOST_MISSING; - case 6: - return CANNOT_USE_GOOGLE_COM_ACCOUNT; - case 7: - return CANNOT_USE_OWNER_ACCOUNT; - case 8: - return COMPUTE_API_BACKEND_ERROR; - case 9: - return COMPUTE_API_NOT_ACCESSIBLE; - case 10: - return CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; - case 11: - return CUSTOM_LOGIN_URL_MALFORMED; - case 12: - return CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; - case 13: - return CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS; - case 14: - return CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS; - case 15: - return CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS; - case 16: - return DUPLICATE_SCAN_NAME; - case 18: - return INVALID_FIELD_VALUE; - case 19: - return FAILED_TO_AUTHENTICATE_TO_TARGET; - case 20: - return FINDING_TYPE_UNSPECIFIED; - case 21: - return FORBIDDEN_TO_SCAN_COMPUTE; - case 43: - return FORBIDDEN_UPDATE_TO_MANAGED_SCAN; - case 22: - return MALFORMED_FILTER; - case 23: - return MALFORMED_RESOURCE_NAME; - case 24: - return PROJECT_INACTIVE; - case 25: - return REQUIRED_FIELD; - case 26: - return RESOURCE_NAME_INCONSISTENT; - case 27: - return SCAN_ALREADY_RUNNING; - case 28: - return SCAN_NOT_RUNNING; - case 29: - return SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; - case 30: - return SEED_URL_MALFORMED; - case 31: - return SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; - case 32: - return SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS; - case 33: - return SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS; - case 35: - return SEED_URL_HAS_UNRESERVED_IP_ADDRESS; - case 36: - return SERVICE_ACCOUNT_NOT_CONFIGURED; - case 37: - return TOO_MANY_SCANS; - case 38: - return UNABLE_TO_RESOLVE_PROJECT_INFO; - case 39: - return UNSUPPORTED_BLACKLIST_PATTERN_FORMAT; - case 40: - return UNSUPPORTED_FILTER; - case 41: - return UNSUPPORTED_FINDING_TYPE; - case 42: - return UNSUPPORTED_URL_SCHEME; - default: - return null; + case 0: return CODE_UNSPECIFIED; + case 1: return INTERNAL_ERROR; + case 2: return APPENGINE_API_BACKEND_ERROR; + case 3: return APPENGINE_API_NOT_ACCESSIBLE; + case 4: return APPENGINE_DEFAULT_HOST_MISSING; + case 6: return CANNOT_USE_GOOGLE_COM_ACCOUNT; + case 7: return CANNOT_USE_OWNER_ACCOUNT; + case 8: return COMPUTE_API_BACKEND_ERROR; + case 9: return COMPUTE_API_NOT_ACCESSIBLE; + case 10: return CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; + case 11: return CUSTOM_LOGIN_URL_MALFORMED; + case 12: return CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; + case 13: return CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS; + case 14: return CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS; + case 15: return CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS; + case 16: return DUPLICATE_SCAN_NAME; + case 18: return INVALID_FIELD_VALUE; + case 19: return FAILED_TO_AUTHENTICATE_TO_TARGET; + case 20: return FINDING_TYPE_UNSPECIFIED; + case 21: return FORBIDDEN_TO_SCAN_COMPUTE; + case 43: return FORBIDDEN_UPDATE_TO_MANAGED_SCAN; + case 22: return MALFORMED_FILTER; + case 23: return MALFORMED_RESOURCE_NAME; + case 24: return PROJECT_INACTIVE; + case 25: return REQUIRED_FIELD; + case 26: return RESOURCE_NAME_INCONSISTENT; + case 27: return SCAN_ALREADY_RUNNING; + case 28: return SCAN_NOT_RUNNING; + case 29: return SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; + case 30: return SEED_URL_MALFORMED; + case 31: return SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; + case 32: return SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS; + case 33: return SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS; + case 35: return SEED_URL_HAS_UNRESERVED_IP_ADDRESS; + case 36: return SERVICE_ACCOUNT_NOT_CONFIGURED; + case 37: return TOO_MANY_SCANS; + case 38: return UNABLE_TO_RESOLVE_PROJECT_INFO; + case 39: return UNSUPPORTED_BLACKLIST_PATTERN_FORMAT; + case 40: return UNSUPPORTED_FILTER; + case 41: return UNSUPPORTED_FINDING_TYPE; + case 42: return UNSUPPORTED_URL_SCHEME; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (index == -1) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(index); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = getStaticValuesArray(); - private static Code[] getStaticValuesArray() { return new Code[] { - CODE_UNSPECIFIED, - OK, - INTERNAL_ERROR, - APPENGINE_API_BACKEND_ERROR, - APPENGINE_API_NOT_ACCESSIBLE, - APPENGINE_DEFAULT_HOST_MISSING, - CANNOT_USE_GOOGLE_COM_ACCOUNT, - CANNOT_USE_OWNER_ACCOUNT, - COMPUTE_API_BACKEND_ERROR, - COMPUTE_API_NOT_ACCESSIBLE, - CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, - CUSTOM_LOGIN_URL_MALFORMED, - CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, - CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS, - CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS, - CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS, - DUPLICATE_SCAN_NAME, - INVALID_FIELD_VALUE, - FAILED_TO_AUTHENTICATE_TO_TARGET, - FINDING_TYPE_UNSPECIFIED, - FORBIDDEN_TO_SCAN_COMPUTE, - FORBIDDEN_UPDATE_TO_MANAGED_SCAN, - MALFORMED_FILTER, - MALFORMED_RESOURCE_NAME, - PROJECT_INACTIVE, - REQUIRED_FIELD, - RESOURCE_NAME_INCONSISTENT, - SCAN_ALREADY_RUNNING, - SCAN_NOT_RUNNING, - SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, - SEED_URL_MALFORMED, - SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, - SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS, - SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS, - SEED_URL_HAS_UNRESERVED_IP_ADDRESS, - SERVICE_ACCOUNT_NOT_CONFIGURED, - TOO_MANY_SCANS, - UNABLE_TO_RESOLVE_PROJECT_INFO, - UNSUPPORTED_BLACKLIST_PATTERN_FORMAT, - UNSUPPORTED_FILTER, - UNSUPPORTED_FINDING_TYPE, - UNSUPPORTED_URL_SCHEME, + CODE_UNSPECIFIED, OK, INTERNAL_ERROR, APPENGINE_API_BACKEND_ERROR, APPENGINE_API_NOT_ACCESSIBLE, APPENGINE_DEFAULT_HOST_MISSING, CANNOT_USE_GOOGLE_COM_ACCOUNT, CANNOT_USE_OWNER_ACCOUNT, COMPUTE_API_BACKEND_ERROR, COMPUTE_API_NOT_ACCESSIBLE, CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, CUSTOM_LOGIN_URL_MALFORMED, CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS, CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS, CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS, DUPLICATE_SCAN_NAME, INVALID_FIELD_VALUE, FAILED_TO_AUTHENTICATE_TO_TARGET, FINDING_TYPE_UNSPECIFIED, FORBIDDEN_TO_SCAN_COMPUTE, FORBIDDEN_UPDATE_TO_MANAGED_SCAN, MALFORMED_FILTER, MALFORMED_RESOURCE_NAME, PROJECT_INACTIVE, REQUIRED_FIELD, RESOURCE_NAME_INCONSISTENT, SCAN_ALREADY_RUNNING, SCAN_NOT_RUNNING, SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, SEED_URL_MALFORMED, SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS, SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS, SEED_URL_HAS_UNRESERVED_IP_ADDRESS, SERVICE_ACCOUNT_NOT_CONFIGURED, TOO_MANY_SCANS, UNABLE_TO_RESOLVE_PROJECT_INFO, UNSUPPORTED_BLACKLIST_PATTERN_FORMAT, UNSUPPORTED_FILTER, UNSUPPORTED_FINDING_TYPE, UNSUPPORTED_URL_SCHEME, }; } - - public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1225,46 +953,33 @@ private Code(int index, int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** - * - * *
    * Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.UNRECOGNIZED : result; } public static final int FIELD_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object fieldName_; /** - * - * *
    * Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -1273,7 +988,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode()
    * 
* * string field_name = 2; - * * @return The fieldName. */ @java.lang.Override @@ -1282,15 +996,14 @@ public java.lang.String getFieldName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldName_ = s; return s; } } /** - * - * *
    * Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -1299,15 +1012,16 @@ public java.lang.String getFieldName() {
    * 
* * string field_name = 2; - * * @return The bytes for fieldName. */ @java.lang.Override - public com.google.protobuf.ByteString getFieldNameBytes() { + public com.google.protobuf.ByteString + getFieldNameBytes() { java.lang.Object ref = fieldName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fieldName_ = b; return b; } else { @@ -1316,7 +1030,6 @@ public com.google.protobuf.ByteString getFieldNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1328,10 +1041,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { @@ -1346,10 +1058,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldName_); @@ -1362,16 +1073,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfigError)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfigError other = - (com.google.cloud.websecurityscanner.v1beta.ScanConfigError) obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfigError other = (com.google.cloud.websecurityscanner.v1beta.ScanConfigError) obj; if (code_ != other.code_) return false; - if (!getFieldName().equals(other.getFieldName())) return false; + if (!getFieldName() + .equals(other.getFieldName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1393,104 +1104,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanConfigError prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfigError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Defines a custom error message used by CreateScanConfig and UpdateScanConfig
    * APIs when scan configuration validation fails. It is also reported as part of
@@ -1500,23 +1203,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfigError}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfigError)
       com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.ScanConfigError.class,
-              com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.ScanConfigError.class, com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfigError.newBuilder()
@@ -1524,15 +1225,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1544,9 +1246,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
     }
 
     @java.lang.Override
@@ -1565,8 +1267,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.ScanConfigError buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.ScanConfigError result =
-          new com.google.cloud.websecurityscanner.v1beta.ScanConfigError(this);
+      com.google.cloud.websecurityscanner.v1beta.ScanConfigError result = new com.google.cloud.websecurityscanner.v1beta.ScanConfigError(this);
       result.code_ = code_;
       result.fieldName_ = fieldName_;
       onBuilt();
@@ -1577,39 +1278,38 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfigError) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfigError) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfigError)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1617,8 +1317,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfigError other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance()) return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -1645,8 +1344,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1beta.ScanConfigError) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfigError) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1658,67 +1356,51 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.UNRECOGNIZED : result; } /** - * - * *
      * Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ @@ -1726,24 +1408,21 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1beta.ScanConfigErro if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -1751,8 +1430,6 @@ public Builder clearCode() { private java.lang.Object fieldName_ = ""; /** - * - * *
      * Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1761,13 +1438,13 @@ public Builder clearCode() {
      * 
* * string field_name = 2; - * * @return The fieldName. */ public java.lang.String getFieldName() { java.lang.Object ref = fieldName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldName_ = s; return s; @@ -1776,8 +1453,6 @@ public java.lang.String getFieldName() { } } /** - * - * *
      * Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1786,14 +1461,15 @@ public java.lang.String getFieldName() {
      * 
* * string field_name = 2; - * * @return The bytes for fieldName. */ - public com.google.protobuf.ByteString getFieldNameBytes() { + public com.google.protobuf.ByteString + getFieldNameBytes() { java.lang.Object ref = fieldName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fieldName_ = b; return b; } else { @@ -1801,8 +1477,6 @@ public com.google.protobuf.ByteString getFieldNameBytes() { } } /** - * - * *
      * Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1811,22 +1485,20 @@ public com.google.protobuf.ByteString getFieldNameBytes() {
      * 
* * string field_name = 2; - * * @param value The fieldName to set. * @return This builder for chaining. */ - public Builder setFieldName(java.lang.String value) { + public Builder setFieldName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fieldName_ = value; onChanged(); return this; } /** - * - * *
      * Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1835,18 +1507,15 @@ public Builder setFieldName(java.lang.String value) {
      * 
* * string field_name = 2; - * * @return This builder for chaining. */ public Builder clearFieldName() { - + fieldName_ = getDefaultInstance().getFieldName(); onChanged(); return this; } /** - * - * *
      * Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1855,23 +1524,23 @@ public Builder clearFieldName() {
      * 
* * string field_name = 2; - * * @param value The bytes for fieldName to set. * @return This builder for chaining. */ - public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + public Builder setFieldNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1881,12 +1550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfigError) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfigError) private static final com.google.cloud.websecurityscanner.v1beta.ScanConfigError DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfigError(); } @@ -1895,16 +1564,16 @@ public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanConfigError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfigError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanConfigError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanConfigError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1919,4 +1588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java index 23fc4f1a..61d24001 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_config_error.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ScanConfigErrorOrBuilder - extends +public interface ScanConfigErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfigError) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; - * * @return The code. */ com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode(); /** - * - * *
    * Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -59,13 +35,10 @@ public interface ScanConfigErrorOrBuilder
    * 
* * string field_name = 2; - * * @return The fieldName. */ java.lang.String getFieldName(); /** - * - * *
    * Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -74,8 +47,8 @@ public interface ScanConfigErrorOrBuilder
    * 
* * string field_name = 2; - * * @return The bytes for fieldName. */ - com.google.protobuf.ByteString getFieldNameBytes(); + com.google.protobuf.ByteString + getFieldNameBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java new file mode 100644 index 00000000..d075bcb5 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java @@ -0,0 +1,93 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/scan_config_error.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class ScanConfigErrorProto { + private ScanConfigErrorProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n>google/cloud/websecurityscanner/v1beta" + + "/scan_config_error.proto\022&google.cloud.w" + + "ebsecurityscanner.v1beta\"\355\013\n\017ScanConfigE" + + "rror\022J\n\004code\030\001 \001(\0162<.google.cloud.websec" + + "urityscanner.v1beta.ScanConfigError.Code" + + "\022\022\n\nfield_name\030\002 \001(\t\"\371\n\n\004Code\022\024\n\020CODE_UN" + + "SPECIFIED\020\000\022\006\n\002OK\020\000\022\022\n\016INTERNAL_ERROR\020\001\022" + + "\037\n\033APPENGINE_API_BACKEND_ERROR\020\002\022 \n\034APPE" + + "NGINE_API_NOT_ACCESSIBLE\020\003\022\"\n\036APPENGINE_" + + "DEFAULT_HOST_MISSING\020\004\022!\n\035CANNOT_USE_GOO" + + "GLE_COM_ACCOUNT\020\006\022\034\n\030CANNOT_USE_OWNER_AC" + + "COUNT\020\007\022\035\n\031COMPUTE_API_BACKEND_ERROR\020\010\022\036" + + "\n\032COMPUTE_API_NOT_ACCESSIBLE\020\t\0227\n3CUSTOM" + + "_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PR" + + "OJECT\020\n\022\036\n\032CUSTOM_LOGIN_URL_MALFORMED\020\013\022" + + "3\n/CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTAB" + + "LE_ADDRESS\020\014\0221\n-CUSTOM_LOGIN_URL_MAPPED_" + + "TO_UNRESERVED_ADDRESS\020\r\0220\n,CUSTOM_LOGIN_" + + "URL_HAS_NON_ROUTABLE_IP_ADDRESS\020\016\022.\n*CUS" + + "TOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS\020" + + "\017\022\027\n\023DUPLICATE_SCAN_NAME\020\020\022\027\n\023INVALID_FI" + + "ELD_VALUE\020\022\022$\n FAILED_TO_AUTHENTICATE_TO" + + "_TARGET\020\023\022\034\n\030FINDING_TYPE_UNSPECIFIED\020\024\022" + + "\035\n\031FORBIDDEN_TO_SCAN_COMPUTE\020\025\022$\n FORBID" + + "DEN_UPDATE_TO_MANAGED_SCAN\020+\022\024\n\020MALFORME" + + "D_FILTER\020\026\022\033\n\027MALFORMED_RESOURCE_NAME\020\027\022" + + "\024\n\020PROJECT_INACTIVE\020\030\022\022\n\016REQUIRED_FIELD\020" + + "\031\022\036\n\032RESOURCE_NAME_INCONSISTENT\020\032\022\030\n\024SCA" + + "N_ALREADY_RUNNING\020\033\022\024\n\020SCAN_NOT_RUNNING\020" + + "\034\022/\n+SEED_URL_DOES_NOT_BELONG_TO_CURRENT" + + "_PROJECT\020\035\022\026\n\022SEED_URL_MALFORMED\020\036\022+\n\'SE" + + "ED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\020\037\022" + + ")\n%SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS" + + "\020 \022(\n$SEED_URL_HAS_NON_ROUTABLE_IP_ADDRE" + + "SS\020!\022&\n\"SEED_URL_HAS_UNRESERVED_IP_ADDRE" + + "SS\020#\022\"\n\036SERVICE_ACCOUNT_NOT_CONFIGURED\020$" + + "\022\022\n\016TOO_MANY_SCANS\020%\022\"\n\036UNABLE_TO_RESOLV" + + "E_PROJECT_INFO\020&\022(\n$UNSUPPORTED_BLACKLIS" + + "T_PATTERN_FORMAT\020\'\022\026\n\022UNSUPPORTED_FILTER" + + "\020(\022\034\n\030UNSUPPORTED_FINDING_TYPE\020)\022\032\n\026UNSU" + + "PPORTED_URL_SCHEME\020*\032\002\020\001B\234\002\n*com.google." + + "cloud.websecurityscanner.v1betaB\024ScanCon" + + "figErrorProtoP\001ZXgoogle.golang.org/genpr" + + "oto/googleapis/cloud/websecurityscanner/" + + "v1beta;websecurityscanner\252\002&Google.Cloud" + + ".WebSecurityScanner.V1Beta\312\002&Google\\Clou" + + "d\\WebSecurityScanner\\V1beta\352\002)Google::Cl" + + "oud::WebSecurityScanner::V1betab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor, + new java.lang.String[] { "Code", "FieldName", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java similarity index 77% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java index f8ba7b48..3adb81e5 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_config.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ScanConfigOrBuilder - extends +public interface ScanConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -33,13 +15,10 @@ public interface ScanConfigOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -47,39 +26,32 @@ public interface ScanConfigOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -88,211 +60,164 @@ public interface ScanConfigOrBuilder
    * 
* * int32 max_qps = 3; - * * @return The maxQps. */ int getMaxQps(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the startingUrls. */ - java.util.List getStartingUrlsList(); + java.util.List + getStartingUrlsList(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of startingUrls. */ int getStartingUrlsCount(); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The startingUrls at the given index. */ java.lang.String getStartingUrls(int index); /** - * - * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - com.google.protobuf.ByteString getStartingUrlsBytes(int index); + com.google.protobuf.ByteString + getStartingUrlsBytes(int index); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; * @return Whether the authentication field is set. */ boolean hasAuthentication(); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; * @return The authentication. */ com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getAuthentication(); /** - * - * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder - getAuthenticationOrBuilder(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder(); /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @return The enum numeric value on the wire for userAgent. */ int getUserAgentValue(); /** - * - * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; - * * @return The userAgent. */ com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent getUserAgent(); /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return A list containing the blacklistPatterns. */ - java.util.List getBlacklistPatternsList(); + java.util.List + getBlacklistPatternsList(); /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @return The count of blacklistPatterns. */ int getBlacklistPatternsCount(); /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ java.lang.String getBlacklistPatterns(int index); /** - * - * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; - * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - com.google.protobuf.ByteString getBlacklistPatternsBytes(int index); + com.google.protobuf.ByteString + getBlacklistPatternsBytes(int index); /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; - * * @return Whether the schedule field is set. */ boolean hasSchedule(); /** - * - * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; - * * @return The schedule. */ com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getSchedule(); /** - * - * *
    * The schedule of the ScanConfig.
    * 
@@ -302,144 +227,99 @@ public interface ScanConfigOrBuilder com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder(); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the targetPlatforms. */ - java.util.List - getTargetPlatformsList(); + java.util.List getTargetPlatformsList(); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return The count of targetPlatforms. */ int getTargetPlatformsCount(); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms( - int index); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms(int index); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @return A list containing the enum numeric values on the wire for targetPlatforms. */ - java.util.List getTargetPlatformsValueList(); + java.util.List + getTargetPlatformsValueList(); /** - * - * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; - * - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ int getTargetPlatformsValue(int index); /** - * - * *
    * Controls export of scan configurations and results to Cloud Security
    * Command Center.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ int getExportToSecurityCommandCenterValue(); /** - * - * *
    * Controls export of scan configurations and results to Cloud Security
    * Command Center.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; * @return The exportToSecurityCommandCenter. */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - getExportToSecurityCommandCenter(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter(); /** - * - * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; - * * @return Whether the latestRun field is set. */ boolean hasLatestRun(); /** - * - * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; - * * @return The latestRun. */ com.google.cloud.websecurityscanner.v1beta.ScanRun getLatestRun(); /** - * - * *
    * Latest ScanRun if available.
    * 
@@ -449,26 +329,20 @@ com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPl com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getLatestRunOrBuilder(); /** - * - * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @return The enum numeric value on the wire for riskLevel. */ int getRiskLevelValue(); /** - * - * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; - * * @return The riskLevel. */ com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel getRiskLevel(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java new file mode 100644 index 00000000..95c4e259 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java @@ -0,0 +1,160 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/scan_config.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class ScanConfigProto { + private ScanConfigProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/websecurityscanner/v1beta" + + "/scan_config.proto\022&google.cloud.websecu" + + "rityscanner.v1beta\032\037google/api/field_beh" + + "avior.proto\032\031google/api/resource.proto\0325" + + "google/cloud/websecurityscanner/v1beta/s" + + "can_run.proto\032\037google/protobuf/timestamp" + + ".proto\"\246\r\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\031\n\014d" + + "isplay_name\030\002 \001(\tB\003\340A\002\022\017\n\007max_qps\030\003 \001(\005\022" + + "\032\n\rstarting_urls\030\004 \003(\tB\003\340A\002\022Y\n\016authentic" + + "ation\030\005 \001(\0132A.google.cloud.websecuritysc" + + "anner.v1beta.ScanConfig.Authentication\022P" + + "\n\nuser_agent\030\006 \001(\0162<.google.cloud.websec" + + "urityscanner.v1beta.ScanConfig.UserAgent" + + "\022\032\n\022blacklist_patterns\030\007 \003(\t\022M\n\010schedule" + + "\030\010 \001(\0132;.google.cloud.websecurityscanner" + + ".v1beta.ScanConfig.Schedule\022[\n\020target_pl" + + "atforms\030\t \003(\0162A.google.cloud.websecurity" + + "scanner.v1beta.ScanConfig.TargetPlatform" + + "\022{\n!export_to_security_command_center\030\n " + + "\001(\0162P.google.cloud.websecurityscanner.v1" + + "beta.ScanConfig.ExportToSecurityCommandC" + + "enter\022C\n\nlatest_run\030\013 \001(\0132/.google.cloud" + + ".websecurityscanner.v1beta.ScanRun\022P\n\nri" + + "sk_level\030\014 \001(\0162<.google.cloud.websecurit" + + "yscanner.v1beta.ScanConfig.RiskLevel\032\224\003\n" + + "\016Authentication\022i\n\016google_account\030\001 \001(\0132" + + "O.google.cloud.websecurityscanner.v1beta" + + ".ScanConfig.Authentication.GoogleAccount" + + "H\000\022i\n\016custom_account\030\002 \001(\0132O.google.clou" + + "d.websecurityscanner.v1beta.ScanConfig.A" + + "uthentication.CustomAccountH\000\032@\n\rGoogleA" + + "ccount\022\025\n\010username\030\001 \001(\tB\003\340A\002\022\030\n\010passwor" + + "d\030\002 \001(\tB\006\340A\002\340A\004\032X\n\rCustomAccount\022\025\n\010user" + + "name\030\001 \001(\tB\003\340A\002\022\030\n\010password\030\002 \001(\tB\006\340A\002\340A" + + "\004\022\026\n\tlogin_url\030\003 \001(\tB\003\340A\002B\020\n\016authenticat" + + "ion\032b\n\010Schedule\0221\n\rschedule_time\030\001 \001(\0132\032" + + ".google.protobuf.Timestamp\022#\n\026interval_d" + + "uration_days\030\002 \001(\005B\003\340A\002\"`\n\tUserAgent\022\032\n\026" + + "USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LINUX" + + "\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHONE\020" + + "\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFORM_U" + + "NSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMPUTE\020" + + "\002\"<\n\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED" + + "\020\000\022\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecur" + + "ityCommandCenter\0221\n-EXPORT_TO_SECURITY_C" + + "OMMAND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001" + + "\022\014\n\010DISABLED\020\002:_\352A\\\n,websecurityscanner." + + "googleapis.com/ScanConfig\022,projects/{pro" + + "ject}/scanConfigs/{scan_config}B\227\002\n*com." + + "google.cloud.websecurityscanner.v1betaB\017" + + "ScanConfigProtoP\001ZXgoogle.golang.org/gen" + + "proto/googleapis/cloud/websecurityscanne" + + "r/v1beta;websecurityscanner\252\002&Google.Clo" + + "ud.WebSecurityScanner.V1Beta\312\002&Google\\Cl" + + "oud\\WebSecurityScanner\\V1beta\352\002)Google::" + + "Cloud::WebSecurityScanner::V1betab\006proto" + + "3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor, + new java.lang.String[] { "Name", "DisplayName", "MaxQps", "StartingUrls", "Authentication", "UserAgent", "BlacklistPatterns", "Schedule", "TargetPlatforms", "ExportToSecurityCommandCenter", "LatestRun", "RiskLevel", }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor = + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor, + new java.lang.String[] { "GoogleAccount", "CustomAccount", "Authentication", }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor, + new java.lang.String[] { "Username", "Password", }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor, + new java.lang.String[] { "Username", "Password", "LoginUrl", }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor = + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor, + new java.lang.String[] { "ScheduleTime", "IntervalDurationDays", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java index a3bb4729..5cbcdd18 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * A ScanRun is a output-only resource representing an actual run of the scan.
  * Next id: 12
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRun}
  */
-public final class ScanRun extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanRun extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanRun)
     ScanRunOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanRun.newBuilder() to construct.
   private ScanRun(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanRun() {
     name_ = "";
     executionState_ = 0;
@@ -47,15 +29,16 @@ private ScanRun() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanRun();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanRun(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,116 +58,99 @@ private ScanRun(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            name_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              executionState_ = rawValue;
-              break;
-            }
-          case 24:
-            {
-              int rawValue = input.readEnum();
+            executionState_ = rawValue;
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
 
-              resultState_ = rawValue;
-              break;
-            }
-          case 34:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (startTime_ != null) {
-                subBuilder = startTime_.toBuilder();
-              }
-              startTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(startTime_);
-                startTime_ = subBuilder.buildPartial();
-              }
-
-              break;
-            }
-          case 42:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (endTime_ != null) {
-                subBuilder = endTime_.toBuilder();
-              }
-              endTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(endTime_);
-                endTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            resultState_ = rawValue;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (startTime_ != null) {
+              subBuilder = startTime_.toBuilder();
             }
-          case 48:
-            {
-              urlsCrawledCount_ = input.readInt64();
-              break;
+            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(startTime_);
+              startTime_ = subBuilder.buildPartial();
             }
-          case 56:
-            {
-              urlsTestedCount_ = input.readInt64();
-              break;
+
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (endTime_ != null) {
+              subBuilder = endTime_.toBuilder();
             }
-          case 64:
-            {
-              hasVulnerabilities_ = input.readBool();
-              break;
+            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(endTime_);
+              endTime_ = subBuilder.buildPartial();
             }
-          case 72:
-            {
-              progressPercent_ = input.readInt32();
-              break;
+
+            break;
+          }
+          case 48: {
+
+            urlsCrawledCount_ = input.readInt64();
+            break;
+          }
+          case 56: {
+
+            urlsTestedCount_ = input.readInt64();
+            break;
+          }
+          case 64: {
+
+            hasVulnerabilities_ = input.readBool();
+            break;
+          }
+          case 72: {
+
+            progressPercent_ = input.readInt32();
+            break;
+          }
+          case 82: {
+            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder subBuilder = null;
+            if (errorTrace_ != null) {
+              subBuilder = errorTrace_.toBuilder();
             }
-          case 82:
-            {
-              com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder subBuilder =
-                  null;
-              if (errorTrace_ != null) {
-                subBuilder = errorTrace_.toBuilder();
-              }
-              errorTrace_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(errorTrace_);
-                errorTrace_ = subBuilder.buildPartial();
-              }
-
-              break;
+            errorTrace_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(errorTrace_);
+              errorTrace_ = subBuilder.buildPartial();
             }
-          case 90:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                warningTraces_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              warningTraces_.add(
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.parser(),
-                      extensionRegistry));
-              break;
+
+            break;
+          }
+          case 90: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              warningTraces_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            warningTraces_.add(
+                input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -192,7 +158,8 @@ private ScanRun(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         warningTraces_ = java.util.Collections.unmodifiableList(warningTraces_);
@@ -201,35 +168,29 @@ private ScanRun(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.ScanRun.class,
-            com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.ScanRun.class, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Types of ScanRun execution state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState} */ - public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { + public enum ExecutionState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -239,8 +200,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum {
      */
     EXECUTION_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -249,8 +208,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ QUEUED(1), /** - * - * *
      * The scan is in progress.
      * 
@@ -259,8 +216,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ SCANNING(2), /** - * - * *
      * The scan is either finished or stopped by user.
      * 
@@ -272,8 +227,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -283,8 +236,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int EXECUTION_STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -293,8 +244,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int QUEUED_VALUE = 1; /** - * - * *
      * The scan is in progress.
      * 
@@ -303,8 +252,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCANNING_VALUE = 2; /** - * - * *
      * The scan is either finished or stopped by user.
      * 
@@ -313,6 +260,7 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FINISHED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -337,53 +285,50 @@ public static ExecutionState valueOf(int value) { */ public static ExecutionState forNumber(int value) { switch (value) { - case 0: - return EXECUTION_STATE_UNSPECIFIED; - case 1: - return QUEUED; - case 2: - return SCANNING; - case 3: - return FINISHED; - default: - return null; + case 0: return EXECUTION_STATE_UNSPECIFIED; + case 1: return QUEUED; + case 2: return SCANNING; + case 3: return FINISHED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ExecutionState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionState findValueByNumber(int number) { + return ExecutionState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionState findValueByNumber(int number) { - return ExecutionState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanRun.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanRun.getDescriptor().getEnumTypes().get(0); } private static final ExecutionState[] VALUES = values(); - public static ExecutionState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ExecutionState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -401,18 +346,15 @@ private ExecutionState(int value) { } /** - * - * *
    * Types of ScanRun result state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanRun.ResultState} */ - public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { + public enum ResultState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -422,8 +364,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESULT_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -432,8 +372,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ SUCCESS(1), /** - * - * *
      * The scan finished with errors.
      * 
@@ -442,8 +380,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(2), /** - * - * *
      * The scan was terminated by user.
      * 
@@ -455,8 +391,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -466,8 +400,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESULT_STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -476,8 +408,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCESS_VALUE = 1; /** - * - * *
      * The scan finished with errors.
      * 
@@ -486,8 +416,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 2; /** - * - * *
      * The scan was terminated by user.
      * 
@@ -496,6 +424,7 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KILLED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -520,53 +449,50 @@ public static ResultState valueOf(int value) { */ public static ResultState forNumber(int value) { switch (value) { - case 0: - return RESULT_STATE_UNSPECIFIED; - case 1: - return SUCCESS; - case 2: - return ERROR; - case 3: - return KILLED; - default: - return null; + case 0: return RESULT_STATE_UNSPECIFIED; + case 1: return SUCCESS; + case 2: return ERROR; + case 3: return KILLED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + ResultState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResultState findValueByNumber(int number) { + return ResultState.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResultState findValueByNumber(int number) { - return ResultState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanRun.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanRun.getDescriptor().getEnumTypes().get(1); } private static final ResultState[] VALUES = values(); - public static ResultState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ResultState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -586,8 +512,6 @@ private ResultState(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -595,7 +519,6 @@ private ResultState(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -604,15 +527,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -620,15 +542,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -639,94 +562,67 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EXECUTION_STATE_FIELD_NUMBER = 2; private int executionState_; /** - * - * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override - public int getExecutionStateValue() { + @java.lang.Override public int getExecutionStateValue() { return executionState_; } /** - * - * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @return The executionState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExecutionState() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.valueOf(executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.valueOf(executionState_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.UNRECOGNIZED : result; } public static final int RESULT_STATE_FIELD_NUMBER = 3; private int resultState_; /** - * - * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override - public int getResultStateValue() { + @java.lang.Override public int getResultStateValue() { return resultState_; } /** - * - * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultState() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.valueOf(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.valueOf(resultState_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.UNRECOGNIZED : result; } public static final int START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -734,14 +630,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ @java.lang.Override @@ -749,8 +642,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The time at which the ScanRun started.
    * 
@@ -765,15 +656,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -781,15 +669,12 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ @java.lang.Override @@ -797,8 +682,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -814,15 +697,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 6;
   private long urlsCrawledCount_;
   /**
-   *
-   *
    * 
    * The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ @java.lang.Override @@ -833,8 +713,6 @@ public long getUrlsCrawledCount() { public static final int URLS_TESTED_COUNT_FIELD_NUMBER = 7; private long urlsTestedCount_; /** - * - * *
    * The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -843,7 +721,6 @@ public long getUrlsCrawledCount() {
    * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -854,14 +731,11 @@ public long getUrlsTestedCount() { public static final int HAS_VULNERABILITIES_FIELD_NUMBER = 8; private boolean hasVulnerabilities_; /** - * - * *
    * Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ @java.lang.Override @@ -872,8 +746,6 @@ public boolean getHasVulnerabilities() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 9; private int progressPercent_; /** - * - * *
    * The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -882,7 +754,6 @@ public boolean getHasVulnerabilities() {
    * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -893,15 +764,12 @@ public int getProgressPercent() { public static final int ERROR_TRACE_FIELD_NUMBER = 10; private com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace errorTrace_; /** - * - * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; - * * @return Whether the errorTrace field is set. */ @java.lang.Override @@ -909,26 +777,19 @@ public boolean hasErrorTrace() { return errorTrace_ != null; } /** - * - * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; - * * @return The errorTrace. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrace() { - return errorTrace_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance() - : errorTrace_; + return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; } /** - * - * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
@@ -937,92 +798,71 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrac
    * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder
-      getErrorTraceOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() {
     return getErrorTrace();
   }
 
   public static final int WARNING_TRACES_FIELD_NUMBER = 11;
-  private java.util.List
-      warningTraces_;
+  private java.util.List warningTraces_;
   /**
-   *
-   *
    * 
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override - public java.util.List - getWarningTracesList() { + public java.util.List getWarningTracesList() { return warningTraces_; } /** - * - * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder> + public java.util.List getWarningTracesOrBuilderList() { return warningTraces_; } /** - * - * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override public int getWarningTracesCount() { return warningTraces_.size(); } /** - * - * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarningTraces( - int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarningTraces(int index) { return warningTraces_.get(index); } /** - * - * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder - getWarningTracesOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( + int index) { return warningTraces_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1034,19 +874,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (executionState_ - != com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState - .EXECUTION_STATE_UNSPECIFIED - .getNumber()) { + if (executionState_ != com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, executionState_); } - if (resultState_ - != com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED - .getNumber()) { + if (resultState_ != com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, resultState_); } if (startTime_ != null) { @@ -1085,40 +921,45 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (executionState_ - != com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState - .EXECUTION_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, executionState_); + if (executionState_ != com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, executionState_); } - if (resultState_ - != com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, resultState_); + if (resultState_ != com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, resultState_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEndTime()); } if (urlsCrawledCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, urlsCrawledCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, urlsCrawledCount_); } if (urlsTestedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, urlsTestedCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, urlsTestedCount_); } if (hasVulnerabilities_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, hasVulnerabilities_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, hasVulnerabilities_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, progressPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, progressPercent_); } if (errorTrace_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getErrorTrace()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getErrorTrace()); } for (int i = 0; i < warningTraces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, warningTraces_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, warningTraces_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1128,34 +969,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanRun)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanRun other = - (com.google.cloud.websecurityscanner.v1beta.ScanRun) obj; + com.google.cloud.websecurityscanner.v1beta.ScanRun other = (com.google.cloud.websecurityscanner.v1beta.ScanRun) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (executionState_ != other.executionState_) return false; if (resultState_ != other.resultState_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (getUrlsCrawledCount() != other.getUrlsCrawledCount()) return false; - if (getUrlsTestedCount() != other.getUrlsTestedCount()) return false; - if (getHasVulnerabilities() != other.getHasVulnerabilities()) return false; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (getUrlsCrawledCount() + != other.getUrlsCrawledCount()) return false; + if (getUrlsTestedCount() + != other.getUrlsTestedCount()) return false; + if (getHasVulnerabilities() + != other.getHasVulnerabilities()) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (hasErrorTrace() != other.hasErrorTrace()) return false; if (hasErrorTrace()) { - if (!getErrorTrace().equals(other.getErrorTrace())) return false; + if (!getErrorTrace() + .equals(other.getErrorTrace())) return false; } - if (!getWarningTracesList().equals(other.getWarningTracesList())) return false; + if (!getWarningTracesList() + .equals(other.getWarningTracesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1182,11 +1031,14 @@ public int hashCode() { hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + URLS_CRAWLED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsCrawledCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUrlsCrawledCount()); hash = (37 * hash) + URLS_TESTED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsTestedCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getUrlsTestedCount()); hash = (37 * hash) + HAS_VULNERABILITIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasVulnerabilities()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasVulnerabilities()); hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getProgressPercent(); if (hasErrorTrace()) { @@ -1203,103 +1055,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanRun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A ScanRun is a output-only resource representing an actual run of the scan.
    * Next id: 12
@@ -1307,23 +1152,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRun}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanRun)
       com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.ScanRun.class,
-              com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.ScanRun.class, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.ScanRun.newBuilder()
@@ -1331,17 +1174,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getWarningTracesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1387,9 +1230,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
     }
 
     @java.lang.Override
@@ -1408,8 +1251,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.ScanRun buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.ScanRun result =
-          new com.google.cloud.websecurityscanner.v1beta.ScanRun(this);
+      com.google.cloud.websecurityscanner.v1beta.ScanRun result = new com.google.cloud.websecurityscanner.v1beta.ScanRun(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.executionState_ = executionState_;
@@ -1450,39 +1292,38 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanRun) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRun) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRun)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1490,8 +1331,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanRun other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1541,10 +1381,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanRun othe
             warningTracesBuilder_ = null;
             warningTraces_ = other.warningTraces_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            warningTracesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getWarningTracesFieldBuilder()
-                    : null;
+            warningTracesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getWarningTracesFieldBuilder() : null;
           } else {
             warningTracesBuilder_.addAllMessages(other.warningTraces_);
           }
@@ -1569,8 +1408,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1beta.ScanRun) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanRun) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1579,13 +1417,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1593,13 +1428,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1608,8 +1443,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1617,14 +1450,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1632,8 +1466,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1641,22 +1473,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1664,18 +1494,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1683,16 +1510,16 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1700,99 +1527,73 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int executionState_ = 0; /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override - public int getExecutionStateValue() { + @java.lang.Override public int getExecutionStateValue() { return executionState_; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @param value The enum numeric value on the wire for executionState to set. * @return This builder for chaining. */ public Builder setExecutionStateValue(int value) { - + executionState_ = value; onChanged(); return this; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @return The executionState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.valueOf( - executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.valueOf(executionState_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.UNRECOGNIZED : result; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @param value The executionState to set. * @return This builder for chaining. */ - public Builder setExecutionState( - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState value) { + public Builder setExecutionState(com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState value) { if (value == null) { throw new NullPointerException(); } - + executionState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @return This builder for chaining. */ public Builder clearExecutionState() { - + executionState_ = 0; onChanged(); return this; @@ -1800,98 +1601,78 @@ public Builder clearExecutionState() { private int resultState_ = 0; /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override - public int getResultStateValue() { + @java.lang.Override public int getResultStateValue() { return resultState_; } /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @param value The enum numeric value on the wire for resultState to set. * @return This builder for chaining. */ public Builder setResultStateValue(int value) { - + resultState_ = value; onChanged(); return this; } /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.valueOf(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.valueOf(resultState_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.UNRECOGNIZED : result; } /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @param value The resultState to set. * @return This builder for chaining. */ - public Builder setResultState( - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState value) { + public Builder setResultState(com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState value) { if (value == null) { throw new NullPointerException(); } - + resultState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @return This builder for chaining. */ public Builder clearResultState() { - + resultState_ = 0; onChanged(); return this; @@ -1899,33 +1680,24 @@ public Builder clearResultState() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1936,8 +1708,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1958,15 +1728,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -1977,8 +1746,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1989,7 +1756,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -2001,8 +1768,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -2021,8 +1786,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -2030,13 +1793,11 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 4; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -2047,12 +1808,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -2060,17 +1820,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -2078,35 +1835,26 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -2117,8 +1865,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2140,8 +1886,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2149,7 +1893,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -2160,8 +1905,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2173,7 +1916,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -2185,8 +1928,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2206,8 +1947,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2216,13 +1955,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2234,12 +1971,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2248,33 +1984,27 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
 
-    private long urlsCrawledCount_;
+    private long urlsCrawledCount_ ;
     /**
-     *
-     *
      * 
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ @java.lang.Override @@ -2282,47 +2012,39 @@ public long getUrlsCrawledCount() { return urlsCrawledCount_; } /** - * - * *
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @param value The urlsCrawledCount to set. * @return This builder for chaining. */ public Builder setUrlsCrawledCount(long value) { - + urlsCrawledCount_ = value; onChanged(); return this; } /** - * - * *
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; - * * @return This builder for chaining. */ public Builder clearUrlsCrawledCount() { - + urlsCrawledCount_ = 0L; onChanged(); return this; } - private long urlsTestedCount_; + private long urlsTestedCount_ ; /** - * - * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2331,7 +2053,6 @@ public Builder clearUrlsCrawledCount() {
      * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -2339,8 +2060,6 @@ public long getUrlsTestedCount() { return urlsTestedCount_; } /** - * - * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2349,19 +2068,16 @@ public long getUrlsTestedCount() {
      * 
* * int64 urls_tested_count = 7; - * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ public Builder setUrlsTestedCount(long value) { - + urlsTestedCount_ = value; onChanged(); return this; } /** - * - * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2370,26 +2086,22 @@ public Builder setUrlsTestedCount(long value) {
      * 
* * int64 urls_tested_count = 7; - * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { - + urlsTestedCount_ = 0L; onChanged(); return this; } - private boolean hasVulnerabilities_; + private boolean hasVulnerabilities_ ; /** - * - * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ @java.lang.Override @@ -2397,45 +2109,37 @@ public boolean getHasVulnerabilities() { return hasVulnerabilities_; } /** - * - * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @param value The hasVulnerabilities to set. * @return This builder for chaining. */ public Builder setHasVulnerabilities(boolean value) { - + hasVulnerabilities_ = value; onChanged(); return this; } /** - * - * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @return This builder for chaining. */ public Builder clearHasVulnerabilities() { - + hasVulnerabilities_ = false; onChanged(); return this; } - private int progressPercent_; + private int progressPercent_ ; /** - * - * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2444,7 +2148,6 @@ public Builder clearHasVulnerabilities() {
      * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -2452,8 +2155,6 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2462,19 +2163,16 @@ public int getProgressPercent() {
      * 
* * int32 progress_percent = 9; - * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** - * - * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2483,11 +2181,10 @@ public Builder setProgressPercent(int value) {
      * 
* * int32 progress_percent = 9; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; @@ -2495,49 +2192,36 @@ public Builder clearProgressPercent() { private com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace errorTrace_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace, - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder> - errorTraceBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder> errorTraceBuilder_; /** - * - * *
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; - * * @return Whether the errorTrace field is set. */ public boolean hasErrorTrace() { return errorTraceBuilder_ != null || errorTrace_ != null; } /** - * - * *
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; - * * @return The errorTrace. */ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrace() { if (errorTraceBuilder_ == null) { - return errorTrace_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance() - : errorTrace_; + return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; } else { return errorTraceBuilder_.getMessage(); } } /** - * - * *
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2545,8 +2229,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrac
      *
      * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
      */
-    public Builder setErrorTrace(
-        com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace value) {
+    public Builder setErrorTrace(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace value) {
       if (errorTraceBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2560,8 +2243,6 @@ public Builder setErrorTrace(
       return this;
     }
     /**
-     *
-     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2581,8 +2262,6 @@ public Builder setErrorTrace(
       return this;
     }
     /**
-     *
-     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2590,14 +2269,11 @@ public Builder setErrorTrace(
      *
      * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
      */
-    public Builder mergeErrorTrace(
-        com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace value) {
+    public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace value) {
       if (errorTraceBuilder_ == null) {
         if (errorTrace_ != null) {
           errorTrace_ =
-              com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.newBuilder(errorTrace_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.newBuilder(errorTrace_).mergeFrom(value).buildPartial();
         } else {
           errorTrace_ = value;
         }
@@ -2609,8 +2285,6 @@ public Builder mergeErrorTrace(
       return this;
     }
     /**
-     *
-     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2630,8 +2304,6 @@ public Builder clearErrorTrace() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2639,15 +2311,12 @@ public Builder clearErrorTrace() {
      *
      * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
      */
-    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder
-        getErrorTraceBuilder() {
-
+    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder getErrorTraceBuilder() {
+      
       onChanged();
       return getErrorTraceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2655,19 +2324,15 @@ public Builder clearErrorTrace() {
      *
      * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
      */
-    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder
-        getErrorTraceOrBuilder() {
+    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() {
       if (errorTraceBuilder_ != null) {
         return errorTraceBuilder_.getMessageOrBuilder();
       } else {
-        return errorTrace_ == null
-            ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance()
-            : errorTrace_;
+        return errorTrace_ == null ?
+            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance() : errorTrace_;
       }
     }
     /**
-     *
-     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2676,53 +2341,39 @@ public Builder clearErrorTrace() {
      * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace,
-            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder,
-            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder>
+        com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder> 
         getErrorTraceFieldBuilder() {
       if (errorTraceBuilder_ == null) {
-        errorTraceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace,
-                com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder,
-                com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder>(
-                getErrorTrace(), getParentForChildren(), isClean());
+        errorTraceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder>(
+                getErrorTrace(),
+                getParentForChildren(),
+                isClean());
         errorTrace_ = null;
       }
       return errorTraceBuilder_;
     }
 
-    private java.util.List
-        warningTraces_ = java.util.Collections.emptyList();
-
+    private java.util.List warningTraces_ =
+      java.util.Collections.emptyList();
     private void ensureWarningTracesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        warningTraces_ =
-            new java.util.ArrayList(
-                warningTraces_);
+        warningTraces_ = new java.util.ArrayList(warningTraces_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace,
-            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder,
-            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder>
-        warningTracesBuilder_;
+        com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder> warningTracesBuilder_;
 
     /**
-     *
-     *
      * 
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public java.util.List - getWarningTracesList() { + public java.util.List getWarningTracesList() { if (warningTracesBuilder_ == null) { return java.util.Collections.unmodifiableList(warningTraces_); } else { @@ -2730,15 +2381,11 @@ private void ensureWarningTracesIsMutable() { } } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public int getWarningTracesCount() { if (warningTracesBuilder_ == null) { @@ -2748,18 +2395,13 @@ public int getWarningTracesCount() { } } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarningTraces( - int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarningTraces(int index) { if (warningTracesBuilder_ == null) { return warningTraces_.get(index); } else { @@ -2767,15 +2409,11 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarning } } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public Builder setWarningTraces( int index, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace value) { @@ -2792,19 +2430,14 @@ public Builder setWarningTraces( return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public Builder setWarningTraces( - int index, - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder builderForValue) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); warningTraces_.set(index, builderForValue.build()); @@ -2815,18 +2448,13 @@ public Builder setWarningTraces( return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public Builder addWarningTraces( - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace value) { + public Builder addWarningTraces(com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace value) { if (warningTracesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2840,15 +2468,11 @@ public Builder addWarningTraces( return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public Builder addWarningTraces( int index, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace value) { @@ -2865,15 +2489,11 @@ public Builder addWarningTraces( return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public Builder addWarningTraces( com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder builderForValue) { @@ -2887,19 +2507,14 @@ public Builder addWarningTraces( return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public Builder addWarningTraces( - int index, - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder builderForValue) { + int index, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder builderForValue) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); warningTraces_.add(index, builderForValue.build()); @@ -2910,22 +2525,18 @@ public Builder addWarningTraces( return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public Builder addAllWarningTraces( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warningTraces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, warningTraces_); onChanged(); } else { warningTracesBuilder_.addAllMessages(values); @@ -2933,15 +2544,11 @@ public Builder addAllWarningTraces( return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public Builder clearWarningTraces() { if (warningTracesBuilder_ == null) { @@ -2954,15 +2561,11 @@ public Builder clearWarningTraces() { return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ public Builder removeWarningTraces(int index) { if (warningTracesBuilder_ == null) { @@ -2975,53 +2578,39 @@ public Builder removeWarningTraces(int index) { return this; } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder - getWarningTracesBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder getWarningTracesBuilder( + int index) { return getWarningTracesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder - getWarningTracesOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( + int index) { if (warningTracesBuilder_ == null) { - return warningTraces_.get(index); - } else { + return warningTraces_.get(index); } else { return warningTracesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder> - getWarningTracesOrBuilderList() { + public java.util.List + getWarningTracesOrBuilderList() { if (warningTracesBuilder_ != null) { return warningTracesBuilder_.getMessageOrBuilderList(); } else { @@ -3029,67 +2618,45 @@ public Builder removeWarningTraces(int index) { } } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder - addWarningTracesBuilder() { - return getWarningTracesFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder addWarningTracesBuilder() { + return getWarningTracesFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance()); } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder - addWarningTracesBuilder(int index) { - return getWarningTracesFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder addWarningTracesBuilder( + int index) { + return getWarningTracesFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance()); } /** - * - * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - public java.util.List - getWarningTracesBuilderList() { + public java.util.List + getWarningTracesBuilderList() { return getWarningTracesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace, - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder> getWarningTracesFieldBuilder() { if (warningTracesBuilder_ == null) { - warningTracesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace, - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder>( + warningTracesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder>( warningTraces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3098,9 +2665,9 @@ public Builder removeWarningTraces(int index) { } return warningTracesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3110,12 +2677,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanRun) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanRun) private static final com.google.cloud.websecurityscanner.v1beta.ScanRun DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanRun(); } @@ -3124,16 +2691,16 @@ public static com.google.cloud.websecurityscanner.v1beta.ScanRun getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3148,4 +2715,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java index dc3d2c51..04999bce 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Output only.
  * Defines an error trace message for a ScanRun.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace}
  */
-public final class ScanRunErrorTrace extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanRunErrorTrace extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace)
     ScanRunErrorTraceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanRunErrorTrace.newBuilder() to construct.
   private ScanRunErrorTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanRunErrorTrace() {
     code_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanRunErrorTrace();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanRunErrorTrace(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,42 +54,37 @@ private ScanRunErrorTrace(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              code_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder subBuilder = null;
-              if (scanConfigError_ != null) {
-                subBuilder = scanConfigError_.toBuilder();
-              }
-              scanConfigError_ =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.ScanConfigError.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(scanConfigError_);
-                scanConfigError_ = subBuilder.buildPartial();
-              }
-
-              break;
+            code_ = rawValue;
+            break;
+          }
+          case 18: {
+            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder subBuilder = null;
+            if (scanConfigError_ != null) {
+              subBuilder = scanConfigError_.toBuilder();
             }
-          case 24:
-            {
-              mostCommonHttpErrorCode_ = input.readInt32();
-              break;
+            scanConfigError_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfigError.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(scanConfigError_);
+              scanConfigError_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 24: {
+
+            mostCommonHttpErrorCode_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -114,31 +92,27 @@ private ScanRunErrorTrace(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.class,
-            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.class, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Output only.
    * Defines an error reason code.
@@ -147,10 +121,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code}
    */
-  public enum Code implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Code
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Default value is never used.
      * 
@@ -159,8 +132,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -169,8 +140,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ INTERNAL_ERROR(1), /** - * - * *
      * Indicates a scan configuration error, usually due to outdated ScanConfig
      * settings, such as starting_urls or the DNS configuration.
@@ -180,8 +149,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SCAN_CONFIG_ISSUE(2),
     /**
-     *
-     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -191,8 +158,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     AUTHENTICATION_CONFIG_ISSUE(3),
     /**
-     *
-     *
      * 
      * Indicates a scan operation timeout, usually caused by a very large site.
      * 
@@ -201,8 +166,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ TIMED_OUT_WHILE_SCANNING(4), /** - * - * *
      * Indicates that a scan encountered excessive redirects, either to
      * authentication or some other page outside of the scan scope.
@@ -212,8 +175,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     TOO_MANY_REDIRECTS(5),
     /**
-     *
-     *
      * 
      * Indicates that a scan encountered numerous errors from the web site
      * pages. When available, most_common_http_error_code field indicates the
@@ -227,8 +188,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value is never used.
      * 
@@ -237,8 +196,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -247,8 +204,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INTERNAL_ERROR_VALUE = 1; /** - * - * *
      * Indicates a scan configuration error, usually due to outdated ScanConfig
      * settings, such as starting_urls or the DNS configuration.
@@ -258,8 +213,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SCAN_CONFIG_ISSUE_VALUE = 2;
     /**
-     *
-     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -269,8 +222,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int AUTHENTICATION_CONFIG_ISSUE_VALUE = 3;
     /**
-     *
-     *
      * 
      * Indicates a scan operation timeout, usually caused by a very large site.
      * 
@@ -279,8 +230,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIMED_OUT_WHILE_SCANNING_VALUE = 4; /** - * - * *
      * Indicates that a scan encountered excessive redirects, either to
      * authentication or some other page outside of the scan scope.
@@ -290,8 +239,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TOO_MANY_REDIRECTS_VALUE = 5;
     /**
-     *
-     *
      * 
      * Indicates that a scan encountered numerous errors from the web site
      * pages. When available, most_common_http_error_code field indicates the
@@ -302,6 +249,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TOO_MANY_HTTP_ERRORS_VALUE = 6;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -326,59 +274,53 @@ public static Code valueOf(int value) {
      */
     public static Code forNumber(int value) {
       switch (value) {
-        case 0:
-          return CODE_UNSPECIFIED;
-        case 1:
-          return INTERNAL_ERROR;
-        case 2:
-          return SCAN_CONFIG_ISSUE;
-        case 3:
-          return AUTHENTICATION_CONFIG_ISSUE;
-        case 4:
-          return TIMED_OUT_WHILE_SCANNING;
-        case 5:
-          return TOO_MANY_REDIRECTS;
-        case 6:
-          return TOO_MANY_HTTP_ERRORS;
-        default:
-          return null;
+        case 0: return CODE_UNSPECIFIED;
+        case 1: return INTERNAL_ERROR;
+        case 2: return SCAN_CONFIG_ISSUE;
+        case 3: return AUTHENTICATION_CONFIG_ISSUE;
+        case 4: return TIMED_OUT_WHILE_SCANNING;
+        case 5: return TOO_MANY_REDIRECTS;
+        case 6: return TOO_MANY_HTTP_ERRORS;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Code> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Code findValueByNumber(int number) {
+              return Code.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Code findValueByNumber(int number) {
-            return Code.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Code[] VALUES = values();
 
-    public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Code valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -398,46 +340,33 @@ private Code(int value) {
   public static final int CODE_FIELD_NUMBER = 1;
   private int code_;
   /**
-   *
-   *
    * 
    * Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.UNRECOGNIZED : result; } public static final int SCAN_CONFIG_ERROR_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1beta.ScanConfigError scanConfigError_; /** - * - * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -445,7 +374,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; - * * @return Whether the scanConfigError field is set. */ @java.lang.Override @@ -453,8 +381,6 @@ public boolean hasScanConfigError() { return scanConfigError_ != null; } /** - * - * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -462,18 +388,13 @@ public boolean hasScanConfigError() {
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; - * * @return The scanConfigError. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigError() { - return scanConfigError_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance() - : scanConfigError_; + return scanConfigError_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance() : scanConfigError_; } /** - * - * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -483,16 +404,13 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigE
    * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder
-      getScanConfigErrorOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder() {
     return getScanConfigError();
   }
 
   public static final int MOST_COMMON_HTTP_ERROR_CODE_FIELD_NUMBER = 3;
   private int mostCommonHttpErrorCode_;
   /**
-   *
-   *
    * 
    * If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
    * common HTTP error code, if such is available. For example, if this code is
@@ -500,7 +418,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigE
    * 
* * int32 most_common_http_error_code = 3; - * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -509,7 +426,6 @@ public int getMostCommonHttpErrorCode() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -521,10 +437,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } if (scanConfigError_ != null) { @@ -542,16 +457,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (scanConfigError_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfigError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getScanConfigError()); } if (mostCommonHttpErrorCode_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, mostCommonHttpErrorCode_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, mostCommonHttpErrorCode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -561,20 +477,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace other = - (com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) obj; + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace other = (com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) obj; if (code_ != other.code_) return false; if (hasScanConfigError() != other.hasScanConfigError()) return false; if (hasScanConfigError()) { - if (!getScanConfigError().equals(other.getScanConfigError())) return false; + if (!getScanConfigError() + .equals(other.getScanConfigError())) return false; } - if (getMostCommonHttpErrorCode() != other.getMostCommonHttpErrorCode()) return false; + if (getMostCommonHttpErrorCode() + != other.getMostCommonHttpErrorCode()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -600,104 +517,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Output only.
    * Defines an error trace message for a ScanRun.
@@ -705,23 +614,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace)
       com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.class,
-              com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.class, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.newBuilder()
@@ -729,15 +636,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -755,14 +663,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace
-        getDefaultInstanceForType() {
+    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getDefaultInstanceForType() {
       return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance();
     }
 
@@ -777,8 +684,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace result =
-          new com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace(this);
+      com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace result = new com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace(this);
       result.code_ = code_;
       if (scanConfigErrorBuilder_ == null) {
         result.scanConfigError_ = scanConfigError_;
@@ -794,39 +700,38 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -834,9 +739,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace other) {
-      if (other
-          == com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance()) return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -865,8 +768,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -878,93 +780,73 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.UNRECOGNIZED : result; } /** - * - * *
      * Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code value) { + public Builder setCode(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -972,13 +854,8 @@ public Builder clearCode() { private com.google.cloud.websecurityscanner.v1beta.ScanConfigError scanConfigError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfigError, - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder> - scanConfigErrorBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfigError, com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder> scanConfigErrorBuilder_; /** - * - * *
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -986,15 +863,12 @@ public Builder clearCode() {
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; - * * @return Whether the scanConfigError field is set. */ public boolean hasScanConfigError() { return scanConfigErrorBuilder_ != null || scanConfigError_ != null; } /** - * - * *
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1002,21 +876,16 @@ public boolean hasScanConfigError() {
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; - * * @return The scanConfigError. */ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigError() { if (scanConfigErrorBuilder_ == null) { - return scanConfigError_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance() - : scanConfigError_; + return scanConfigError_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance() : scanConfigError_; } else { return scanConfigErrorBuilder_.getMessage(); } } /** - * - * *
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1025,8 +894,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigE
      *
      * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
      */
-    public Builder setScanConfigError(
-        com.google.cloud.websecurityscanner.v1beta.ScanConfigError value) {
+    public Builder setScanConfigError(com.google.cloud.websecurityscanner.v1beta.ScanConfigError value) {
       if (scanConfigErrorBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1040,8 +908,6 @@ public Builder setScanConfigError(
       return this;
     }
     /**
-     *
-     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1062,8 +928,6 @@ public Builder setScanConfigError(
       return this;
     }
     /**
-     *
-     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1072,15 +936,11 @@ public Builder setScanConfigError(
      *
      * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
      */
-    public Builder mergeScanConfigError(
-        com.google.cloud.websecurityscanner.v1beta.ScanConfigError value) {
+    public Builder mergeScanConfigError(com.google.cloud.websecurityscanner.v1beta.ScanConfigError value) {
       if (scanConfigErrorBuilder_ == null) {
         if (scanConfigError_ != null) {
           scanConfigError_ =
-              com.google.cloud.websecurityscanner.v1beta.ScanConfigError.newBuilder(
-                      scanConfigError_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.newBuilder(scanConfigError_).mergeFrom(value).buildPartial();
         } else {
           scanConfigError_ = value;
         }
@@ -1092,8 +952,6 @@ public Builder mergeScanConfigError(
       return this;
     }
     /**
-     *
-     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1114,8 +972,6 @@ public Builder clearScanConfigError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1124,15 +980,12 @@ public Builder clearScanConfigError() {
      *
      * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
      */
-    public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder
-        getScanConfigErrorBuilder() {
-
+    public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder getScanConfigErrorBuilder() {
+      
       onChanged();
       return getScanConfigErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1141,19 +994,15 @@ public Builder clearScanConfigError() {
      *
      * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
      */
-    public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder
-        getScanConfigErrorOrBuilder() {
+    public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder() {
       if (scanConfigErrorBuilder_ != null) {
         return scanConfigErrorBuilder_.getMessageOrBuilder();
       } else {
-        return scanConfigError_ == null
-            ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance()
-            : scanConfigError_;
+        return scanConfigError_ == null ?
+            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance() : scanConfigError_;
       }
     }
     /**
-     *
-     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1163,26 +1012,21 @@ public Builder clearScanConfigError() {
      * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1beta.ScanConfigError,
-            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder,
-            com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder>
+        com.google.cloud.websecurityscanner.v1beta.ScanConfigError, com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder> 
         getScanConfigErrorFieldBuilder() {
       if (scanConfigErrorBuilder_ == null) {
-        scanConfigErrorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.websecurityscanner.v1beta.ScanConfigError,
-                com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder,
-                com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder>(
-                getScanConfigError(), getParentForChildren(), isClean());
+        scanConfigErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.websecurityscanner.v1beta.ScanConfigError, com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder>(
+                getScanConfigError(),
+                getParentForChildren(),
+                isClean());
         scanConfigError_ = null;
       }
       return scanConfigErrorBuilder_;
     }
 
-    private int mostCommonHttpErrorCode_;
+    private int mostCommonHttpErrorCode_ ;
     /**
-     *
-     *
      * 
      * If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1190,7 +1034,6 @@ public Builder clearScanConfigError() {
      * 
* * int32 most_common_http_error_code = 3; - * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -1198,8 +1041,6 @@ public int getMostCommonHttpErrorCode() { return mostCommonHttpErrorCode_; } /** - * - * *
      * If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1207,19 +1048,16 @@ public int getMostCommonHttpErrorCode() {
      * 
* * int32 most_common_http_error_code = 3; - * * @param value The mostCommonHttpErrorCode to set. * @return This builder for chaining. */ public Builder setMostCommonHttpErrorCode(int value) { - + mostCommonHttpErrorCode_ = value; onChanged(); return this; } /** - * - * *
      * If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1227,18 +1065,17 @@ public Builder setMostCommonHttpErrorCode(int value) {
      * 
* * int32 most_common_http_error_code = 3; - * * @return This builder for chaining. */ public Builder clearMostCommonHttpErrorCode() { - + mostCommonHttpErrorCode_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1248,13 +1085,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) - private static final com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace(); } @@ -1263,16 +1099,16 @@ public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRunErrorTrace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunErrorTrace(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRunErrorTrace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRunErrorTrace(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1287,4 +1123,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java similarity index 77% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java index 3a923586..abfe6d8c 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ScanRunErrorTraceOrBuilder - extends +public interface ScanRunErrorTraceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @return The code. */ com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode(); /** - * - * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -58,13 +34,10 @@ public interface ScanRunErrorTraceOrBuilder
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; - * * @return Whether the scanConfigError field is set. */ boolean hasScanConfigError(); /** - * - * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -72,13 +45,10 @@ public interface ScanRunErrorTraceOrBuilder
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; - * * @return The scanConfigError. */ com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigError(); /** - * - * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -90,8 +60,6 @@ public interface ScanRunErrorTraceOrBuilder
   com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder();
 
   /**
-   *
-   *
    * 
    * If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
    * common HTTP error code, if such is available. For example, if this code is
@@ -99,7 +67,6 @@ public interface ScanRunErrorTraceOrBuilder
    * 
* * int32 most_common_http_error_code = 3; - * * @return The mostCommonHttpErrorCode. */ int getMostCommonHttpErrorCode(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java new file mode 100644 index 00000000..39dd06a4 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class ScanRunErrorTraceProto { + private ScanRunErrorTraceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nAgoogle/cloud/websecurityscanner/v1beta" + + "/scan_run_error_trace.proto\022&google.clou" + + "d.websecurityscanner.v1beta\032>google/clou" + + "d/websecurityscanner/v1beta/scan_config_" + + "error.proto\"\225\003\n\021ScanRunErrorTrace\022L\n\004cod" + + "e\030\001 \001(\0162>.google.cloud.websecurityscanne" + + "r.v1beta.ScanRunErrorTrace.Code\022R\n\021scan_" + + "config_error\030\002 \001(\01327.google.cloud.websec" + + "urityscanner.v1beta.ScanConfigError\022#\n\033m" + + "ost_common_http_error_code\030\003 \001(\005\"\270\001\n\004Cod" + + "e\022\024\n\020CODE_UNSPECIFIED\020\000\022\022\n\016INTERNAL_ERRO" + + "R\020\001\022\025\n\021SCAN_CONFIG_ISSUE\020\002\022\037\n\033AUTHENTICA" + + "TION_CONFIG_ISSUE\020\003\022\034\n\030TIMED_OUT_WHILE_S" + + "CANNING\020\004\022\026\n\022TOO_MANY_REDIRECTS\020\005\022\030\n\024TOO" + + "_MANY_HTTP_ERRORS\020\006B\236\002\n*com.google.cloud" + + ".websecurityscanner.v1betaB\026ScanRunError" + + "TraceProtoP\001ZXgoogle.golang.org/genproto" + + "/googleapis/cloud/websecurityscanner/v1b" + + "eta;websecurityscanner\252\002&Google.Cloud.We" + + "bSecurityScanner.V1Beta\312\002&Google\\Cloud\\W" + + "ebSecurityScanner\\V1beta\352\002)Google::Cloud" + + "::WebSecurityScanner::V1betab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor, + new java.lang.String[] { "Code", "ScanConfigError", "MostCommonHttpErrorCode", }); + com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java similarity index 84% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java index c696f8a2..f5758513 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ScanRunOrBuilder - extends +public interface ScanRunOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanRun) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -33,13 +15,10 @@ public interface ScanRunOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -47,92 +26,70 @@ public interface ScanRunOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @return The enum numeric value on the wire for executionState. */ int getExecutionStateValue(); /** - * - * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; * @return The executionState. */ com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExecutionState(); /** - * - * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @return The enum numeric value on the wire for resultState. */ int getResultStateValue(); /** - * - * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; - * * @return The resultState. */ com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultState(); /** - * - * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * The time at which the ScanRun started.
    * 
@@ -142,34 +99,26 @@ public interface ScanRunOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -180,22 +129,17 @@ public interface ScanRunOrBuilder
   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; - * * @return The urlsCrawledCount. */ long getUrlsCrawledCount(); /** - * - * *
    * The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -204,27 +148,21 @@ public interface ScanRunOrBuilder
    * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ long getUrlsTestedCount(); /** - * - * *
    * Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ boolean getHasVulnerabilities(); /** - * - * *
    * The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -233,40 +171,31 @@ public interface ScanRunOrBuilder
    * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ int getProgressPercent(); /** - * - * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; - * * @return Whether the errorTrace field is set. */ boolean hasErrorTrace(); /** - * - * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; - * * @return The errorTrace. */ com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrace(); /** - * - * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
@@ -277,60 +206,45 @@ public interface ScanRunOrBuilder
   com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder();
 
   /**
-   *
-   *
    * 
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - java.util.List + java.util.List getWarningTracesList(); /** - * - * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarningTraces(int index); /** - * - * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ int getWarningTracesCount(); /** - * - * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ - java.util.List + java.util.List getWarningTracesOrBuilderList(); /** - * - * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; - * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; */ com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( int index); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java new file mode 100644 index 00000000..3768b129 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java @@ -0,0 +1,94 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/scan_run.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class ScanRunProto { + private ScanRunProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/websecurityscanner/v1beta" + + "/scan_run.proto\022&google.cloud.websecurit" + + "yscanner.v1beta\032\031google/api/resource.pro" + + "to\032Agoogle/cloud/websecurityscanner/v1be" + + "ta/scan_run_error_trace.proto\032Cgoogle/cl" + + "oud/websecurityscanner/v1beta/scan_run_w" + + "arning_trace.proto\032\037google/protobuf/time" + + "stamp.proto\"\322\006\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022W\n" + + "\017execution_state\030\002 \001(\0162>.google.cloud.we" + + "bsecurityscanner.v1beta.ScanRun.Executio" + + "nState\022Q\n\014result_state\030\003 \001(\0162;.google.cl" + + "oud.websecurityscanner.v1beta.ScanRun.Re" + + "sultState\022.\n\nstart_time\030\004 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022,\n\010end_time\030\005 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022\032\n\022urls_crawled_" + + "count\030\006 \001(\003\022\031\n\021urls_tested_count\030\007 \001(\003\022\033" + + "\n\023has_vulnerabilities\030\010 \001(\010\022\030\n\020progress_" + + "percent\030\t \001(\005\022N\n\013error_trace\030\n \001(\01329.goo" + + "gle.cloud.websecurityscanner.v1beta.Scan" + + "RunErrorTrace\022S\n\016warning_traces\030\013 \003(\0132;." + + "google.cloud.websecurityscanner.v1beta.S" + + "canRunWarningTrace\"Y\n\016ExecutionState\022\037\n\033" + + "EXECUTION_STATE_UNSPECIFIED\020\000\022\n\n\006QUEUED\020" + + "\001\022\014\n\010SCANNING\020\002\022\014\n\010FINISHED\020\003\"O\n\013ResultS" + + "tate\022\034\n\030RESULT_STATE_UNSPECIFIED\020\000\022\013\n\007SU" + + "CCESS\020\001\022\t\n\005ERROR\020\002\022\n\n\006KILLED\020\003:p\352Am\n)web" + + "securityscanner.googleapis.com/ScanRun\022@" + + "projects/{project}/scanConfigs/{scan_con" + + "fig}/scanRuns/{scan_run}B\224\002\n*com.google." + + "cloud.websecurityscanner.v1betaB\014ScanRun" + + "ProtoP\001ZXgoogle.golang.org/genproto/goog" + + "leapis/cloud/websecurityscanner/v1beta;w" + + "ebsecurityscanner\252\002&Google.Cloud.WebSecu" + + "rityScanner.V1Beta\312\002&Google\\Cloud\\WebSec" + + "urityScanner\\V1beta\352\002)Google::Cloud::Web" + + "SecurityScanner::V1betab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor, + new java.lang.String[] { "Name", "ExecutionState", "ResultState", "StartTime", "EndTime", "UrlsCrawledCount", "UrlsTestedCount", "HasVulnerabilities", "ProgressPercent", "ErrorTrace", "WarningTraces", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java index 092ab948..778e0f72 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Output only.
  * Defines a warning trace message for ScanRun. Warning traces provide customers
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace}
  */
-public final class ScanRunWarningTrace extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ScanRunWarningTrace extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace)
     ScanRunWarningTraceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ScanRunWarningTrace.newBuilder() to construct.
   private ScanRunWarningTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ScanRunWarningTrace() {
     code_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanRunWarningTrace();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ScanRunWarningTrace(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,20 +55,19 @@ private ScanRunWarningTrace(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              code_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            code_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -93,31 +75,27 @@ private ScanRunWarningTrace(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.class,
-            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.class, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Output only.
    * Defines a warning message code.
@@ -126,10 +104,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code}
    */
-  public enum Code implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Code
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Default value is never used.
      * 
@@ -138,8 +115,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
      * Indicates that a scan discovered an unexpectedly low number of URLs. This
      * is sometimes caused by complex navigation features or by using a single
@@ -150,8 +125,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     INSUFFICIENT_CRAWL_RESULTS(1),
     /**
-     *
-     *
      * 
      * Indicates that a scan discovered too many URLs to test, or excessive
      * redundant URLs.
@@ -161,8 +134,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     TOO_MANY_CRAWL_RESULTS(2),
     /**
-     *
-     *
      * 
      * Indicates that too many tests have been generated for the scan. Customer
      * should try reducing the number of starting URLs, increasing the QPS rate,
@@ -173,8 +144,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     TOO_MANY_FUZZ_TASKS(3),
     /**
-     *
-     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -186,8 +155,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value is never used.
      * 
@@ -196,8 +163,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Indicates that a scan discovered an unexpectedly low number of URLs. This
      * is sometimes caused by complex navigation features or by using a single
@@ -208,8 +173,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INSUFFICIENT_CRAWL_RESULTS_VALUE = 1;
     /**
-     *
-     *
      * 
      * Indicates that a scan discovered too many URLs to test, or excessive
      * redundant URLs.
@@ -219,8 +182,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TOO_MANY_CRAWL_RESULTS_VALUE = 2;
     /**
-     *
-     *
      * 
      * Indicates that too many tests have been generated for the scan. Customer
      * should try reducing the number of starting URLs, increasing the QPS rate,
@@ -231,8 +192,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TOO_MANY_FUZZ_TASKS_VALUE = 3;
     /**
-     *
-     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -241,6 +200,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BLOCKED_BY_IAP_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -265,55 +225,51 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: - return CODE_UNSPECIFIED; - case 1: - return INSUFFICIENT_CRAWL_RESULTS; - case 2: - return TOO_MANY_CRAWL_RESULTS; - case 3: - return TOO_MANY_FUZZ_TASKS; - case 4: - return BLOCKED_BY_IAP; - default: - return null; + case 0: return CODE_UNSPECIFIED; + case 1: return INSUFFICIENT_CRAWL_RESULTS; + case 2: return TOO_MANY_CRAWL_RESULTS; + case 3: return TOO_MANY_FUZZ_TASKS; + case 4: return BLOCKED_BY_IAP; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = values(); - public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -333,43 +289,31 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** - * - * *
    * Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code getCode() { + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,10 +325,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } unknownFields.writeTo(output); @@ -396,10 +339,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -409,13 +351,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace other = - (com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) obj; + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace other = (com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) obj; if (code_ != other.code_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -437,104 +378,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Output only.
    * Defines a warning trace message for ScanRun. Warning traces provide customers
@@ -543,23 +476,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace)
       com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.class,
-              com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.class, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.newBuilder()
@@ -567,15 +498,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -585,14 +517,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace
-        getDefaultInstanceForType() {
+    public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getDefaultInstanceForType() {
       return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance();
     }
 
@@ -607,8 +538,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace result =
-          new com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace(this);
+      com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace result = new com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace(this);
       result.code_ = code_;
       onBuilt();
       return result;
@@ -618,39 +548,38 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace buildParti
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -658,9 +587,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace other) {
-      if (other
-          == com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance()) return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -683,9 +610,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -697,100 +622,80 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.valueOf(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.valueOf(code_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.UNRECOGNIZED : result; } /** - * - * *
      * Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code value) { + public Builder setCode(com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -800,32 +705,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) - private static final com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace(); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRunWarningTrace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunWarningTrace(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRunWarningTrace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRunWarningTrace(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -837,8 +740,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java similarity index 55% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java index 2a1da0d3..80d1a309 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ScanRunWarningTraceOrBuilder - extends +public interface ScanRunWarningTraceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @return The code. */ com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code getCode(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java new file mode 100644 index 00000000..4e6cfa02 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class ScanRunWarningTraceProto { + private ScanRunWarningTraceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nCgoogle/cloud/websecurityscanner/v1beta" + + "/scan_run_warning_trace.proto\022&google.cl" + + "oud.websecurityscanner.v1beta\"\355\001\n\023ScanRu" + + "nWarningTrace\022N\n\004code\030\001 \001(\0162@.google.clo" + + "ud.websecurityscanner.v1beta.ScanRunWarn" + + "ingTrace.Code\"\205\001\n\004Code\022\024\n\020CODE_UNSPECIFI" + + "ED\020\000\022\036\n\032INSUFFICIENT_CRAWL_RESULTS\020\001\022\032\n\026" + + "TOO_MANY_CRAWL_RESULTS\020\002\022\027\n\023TOO_MANY_FUZ" + + "Z_TASKS\020\003\022\022\n\016BLOCKED_BY_IAP\020\004B\240\002\n*com.go" + + "ogle.cloud.websecurityscanner.v1betaB\030Sc" + + "anRunWarningTraceProtoP\001ZXgoogle.golang." + + "org/genproto/googleapis/cloud/websecurit" + + "yscanner/v1beta;websecurityscanner\252\002&Goo" + + "gle.Cloud.WebSecurityScanner.V1Beta\312\002&Go" + + "ogle\\Cloud\\WebSecurityScanner\\V1beta\352\002)G" + + "oogle::Cloud::WebSecurityScanner::V1beta" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor, + new java.lang.String[] { "Code", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java similarity index 64% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java index a4ad4fdf..46f53c94 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `StartScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.StartScanRunRequest} */ -public final class StartScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) StartScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartScanRunRequest.newBuilder() to construct. private StartScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StartScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StartScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private StartScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest other = - (com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest other = (com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `StartScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.StartScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) com.google.cloud.websecurityscanner.v1beta.StartScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest result = - new com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest(this); + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest result = new com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +374,38 @@ public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest)other); } else { super.mergeFrom(other); return this; @@ -452,9 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -492,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -517,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -542,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -659,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java new file mode 100644 index 00000000..ad91dfc0 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface StartScanRunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanConfig to be used. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanConfig to be used. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java index 970b36c4..b92e6094 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `StopScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.StopScanRunRequest} */ -public final class StopScanRunRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StopScanRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) StopScanRunRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StopScanRunRequest.newBuilder() to construct. private StopScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StopScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StopScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StopScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StopScanRunRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,43 +73,36 @@ private StopScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -136,33 +111,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest other = - (com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest other = (com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `StopScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.StopScanRunRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) com.google.cloud.websecurityscanner.v1beta.StopScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.newBuilder() @@ -363,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -381,14 +345,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.getDefaultInstance(); } @@ -403,8 +366,7 @@ public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest result = - new com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest(this); + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest result = new com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,39 +376,38 @@ public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest)other); } else { super.mergeFrom(other); return this; @@ -454,9 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -494,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -546,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -629,13 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest(); } @@ -644,16 +580,16 @@ public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -668,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java new file mode 100644 index 00000000..451ee9bd --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface StopScanRunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name of the ScanRun to be stopped. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name of the ScanRun to be stopped. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java similarity index 66% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java index 9488505a..073bd532 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Request for the `UpdateScanConfigRequest` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest} */ -public final class UpdateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateScanConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) UpdateScanConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateScanConfigRequest.newBuilder() to construct. private UpdateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateScanConfigRequest() {} + private UpdateScanConfigRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private UpdateScanConfigRequest( case 0: done = true; break; - case 18: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } - - break; + case 18: { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); + } + scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,43 +92,36 @@ private UpdateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.Builder.class); } public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1beta.ScanConfig scanConfig_; /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -158,38 +129,27 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; } /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder() { @@ -199,17 +159,13 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -217,17 +173,13 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -235,16 +187,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -252,7 +201,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (scanConfig_ != null) { output.writeMessage(2, getScanConfig()); } @@ -281,10 +230,12 @@ public int getSerializedSize() { size = 0; if (scanConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getScanConfig()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -294,21 +245,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest other = - (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) obj; if (hasScanConfig() != other.hasScanConfig()) return false; if (hasScanConfig()) { - if (!getScanConfig().equals(other.getScanConfig())) return false; + if (!getScanConfig() + .equals(other.getScanConfig())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -335,145 +287,134 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for the `UpdateScanConfigRequest` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -493,16 +434,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto - .internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -516,8 +455,7 @@ public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest result = - new com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest(this); if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; } else { @@ -536,51 +474,46 @@ public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest other) { + if (other == com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.getDefaultInstance()) return this; if (other.hasScanConfig()) { mergeScanConfig(other.getScanConfig()); } @@ -606,9 +539,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -620,64 +551,45 @@ public Builder mergeFrom( private com.google.cloud.websecurityscanner.v1beta.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> - scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> scanConfigBuilder_; /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -693,17 +605,13 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConf return this; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setScanConfig( com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder builderForValue) { @@ -717,25 +625,19 @@ public Builder setScanConfig( return this; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConfig value) { if (scanConfigBuilder_ == null) { if (scanConfig_ != null) { scanConfig_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.newBuilder(scanConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial(); } else { scanConfig_ = value; } @@ -747,17 +649,13 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanCo return this; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearScanConfig() { if (scanConfigBuilder_ == null) { @@ -771,70 +669,54 @@ public Builder clearScanConfig() { return this; } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConfigBuilder() { - + onChanged(); return getScanConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder() { if (scanConfigBuilder_ != null) { return scanConfigBuilder_.getMessageOrBuilder(); } else { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? + com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; } } /** - * - * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> getScanConfigFieldBuilder() { if (scanConfigBuilder_ == null) { - scanConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( - getScanConfig(), getParentForChildren(), isClean()); + scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( + getScanConfig(), + getParentForChildren(), + isClean()); scanConfig_ = null; } return scanConfigBuilder_; @@ -842,61 +724,45 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -912,18 +778,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -934,22 +798,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -961,16 +822,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -984,74 +842,61 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1061,32 +906,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1098,8 +941,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java index c43f86ea..64762742 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java @@ -1,116 +1,75 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface UpdateScanConfigRequestOrBuilder - extends +public interface UpdateScanConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the scanConfig field is set. */ boolean hasScanConfig(); /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The scanConfig. */ com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig(); /** - * - * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder(); /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java similarity index 69% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java index bd7f2cac..796dc53d 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Information regarding any resource causing the vulnerability such
  * as JavaScript sources, image, audio files, etc.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ViolatingResource}
  */
-public final class ViolatingResource extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ViolatingResource extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ViolatingResource)
     ViolatingResourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ViolatingResource.newBuilder() to construct.
   private ViolatingResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ViolatingResource() {
     contentType_ = "";
     resourceUrl_ = "";
@@ -45,15 +27,16 @@ private ViolatingResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ViolatingResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ViolatingResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,27 +55,25 @@ private ViolatingResource(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              contentType_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            contentType_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              resourceUrl_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            resourceUrl_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,39 +81,34 @@ private ViolatingResource(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto
-        .internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.ViolatingResource.class,
-            com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.ViolatingResource.class, com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder.class);
   }
 
   public static final int CONTENT_TYPE_FIELD_NUMBER = 1;
   private volatile java.lang.Object contentType_;
   /**
-   *
-   *
    * 
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The contentType. */ @java.lang.Override @@ -141,29 +117,29 @@ public java.lang.String getContentType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; } } /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The bytes for contentType. */ @java.lang.Override - public com.google.protobuf.ByteString getContentTypeBytes() { + public com.google.protobuf.ByteString + getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentType_ = b; return b; } else { @@ -174,14 +150,11 @@ public com.google.protobuf.ByteString getContentTypeBytes() { public static final int RESOURCE_URL_FIELD_NUMBER = 2; private volatile java.lang.Object resourceUrl_; /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The resourceUrl. */ @java.lang.Override @@ -190,29 +163,29 @@ public java.lang.String getResourceUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -221,7 +194,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contentType_); } @@ -263,16 +236,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ViolatingResource)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ViolatingResource other = - (com.google.cloud.websecurityscanner.v1beta.ViolatingResource) obj; + com.google.cloud.websecurityscanner.v1beta.ViolatingResource other = (com.google.cloud.websecurityscanner.v1beta.ViolatingResource) obj; - if (!getContentType().equals(other.getContentType())) return false; - if (!getResourceUrl().equals(other.getResourceUrl())) return false; + if (!getContentType() + .equals(other.getContentType())) return false; + if (!getResourceUrl() + .equals(other.getResourceUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,104 +268,96 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.ViolatingResource prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ViolatingResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information regarding any resource causing the vulnerability such
    * as JavaScript sources, image, audio files, etc.
@@ -399,23 +365,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ViolatingResource}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ViolatingResource)
       com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.ViolatingResource.class,
-              com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.ViolatingResource.class, com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.ViolatingResource.newBuilder()
@@ -423,15 +387,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -443,14 +408,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto
-          .internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.websecurityscanner.v1beta.ViolatingResource
-        getDefaultInstanceForType() {
+    public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getDefaultInstanceForType() {
       return com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance();
     }
 
@@ -465,8 +429,7 @@ public com.google.cloud.websecurityscanner.v1beta.ViolatingResource build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.ViolatingResource buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.ViolatingResource result =
-          new com.google.cloud.websecurityscanner.v1beta.ViolatingResource(this);
+      com.google.cloud.websecurityscanner.v1beta.ViolatingResource result = new com.google.cloud.websecurityscanner.v1beta.ViolatingResource(this);
       result.contentType_ = contentType_;
       result.resourceUrl_ = resourceUrl_;
       onBuilt();
@@ -477,39 +440,38 @@ public com.google.cloud.websecurityscanner.v1beta.ViolatingResource buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.ViolatingResource) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ViolatingResource) other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ViolatingResource)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -517,9 +479,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ViolatingResource other) {
-      if (other
-          == com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance()) return this;
       if (!other.getContentType().isEmpty()) {
         contentType_ = other.contentType_;
         onChanged();
@@ -547,8 +507,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.websecurityscanner.v1beta.ViolatingResource) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ViolatingResource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -560,20 +519,18 @@ public Builder mergeFrom(
 
     private java.lang.Object contentType_ = "";
     /**
-     *
-     *
      * 
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return The contentType. */ public java.lang.String getContentType() { java.lang.Object ref = contentType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; @@ -582,21 +539,20 @@ public java.lang.String getContentType() { } } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return The bytes for contentType. */ - public com.google.protobuf.ByteString getContentTypeBytes() { + public com.google.protobuf.ByteString + getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentType_ = b; return b; } else { @@ -604,61 +560,54 @@ public com.google.protobuf.ByteString getContentTypeBytes() { } } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @param value The contentType to set. * @return This builder for chaining. */ - public Builder setContentType(java.lang.String value) { + public Builder setContentType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contentType_ = value; onChanged(); return this; } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = getDefaultInstance().getContentType(); onChanged(); return this; } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @param value The bytes for contentType to set. * @return This builder for chaining. */ - public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { + public Builder setContentTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentType_ = value; onChanged(); return this; @@ -666,20 +615,18 @@ public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceUrl_ = ""; /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; @@ -688,21 +635,20 @@ public java.lang.String getResourceUrl() { } } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ - public com.google.protobuf.ByteString getResourceUrlBytes() { + public com.google.protobuf.ByteString + getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -710,68 +656,61 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @param value The resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrl(java.lang.String value) { + public Builder setResourceUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUrl_ = value; onChanged(); return this; } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return This builder for chaining. */ public Builder clearResourceUrl() { - + resourceUrl_ = getDefaultInstance().getResourceUrl(); onChanged(); return this; } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { + public Builder setResourceUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUrl_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -781,13 +720,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ViolatingResource) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ViolatingResource) - private static final com.google.cloud.websecurityscanner.v1beta.ViolatingResource - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.ViolatingResource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ViolatingResource(); } @@ -796,16 +734,16 @@ public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ViolatingResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ViolatingResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ViolatingResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ViolatingResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -820,4 +758,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java similarity index 55% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java index 584227ed..4021d228 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ViolatingResourceOrBuilder - extends +public interface ViolatingResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ViolatingResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The contentType. */ java.lang.String getContentType(); /** - * - * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The bytes for contentType. */ - com.google.protobuf.ByteString getContentTypeBytes(); + com.google.protobuf.ByteString + getContentTypeBytes(); /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The bytes for resourceUrl. */ - com.google.protobuf.ByteString getResourceUrlBytes(); + com.google.protobuf.ByteString + getResourceUrlBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java similarity index 65% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java index 42d98b35..32ee8c3a 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Information about vulnerable or missing HTTP Headers.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableHeaders} */ -public final class VulnerableHeaders extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VulnerableHeaders extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.VulnerableHeaders) VulnerableHeadersOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VulnerableHeaders.newBuilder() to construct. private VulnerableHeaders(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VulnerableHeaders() { headers_ = java.util.Collections.emptyList(); missingHeaders_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private VulnerableHeaders() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableHeaders(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VulnerableHeaders( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,41 +55,31 @@ private VulnerableHeaders( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000001; - } - headers_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + headers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header>(); - mutable_bitField0_ |= 0x00000002; - } - missingHeaders_.add( - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), - extensionRegistry)); - break; + headers_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + missingHeaders_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + missingHeaders_.add( + input.readMessage(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,7 +87,8 @@ private VulnerableHeaders( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -126,96 +100,79 @@ private VulnerableHeaders( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.class, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder.class); } - public interface HeaderOrBuilder - extends + public interface HeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); } /** - * - * *
    * Describes a HTTP Header.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header} */ - public static final class Header extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Header extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) HeaderOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Header.newBuilder() to construct. private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Header() { name_ = ""; value_ = ""; @@ -223,15 +180,16 @@ private Header() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Header(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Header( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -250,27 +208,25 @@ private Header( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -278,39 +234,34 @@ private Header( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.class, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -319,29 +270,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -352,14 +303,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -368,29 +316,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -399,7 +347,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -411,7 +358,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -441,16 +389,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header other = - (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) obj; + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header other = (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) obj; - if (!getName().equals(other.getName())) return false; - if (!getValue().equals(other.getValue())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -472,95 +421,87 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -570,49 +511,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Describes a HTTP Header.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.class, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder.class); } - // Construct using - // com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.newBuilder() + // Construct using com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -624,16 +560,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - .getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance(); } @java.lang.Override @@ -647,8 +581,7 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header build @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header buildPartial() { - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header result = - new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header(this); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header result = new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header(this); result.name_ = name_; result.value_ = value_; onBuilt(); @@ -659,53 +592,46 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) { - return mergeFrom( - (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header other) { + if (other == com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -733,9 +659,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -747,20 +671,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -769,21 +691,20 @@ public java.lang.String getName() { } } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -791,61 +712,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -853,20 +767,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object value_ = ""; /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -875,21 +787,20 @@ public java.lang.String getValue() { } } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -897,66 +808,58 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -969,32 +872,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) - private static final com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header(); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser
PARSER = - new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Header parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Header parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Header(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -1006,176 +907,133 @@ public com.google.protobuf.Parser
getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int HEADERS_FIELD_NUMBER = 1; - private java.util.List - headers_; + private java.util.List headers_; /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public java.util.List - getHeadersList() { + public java.util.List getHeadersList() { return headers_; } /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + public java.util.List getHeadersOrBuilderList() { return headers_; } /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ @java.lang.Override public int getHeadersCount() { return headers_.size(); } /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getHeaders(int index) { return headers_.get(index); } /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder - getHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( + int index) { return headers_.get(index); } public static final int MISSING_HEADERS_FIELD_NUMBER = 2; - private java.util.List - missingHeaders_; + private java.util.List missingHeaders_; /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public java.util.List - getMissingHeadersList() { + public java.util.List getMissingHeadersList() { return missingHeaders_; } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + public java.util.List getMissingHeadersOrBuilderList() { return missingHeaders_; } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override public int getMissingHeadersCount() { return missingHeaders_.size(); } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMissingHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMissingHeaders(int index) { return missingHeaders_.get(index); } /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index) { return missingHeaders_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1187,7 +1045,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < headers_.size(); i++) { output.writeMessage(1, headers_.get(i)); } @@ -1204,10 +1063,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < headers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, headers_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, headers_.get(i)); } for (int i = 0; i < missingHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, missingHeaders_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, missingHeaders_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1217,16 +1078,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders other = - (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) obj; + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders other = (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) obj; - if (!getHeadersList().equals(other.getHeadersList())) return false; - if (!getMissingHeadersList().equals(other.getMissingHeadersList())) return false; + if (!getHeadersList() + .equals(other.getHeadersList())) return false; + if (!getMissingHeadersList() + .equals(other.getMissingHeadersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1252,127 +1114,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about vulnerable or missing HTTP Headers.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableHeaders} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.VulnerableHeaders) com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.class, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.newBuilder() @@ -1380,18 +1232,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getHeadersFieldBuilder(); getMissingHeadersFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1411,14 +1263,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance(); } @@ -1433,8 +1284,7 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders buildPartial() { - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders result = - new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders(this); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders result = new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders(this); int from_bitField0_ = bitField0_; if (headersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1462,39 +1312,38 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders)other); } else { super.mergeFrom(other); return this; @@ -1502,9 +1351,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance()) - return this; + if (other == com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance()) return this; if (headersBuilder_ == null) { if (!other.headers_.isEmpty()) { if (headers_.isEmpty()) { @@ -1523,10 +1370,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.VulnerableHe headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000001); - headersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHeadersFieldBuilder() - : null; + headersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHeadersFieldBuilder() : null; } else { headersBuilder_.addAllMessages(other.headers_); } @@ -1550,10 +1396,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.VulnerableHe missingHeadersBuilder_ = null; missingHeaders_ = other.missingHeaders_; bitField0_ = (bitField0_ & ~0x00000002); - missingHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMissingHeadersFieldBuilder() - : null; + missingHeadersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMissingHeadersFieldBuilder() : null; } else { missingHeadersBuilder_.addAllMessages(other.missingHeaders_); } @@ -1578,8 +1423,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1588,39 +1432,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - headers_ = java.util.Collections.emptyList(); - + private java.util.List headers_ = + java.util.Collections.emptyList(); private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - headers_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header>(headers_); + headers_ = new java.util.ArrayList(headers_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> - headersBuilder_; + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> headersBuilder_; /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public java.util.List - getHeadersList() { + public java.util.List getHeadersList() { if (headersBuilder_ == null) { return java.util.Collections.unmodifiableList(headers_); } else { @@ -1628,14 +1461,11 @@ private void ensureHeadersIsMutable() { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public int getHeadersCount() { if (headersBuilder_ == null) { @@ -1645,17 +1475,13 @@ public int getHeadersCount() { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getHeaders(int index) { if (headersBuilder_ == null) { return headers_.get(index); } else { @@ -1663,14 +1489,11 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getHe } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public Builder setHeaders( int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { @@ -1687,19 +1510,14 @@ public Builder setHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public Builder setHeaders( - int index, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - builderForValue) { + int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.set(index, builderForValue.build()); @@ -1710,17 +1528,13 @@ public Builder setHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public Builder addHeaders( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { + public Builder addHeaders(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1734,14 +1548,11 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { @@ -1758,18 +1569,14 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(builderForValue.build()); @@ -1780,19 +1587,14 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public Builder addHeaders( - int index, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - builderForValue) { + int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(index, builderForValue.build()); @@ -1803,22 +1605,18 @@ public Builder addHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public Builder addAllHeaders( - java.lang.Iterable< - ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header> - values) { + java.lang.Iterable values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); @@ -1826,14 +1624,11 @@ public Builder addAllHeaders( return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public Builder clearHeaders() { if (headersBuilder_ == null) { @@ -1846,14 +1641,11 @@ public Builder clearHeaders() { return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ public Builder removeHeaders(int index) { if (headersBuilder_ == null) { @@ -1866,50 +1658,39 @@ public Builder removeHeaders(int index) { return this; } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - getHeadersBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder getHeadersBuilder( + int index) { return getHeadersFieldBuilder().getBuilder(index); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder - getHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( + int index) { if (headersBuilder_ == null) { - return headers_.get(index); - } else { + return headers_.get(index); } else { return headersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> - getHeadersOrBuilderList() { + public java.util.List + getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { @@ -1917,105 +1698,74 @@ public Builder removeHeaders(int index) { } } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - addHeadersBuilder() { - return getHeadersFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - .getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder addHeadersBuilder() { + return getHeadersFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - addHeadersBuilder(int index) { - return getHeadersFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - .getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder addHeadersBuilder( + int index) { + return getHeadersFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - public java.util.List< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder> - getHeadersBuilderList() { + public java.util.List + getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { - headersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder>( - headers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder>( + headers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); headers_ = null; } return headersBuilder_; } - private java.util.List - missingHeaders_ = java.util.Collections.emptyList(); - + private java.util.List missingHeaders_ = + java.util.Collections.emptyList(); private void ensureMissingHeadersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = - new java.util.ArrayList< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header>( - missingHeaders_); + missingHeaders_ = new java.util.ArrayList(missingHeaders_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> - missingHeadersBuilder_; + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> missingHeadersBuilder_; /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List - getMissingHeadersList() { + public java.util.List getMissingHeadersList() { if (missingHeadersBuilder_ == null) { return java.util.Collections.unmodifiableList(missingHeaders_); } else { @@ -2023,15 +1773,11 @@ private void ensureMissingHeadersIsMutable() { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public int getMissingHeadersCount() { if (missingHeadersBuilder_ == null) { @@ -2041,18 +1787,13 @@ public int getMissingHeadersCount() { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMissingHeaders( - int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMissingHeaders(int index) { if (missingHeadersBuilder_ == null) { return missingHeaders_.get(index); } else { @@ -2060,15 +1801,11 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMi } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public Builder setMissingHeaders( int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { @@ -2085,20 +1822,14 @@ public Builder setMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public Builder setMissingHeaders( - int index, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - builderForValue) { + int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.set(index, builderForValue.build()); @@ -2109,18 +1840,13 @@ public Builder setMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public Builder addMissingHeaders( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { + public Builder addMissingHeaders(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { if (missingHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2134,15 +1860,11 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { @@ -2159,19 +1881,14 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - builderForValue) { + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.add(builderForValue.build()); @@ -2182,20 +1899,14 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public Builder addMissingHeaders( - int index, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - builderForValue) { + int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.add(index, builderForValue.build()); @@ -2206,23 +1917,18 @@ public Builder addMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public Builder addAllMissingHeaders( - java.lang.Iterable< - ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header> - values) { + java.lang.Iterable values) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingHeaders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, missingHeaders_); onChanged(); } else { missingHeadersBuilder_.addAllMessages(values); @@ -2230,15 +1936,11 @@ public Builder addAllMissingHeaders( return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public Builder clearMissingHeaders() { if (missingHeadersBuilder_ == null) { @@ -2251,15 +1953,11 @@ public Builder clearMissingHeaders() { return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ public Builder removeMissingHeaders(int index) { if (missingHeadersBuilder_ == null) { @@ -2272,53 +1970,39 @@ public Builder removeMissingHeaders(int index) { return this; } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - getMissingHeadersBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder getMissingHeadersBuilder( + int index) { return getMissingHeadersFieldBuilder().getBuilder(index); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index) { if (missingHeadersBuilder_ == null) { - return missingHeaders_.get(index); - } else { + return missingHeaders_.get(index); } else { return missingHeadersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> - getMissingHeadersOrBuilderList() { + public java.util.List + getMissingHeadersOrBuilderList() { if (missingHeadersBuilder_ != null) { return missingHeadersBuilder_.getMessageOrBuilderList(); } else { @@ -2326,70 +2010,45 @@ public Builder removeMissingHeaders(int index) { } } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - addMissingHeadersBuilder() { - return getMissingHeadersFieldBuilder() - .addBuilder( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - .getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder addMissingHeadersBuilder() { + return getMissingHeadersFieldBuilder().addBuilder( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder - addMissingHeadersBuilder(int index) { - return getMissingHeadersFieldBuilder() - .addBuilder( - index, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - .getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder addMissingHeadersBuilder( + int index) { + return getMissingHeadersFieldBuilder().addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance()); } /** - * - * *
      * List of missing headers.
      * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - public java.util.List< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder> - getMissingHeadersBuilderList() { + public java.util.List + getMissingHeadersBuilderList() { return getMissingHeadersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> getMissingHeadersFieldBuilder() { if (missingHeadersBuilder_ == null) { - missingHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder>( + missingHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder>( missingHeaders_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2398,9 +2057,9 @@ public Builder removeMissingHeaders(int index) { } return missingHeadersBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2410,13 +2069,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.VulnerableHeaders) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.VulnerableHeaders) - private static final com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders(); } @@ -2425,16 +2083,16 @@ public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableHeaders parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableHeaders(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableHeaders parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableHeaders(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2449,4 +2107,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java similarity index 51% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java index b6c66563..9bdd7c49 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java @@ -1,150 +1,97 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface VulnerableHeadersOrBuilder - extends +public interface VulnerableHeadersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.VulnerableHeaders) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - java.util.List + java.util.List getHeadersList(); /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getHeaders(int index); /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ int getHeadersCount(); /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ - java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + java.util.List getHeadersOrBuilderList(); /** - * - * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; */ com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( int index); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - java.util.List + java.util.List getMissingHeadersList(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMissingHeaders(int index); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ int getMissingHeadersCount(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - java.util.List< - ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + java.util.List getMissingHeadersOrBuilderList(); /** - * - * *
    * List of missing headers.
    * 
* - * - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; - * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; */ - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder - getMissingHeadersOrBuilder(int index); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( + int index); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java similarity index 68% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java index 03debcf3..4bcf5ded 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Information about vulnerable request parameters.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableParameters} */ -public final class VulnerableParameters extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VulnerableParameters extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.VulnerableParameters) VulnerableParametersOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VulnerableParameters.newBuilder() to construct. private VulnerableParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VulnerableParameters() { parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableParameters(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VulnerableParameters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,23 +54,22 @@ private VulnerableParameters( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameterNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - parameterNames_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + parameterNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + parameterNames_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,7 +77,8 @@ private VulnerableParameters( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -104,61 +87,50 @@ private VulnerableParameters( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.class, - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder.class); } public static final int PARAMETER_NAMES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList parameterNames_; /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList getParameterNamesList() { + public com.google.protobuf.ProtocolStringList + getParameterNamesList() { return parameterNames_; } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -166,23 +138,20 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString + getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,7 +163,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < parameterNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameterNames_.getRaw(i)); } @@ -223,15 +193,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableParameters)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters other = - (com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) obj; + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters other = (com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) obj; - if (!getParameterNamesList().equals(other.getParameterNamesList())) return false; + if (!getParameterNamesList() + .equals(other.getParameterNamesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -253,127 +223,117 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters prototype) { + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.VulnerableParameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about vulnerable request parameters.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableParameters} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.VulnerableParameters) com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.class, - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.newBuilder() @@ -381,15 +341,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -399,14 +360,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance(); } @@ -421,8 +381,7 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters buildPartial() { - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters result = - new com.google.cloud.websecurityscanner.v1beta.VulnerableParameters(this); + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters result = new com.google.cloud.websecurityscanner.v1beta.VulnerableParameters(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -437,50 +396,46 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.VulnerableParameters)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters other) { - if (other - == com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.VulnerableParameters other) { + if (other == com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance()) return this; if (!other.parameterNames_.isEmpty()) { if (parameterNames_.isEmpty()) { parameterNames_ = other.parameterNames_; @@ -510,9 +465,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -521,55 +474,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList parameterNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureParameterNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { parameterNames_ = new com.google.protobuf.LazyStringArrayList(parameterNames_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList getParameterNamesList() { + public com.google.protobuf.ProtocolStringList + getParameterNamesList() { return parameterNames_.getUnmodifiableView(); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -577,90 +519,80 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString + getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param index The index to set the value at. * @param value The parameterNames to set. * @return This builder for chaining. */ - public Builder setParameterNames(int index, java.lang.String value) { + public Builder setParameterNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.set(index, value); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param value The parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNames(java.lang.String value) { + public Builder addParameterNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param values The parameterNames to add. * @return This builder for chaining. */ - public Builder addAllParameterNames(java.lang.Iterable values) { + public Builder addAllParameterNames( + java.lang.Iterable values) { ensureParameterNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameterNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, parameterNames_); onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return This builder for chaining. */ public Builder clearParameterNames() { @@ -670,30 +602,28 @@ public Builder clearParameterNames() { return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @param value The bytes of the parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNamesBytes(com.google.protobuf.ByteString value) { + public Builder addParameterNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -703,32 +633,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.VulnerableParameters) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.VulnerableParameters) - private static final com.google.cloud.websecurityscanner.v1beta.VulnerableParameters - DEFAULT_INSTANCE; - + private static final com.google.cloud.websecurityscanner.v1beta.VulnerableParameters DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.VulnerableParameters(); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters - getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableParameters(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableParameters(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -740,8 +668,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters - getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java similarity index 60% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java index e8516b30..c79d07da 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java @@ -1,76 +1,50 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface VulnerableParametersOrBuilder - extends +public interface VulnerableParametersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.VulnerableParameters) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return A list containing the parameterNames. */ - java.util.List getParameterNamesList(); + java.util.List + getParameterNamesList(); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @return The count of parameterNames. */ int getParameterNamesCount(); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the element to return. * @return The parameterNames at the given index. */ java.lang.String getParameterNames(int index); /** - * - * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; - * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - com.google.protobuf.ByteString getParameterNamesBytes(int index); + com.google.protobuf.ByteString + getParameterNamesBytes(int index); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java new file mode 100644 index 00000000..696f0e6e --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java @@ -0,0 +1,410 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class WebSecurityScannerProto { + private WebSecurityScannerProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nAgoogle/cloud/websecurityscanner/v1beta" + + "/web_security_scanner.proto\022&google.clou" + + "d.websecurityscanner.v1beta\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\0328google/cloud/web" + + "securityscanner/v1beta/crawled_url.proto" + + "\0324google/cloud/websecurityscanner/v1beta" + + "/finding.proto\032?google/cloud/websecurity" + + "scanner/v1beta/finding_type_stats.proto\032" + + "8google/cloud/websecurityscanner/v1beta/" + + "scan_config.proto\0325google/cloud/websecur" + + "ityscanner/v1beta/scan_run.proto\032\033google" + + "/protobuf/empty.proto\032 google/protobuf/f" + + "ield_mask.proto\"\254\001\n\027CreateScanConfigRequ" + + "est\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresour" + + "cemanager.googleapis.com/Project\022L\n\013scan" + + "_config\030\002 \001(\01322.google.cloud.websecurity" + + "scanner.v1beta.ScanConfigB\003\340A\002\"]\n\027Delete" + + "ScanConfigRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n" + + ",websecurityscanner.googleapis.com/ScanC" + + "onfig\"Z\n\024GetScanConfigRequest\022B\n\004name\030\001 " + + "\001(\tB4\340A\002\372A.\n,websecurityscanner.googleap" + + "is.com/ScanConfig\"\204\001\n\026ListScanConfigsReq" + + "uest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresou" + + "rcemanager.googleapis.com/Project\022\022\n\npag" + + "e_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\235\001\n\027Upd" + + "ateScanConfigRequest\022L\n\013scan_config\030\002 \001(" + + "\01322.google.cloud.websecurityscanner.v1be" + + "ta.ScanConfigB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\002\"|\n\027List" + + "ScanConfigsResponse\022H\n\014scan_configs\030\001 \003(" + + "\01322.google.cloud.websecurityscanner.v1be" + + "ta.ScanConfig\022\027\n\017next_page_token\030\002 \001(\t\"Y" + + "\n\023StartScanRunRequest\022B\n\004name\030\001 \001(\tB4\340A\002" + + "\372A.\n,websecurityscanner.googleapis.com/S" + + "canConfig\"T\n\021GetScanRunRequest\022?\n\004name\030\001" + + " \001(\tB1\340A\002\372A+\n)websecurityscanner.googlea" + + "pis.com/ScanRun\"\202\001\n\023ListScanRunsRequest\022" + + "D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,websecurityscan" + + "ner.googleapis.com/ScanConfig\022\022\n\npage_to" + + "ken\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"s\n\024ListScan" + + "RunsResponse\022B\n\tscan_runs\030\001 \003(\0132/.google" + + ".cloud.websecurityscanner.v1beta.ScanRun" + + "\022\027\n\017next_page_token\030\002 \001(\t\"U\n\022StopScanRun" + + "Request\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecuri" + + "tyscanner.googleapis.com/ScanRun\"\202\001\n\026Lis" + + "tCrawledUrlsRequest\022A\n\006parent\030\001 \001(\tB1\340A\002" + + "\372A+\n)websecurityscanner.googleapis.com/S" + + "canRun\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030" + + "\003 \001(\005\"|\n\027ListCrawledUrlsResponse\022H\n\014craw" + + "led_urls\030\001 \003(\01322.google.cloud.websecurit" + + "yscanner.v1beta.CrawledUrl\022\027\n\017next_page_" + + "token\030\002 \001(\t\"T\n\021GetFindingRequest\022?\n\004name" + + "\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner.googl" + + "eapis.com/Finding\"\224\001\n\023ListFindingsReques" + + "t\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)websecuritysc" + + "anner.googleapis.com/ScanRun\022\023\n\006filter\030\002" + + " \001(\tB\003\340A\002\022\022\n\npage_token\030\003 \001(\t\022\021\n\tpage_si" + + "ze\030\004 \001(\005\"r\n\024ListFindingsResponse\022A\n\010find" + + "ings\030\001 \003(\0132/.google.cloud.websecuritysca" + + "nner.v1beta.Finding\022\027\n\017next_page_token\030\002" + + " \001(\t\"`\n\033ListFindingTypeStatsRequest\022A\n\006p" + + "arent\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner." + + "googleapis.com/ScanRun\"t\n\034ListFindingTyp" + + "eStatsResponse\022T\n\022finding_type_stats\030\001 \003" + + "(\01328.google.cloud.websecurityscanner.v1b" + + "eta.FindingTypeStats2\216\026\n\022WebSecurityScan" + + "ner\022\332\001\n\020CreateScanConfig\022?.google.cloud." + + "websecurityscanner.v1beta.CreateScanConf" + + "igRequest\0322.google.cloud.websecurityscan" + + "ner.v1beta.ScanConfig\"Q\202\323\344\223\0026\"\'/v1beta/{" + + "parent=projects/*}/scanConfigs:\013scan_con" + + "fig\332A\022parent,scan_config\022\243\001\n\020DeleteScanC" + + "onfig\022?.google.cloud.websecurityscanner." + + "v1beta.DeleteScanConfigRequest\032\026.google." + + "protobuf.Empty\"6\202\323\344\223\002)*\'/v1beta/{name=pr" + + "ojects/*/scanConfigs/*}\332A\004name\022\271\001\n\rGetSc" + + "anConfig\022<.google.cloud.websecurityscann" + + "er.v1beta.GetScanConfigRequest\0322.google." + + "cloud.websecurityscanner.v1beta.ScanConf" + + "ig\"6\202\323\344\223\002)\022\'/v1beta/{name=projects/*/sca" + + "nConfigs/*}\332A\004name\022\314\001\n\017ListScanConfigs\022>" + + ".google.cloud.websecurityscanner.v1beta." + + "ListScanConfigsRequest\032?.google.cloud.we" + + "bsecurityscanner.v1beta.ListScanConfigsR" + + "esponse\"8\202\323\344\223\002)\022\'/v1beta/{parent=project" + + "s/*}/scanConfigs\332A\006parent\022\353\001\n\020UpdateScan" + + "Config\022?.google.cloud.websecurityscanner" + + ".v1beta.UpdateScanConfigRequest\0322.google" + + ".cloud.websecurityscanner.v1beta.ScanCon" + + "fig\"b\202\323\344\223\002B23/v1beta/{scan_config.name=p" + + "rojects/*/scanConfigs/*}:\013scan_config\332A\027" + + "scan_config,update_mask\022\275\001\n\014StartScanRun" + + "\022;.google.cloud.websecurityscanner.v1bet" + + "a.StartScanRunRequest\032/.google.cloud.web" + + "securityscanner.v1beta.ScanRun\"?\202\323\344\223\0022\"-" + + "/v1beta/{name=projects/*/scanConfigs/*}:" + + "start:\001*\332A\004name\022\273\001\n\nGetScanRun\0229.google." + + "cloud.websecurityscanner.v1beta.GetScanR" + + "unRequest\032/.google.cloud.websecurityscan" + + "ner.v1beta.ScanRun\"A\202\323\344\223\0024\0222/v1beta/{nam" + + "e=projects/*/scanConfigs/*/scanRuns/*}\332A" + + "\004name\022\316\001\n\014ListScanRuns\022;.google.cloud.we" + + "bsecurityscanner.v1beta.ListScanRunsRequ" + + "est\032<.google.cloud.websecurityscanner.v1" + + "beta.ListScanRunsResponse\"C\202\323\344\223\0024\0222/v1be" + + "ta/{parent=projects/*/scanConfigs/*}/sca" + + "nRuns\332A\006parent\022\305\001\n\013StopScanRun\022:.google." + + "cloud.websecurityscanner.v1beta.StopScan" + + "RunRequest\032/.google.cloud.websecuritysca" + + "nner.v1beta.ScanRun\"I\202\323\344\223\002<\"7/v1beta/{na" + + "me=projects/*/scanConfigs/*/scanRuns/*}:" + + "stop:\001*\332A\004name\022\345\001\n\017ListCrawledUrls\022>.goo" + + "gle.cloud.websecurityscanner.v1beta.List" + + "CrawledUrlsRequest\032?.google.cloud.websec" + + "urityscanner.v1beta.ListCrawledUrlsRespo" + + "nse\"Q\202\323\344\223\002B\022@/v1beta/{parent=projects/*/" + + "scanConfigs/*/scanRuns/*}/crawledUrls\332A\006" + + "parent\022\306\001\n\nGetFinding\0229.google.cloud.web" + + "securityscanner.v1beta.GetFindingRequest" + + "\032/.google.cloud.websecurityscanner.v1bet" + + "a.Finding\"L\202\323\344\223\002?\022=/v1beta/{name=project" + + "s/*/scanConfigs/*/scanRuns/*/findings/*}" + + "\332A\004name\022\340\001\n\014ListFindings\022;.google.cloud." + + "websecurityscanner.v1beta.ListFindingsRe" + + "quest\032<.google.cloud.websecurityscanner." + + "v1beta.ListFindingsResponse\"U\202\323\344\223\002?\022=/v1" + + "beta/{parent=projects/*/scanConfigs/*/sc" + + "anRuns/*}/findings\332A\rparent,filter\022\371\001\n\024L" + + "istFindingTypeStats\022C.google.cloud.webse" + + "curityscanner.v1beta.ListFindingTypeStat" + + "sRequest\032D.google.cloud.websecurityscann" + + "er.v1beta.ListFindingTypeStatsResponse\"V" + + "\202\323\344\223\002G\022E/v1beta/{parent=projects/*/scanC" + + "onfigs/*/scanRuns/*}/findingTypeStats\332A\006" + + "parent\032U\312A!websecurityscanner.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platformB\237\002\n*com.google.cloud.webse" + + "curityscanner.v1betaB\027WebSecurityScanner" + + "ProtoP\001ZXgoogle.golang.org/genproto/goog" + + "leapis/cloud/websecurityscanner/v1beta;w" + + "ebsecurityscanner\252\002&Google.Cloud.WebSecu" + + "rityScanner.V1Beta\312\002&Google\\Cloud\\WebSec" + + "urityScanner\\V1beta\352\002)Google::Cloud::Web" + + "SecurityScanner::V1betab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.FindingProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor, + new java.lang.String[] { "Parent", "ScanConfig", }); + internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor, + new java.lang.String[] { "ScanConfig", "UpdateMask", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor, + new java.lang.String[] { "ScanConfigs", "NextPageToken", }); + internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor, + new java.lang.String[] { "ScanRuns", "NextPageToken", }); + internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor, + new java.lang.String[] { "Parent", "PageToken", "PageSize", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor, + new java.lang.String[] { "CrawledUrls", "NextPageToken", }); + internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageToken", "PageSize", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor, + new java.lang.String[] { "Findings", "NextPageToken", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor, + new java.lang.String[] { "Parent", }); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor, + new java.lang.String[] { "FindingTypeStats", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.FindingProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java similarity index 72% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java index f72469e0..8804159c 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** - * - * *
  * Information reported for an XSS.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Xss} */ -public final class Xss extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Xss extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.Xss) XssOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Xss.newBuilder() to construct. private Xss(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Xss() { stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; errorMessage_ = ""; @@ -44,15 +26,16 @@ private Xss() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Xss(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Xss( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private Xss( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stackTraces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - stackTraces_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stackTraces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + stackTraces_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + errorMessage_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private Xss( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -112,61 +94,50 @@ private Xss( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.Xss.class, - com.google.cloud.websecurityscanner.v1beta.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1beta.Xss.class, com.google.cloud.websecurityscanner.v1beta.Xss.Builder.class); } public static final int STACK_TRACES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList stackTraces_; /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList getStackTracesList() { + public com.google.protobuf.ProtocolStringList + getStackTracesList() { return stackTraces_; } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -174,32 +145,27 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString getStackTracesBytes(int index) { + public com.google.protobuf.ByteString + getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object errorMessage_; /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The errorMessage. */ @java.lang.Override @@ -208,29 +174,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -239,7 +205,6 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +216,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < stackTraces_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stackTraces_.getRaw(i)); } @@ -286,16 +252,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.Xss)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.Xss other = - (com.google.cloud.websecurityscanner.v1beta.Xss) obj; + com.google.cloud.websecurityscanner.v1beta.Xss other = (com.google.cloud.websecurityscanner.v1beta.Xss) obj; - if (!getStackTracesList().equals(other.getStackTracesList())) return false; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getStackTracesList() + .equals(other.getStackTracesList())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -318,127 +285,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.websecurityscanner.v1beta.Xss parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1beta.Xss parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.Xss prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information reported for an XSS.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Xss} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.Xss) com.google.cloud.websecurityscanner.v1beta.XssOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.Xss.class, - com.google.cloud.websecurityscanner.v1beta.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1beta.Xss.class, com.google.cloud.websecurityscanner.v1beta.Xss.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.Xss.newBuilder() @@ -446,15 +404,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -466,9 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; } @java.lang.Override @@ -487,8 +446,7 @@ public com.google.cloud.websecurityscanner.v1beta.Xss build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.Xss buildPartial() { - com.google.cloud.websecurityscanner.v1beta.Xss result = - new com.google.cloud.websecurityscanner.v1beta.Xss(this); + com.google.cloud.websecurityscanner.v1beta.Xss result = new com.google.cloud.websecurityscanner.v1beta.Xss(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -504,39 +462,38 @@ public com.google.cloud.websecurityscanner.v1beta.Xss buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.Xss) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Xss) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Xss)other); } else { super.mergeFrom(other); return this; @@ -587,55 +544,44 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList stackTraces_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStackTracesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { stackTraces_ = new com.google.protobuf.LazyStringArrayList(stackTraces_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList getStackTracesList() { + public com.google.protobuf.ProtocolStringList + getStackTracesList() { return stackTraces_.getUnmodifiableView(); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -643,90 +589,80 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString getStackTracesBytes(int index) { + public com.google.protobuf.ByteString + getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param index The index to set the value at. * @param value The stackTraces to set. * @return This builder for chaining. */ - public Builder setStackTraces(int index, java.lang.String value) { + public Builder setStackTraces( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.set(index, value); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param value The stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTraces(java.lang.String value) { + public Builder addStackTraces( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param values The stackTraces to add. * @return This builder for chaining. */ - public Builder addAllStackTraces(java.lang.Iterable values) { + public Builder addAllStackTraces( + java.lang.Iterable values) { ensureStackTracesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stackTraces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stackTraces_); onChanged(); return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @return This builder for chaining. */ public Builder clearStackTraces() { @@ -736,22 +672,20 @@ public Builder clearStackTraces() { return this; } /** - * - * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; - * * @param value The bytes of the stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { + public Builder addStackTracesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); @@ -760,20 +694,18 @@ public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { private java.lang.Object errorMessage_ = ""; /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -782,21 +714,20 @@ public java.lang.String getErrorMessage() { } } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -804,68 +735,61 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage(java.lang.String value) { + public Builder setErrorMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -875,12 +799,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.Xss) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.Xss) private static final com.google.cloud.websecurityscanner.v1beta.Xss DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.Xss(); } @@ -889,16 +813,16 @@ public static com.google.cloud.websecurityscanner.v1beta.Xss getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Xss parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Xss(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Xss parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Xss(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -913,4 +837,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.Xss getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java similarity index 65% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java index a8d275af..bf9286e9 100644 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java @@ -1,101 +1,70 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface XssOrBuilder - extends +public interface XssOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.Xss) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return A list containing the stackTraces. */ - java.util.List getStackTracesList(); + java.util.List + getStackTracesList(); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @return The count of stackTraces. */ int getStackTracesCount(); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the element to return. * @return The stackTraces at the given index. */ java.lang.String getStackTraces(int index); /** - * - * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; - * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - com.google.protobuf.ByteString getStackTracesBytes(int index); + com.google.protobuf.ByteString + getStackTracesBytes(int index); /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString getErrorMessageBytes(); + com.google.protobuf.ByteString + getErrorMessageBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto similarity index 100% rename from proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto rename to owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java diff --git a/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java deleted file mode 100644 index be61a411..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/crawled_url.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class CrawledUrlProto { - private CrawledUrlProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/websecurityscanner/v1/cra" - + "wled_url.proto\022\"google.cloud.websecurity" - + "scanner.v1\"<\n\nCrawledUrl\022\023\n\013http_method\030" - + "\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001(\tB\203\002\n&com" - + ".google.cloud.websecurityscanner.v1B\017Cra" - + "wledUrlProtoP\001ZTgoogle.golang.org/genpro" - + "to/googleapis/cloud/websecurityscanner/v" - + "1;websecurityscanner\252\002\"Google.Cloud.WebS" - + "ecurityScanner.V1\312\002\"Google\\Cloud\\WebSecu" - + "rityScanner\\V1\352\002%Google::Cloud::WebSecur" - + "ityScanner::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor, - new java.lang.String[] { - "HttpMethod", "Url", "Body", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java deleted file mode 100644 index cd63245f..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/finding_addon.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class FindingAddonProto { - private FindingAddonProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/websecurityscanner/v1/fin" - + "ding_addon.proto\022\"google.cloud.websecuri" - + "tyscanner.v1\"*\n\004Form\022\022\n\naction_uri\030\001 \001(\t" - + "\022\016\n\006fields\030\002 \003(\t\"Q\n\017OutdatedLibrary\022\024\n\014l" - + "ibrary_name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\027\n\017le" - + "arn_more_urls\030\003 \003(\t\"?\n\021ViolatingResource" - + "\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resource_url\030\002" - + " \001(\t\"/\n\024VulnerableParameters\022\027\n\017paramete" - + "r_names\030\001 \003(\t\"\340\001\n\021VulnerableHeaders\022M\n\007h" - + "eaders\030\001 \003(\0132<.google.cloud.websecuritys" - + "canner.v1.VulnerableHeaders.Header\022U\n\017mi" - + "ssing_headers\030\002 \003(\0132<.google.cloud.webse" - + "curityscanner.v1.VulnerableHeaders.Heade" - + "r\032%\n\006Header\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + "\"\333\003\n\003Xss\022\024\n\014stack_traces\030\001 \003(\t\022\025\n\rerror_" - + "message\030\002 \001(\t\022K\n\rattack_vector\030\003 \001(\01624.g" - + "oogle.cloud.websecurityscanner.v1.Xss.At" - + "tackVector\022\036\n\026stored_xss_seeding_url\030\004 \001" - + "(\t\"\271\002\n\014AttackVector\022\035\n\031ATTACK_VECTOR_UNS" - + "PECIFIED\020\000\022\021\n\rLOCAL_STORAGE\020\001\022\023\n\017SESSION" - + "_STORAGE\020\002\022\017\n\013WINDOW_NAME\020\003\022\014\n\010REFERRER\020" - + "\004\022\016\n\nFORM_INPUT\020\005\022\n\n\006COOKIE\020\006\022\020\n\014POST_ME" - + "SSAGE\020\007\022\022\n\016GET_PARAMETERS\020\010\022\020\n\014URL_FRAGM" - + "ENT\020\t\022\020\n\014HTML_COMMENT\020\n\022\023\n\017POST_PARAMETE" - + "RS\020\013\022\014\n\010PROTOCOL\020\014\022\016\n\nSTORED_XSS\020\r\022\017\n\013SA" - + "ME_ORIGIN\020\016\022\031\n\025USER_CONTROLLABLE_URL\020\017B\205" - + "\002\n&com.google.cloud.websecurityscanner.v" - + "1B\021FindingAddonProtoP\001ZTgoogle.golang.or" - + "g/genproto/googleapis/cloud/websecuritys" - + "canner/v1;websecurityscanner\252\002\"Google.Cl" - + "oud.WebSecurityScanner.V1\312\002\"Google\\Cloud" - + "\\WebSecurityScanner\\V1\352\002%Google::Cloud::" - + "WebSecurityScanner::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1_Form_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_Form_descriptor, - new java.lang.String[] { - "ActionUri", "Fields", - }); - internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor, - new java.lang.String[] { - "LibraryName", "Version", "LearnMoreUrls", - }); - internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor, - new java.lang.String[] { - "ContentType", "ResourceUrl", - }); - internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor, - new java.lang.String[] { - "ParameterNames", - }); - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor, - new java.lang.String[] { - "Headers", "MissingHeaders", - }); - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor = - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor, - new java.lang.String[] { - "Name", "Value", - }); - internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor, - new java.lang.String[] { - "StackTraces", "ErrorMessage", "AttackVector", "StoredXssSeedingUrl", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java deleted file mode 100644 index a94ab1eb..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/finding.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class FindingProto { - private FindingProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/websecurityscanner/v1/fin" - + "ding.proto\022\"google.cloud.websecurityscan" - + "ner.v1\032\037google/api/field_behavior.proto\032" - + "\031google/api/resource.proto\0326google/cloud" - + "/websecurityscanner/v1/finding_addon.pro" - + "to\"\261\007\n\007Finding\022\014\n\004name\030\001 \001(\t\022\024\n\014finding_" - + "type\030\002 \001(\t\022K\n\010severity\030\021 \001(\01624.google.cl" - + "oud.websecurityscanner.v1.Finding.Severi" - + "tyB\003\340A\003\022\023\n\013http_method\030\003 \001(\t\022\022\n\nfuzzed_u" - + "rl\030\004 \001(\t\022\014\n\004body\030\005 \001(\t\022\023\n\013description\030\006 " - + "\001(\t\022\030\n\020reproduction_url\030\007 \001(\t\022\021\n\tframe_u" - + "rl\030\010 \001(\t\022\021\n\tfinal_url\030\t \001(\t\022\023\n\013tracking_" - + "id\030\n \001(\t\0226\n\004form\030\020 \001(\0132(.google.cloud.we" - + "bsecurityscanner.v1.Form\022M\n\020outdated_lib" - + "rary\030\013 \001(\01323.google.cloud.websecuritysca" - + "nner.v1.OutdatedLibrary\022Q\n\022violating_res" - + "ource\030\014 \001(\01325.google.cloud.websecuritysc" - + "anner.v1.ViolatingResource\022Q\n\022vulnerable" - + "_headers\030\017 \001(\01325.google.cloud.websecurit" - + "yscanner.v1.VulnerableHeaders\022W\n\025vulnera" - + "ble_parameters\030\r \001(\01328.google.cloud.webs" - + "ecurityscanner.v1.VulnerableParameters\0224" - + "\n\003xss\030\016 \001(\0132\'.google.cloud.websecuritysc" - + "anner.v1.Xss\"Q\n\010Severity\022\030\n\024SEVERITY_UNS" - + "PECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006ME" - + "DIUM\020\003\022\007\n\003LOW\020\004:\204\001\352A\200\001\n)websecurityscann" - + "er.googleapis.com/Finding\022Sprojects/{pro" - + "ject}/scanConfigs/{scan_config}/scanRuns" - + "/{scan_run}/findings/{finding}B\200\002\n&com.g" - + "oogle.cloud.websecurityscanner.v1B\014Findi" - + "ngProtoP\001ZTgoogle.golang.org/genproto/go" - + "ogleapis/cloud/websecurityscanner/v1;web" - + "securityscanner\252\002\"Google.Cloud.WebSecuri" - + "tyScanner.V1\312\002\"Google\\Cloud\\WebSecurityS" - + "canner\\V1\352\002%Google::Cloud::WebSecuritySc" - + "anner::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1.FindingAddonProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor, - new java.lang.String[] { - "Name", - "FindingType", - "Severity", - "HttpMethod", - "FuzzedUrl", - "Body", - "Description", - "ReproductionUrl", - "FrameUrl", - "FinalUrl", - "TrackingId", - "Form", - "OutdatedLibrary", - "ViolatingResource", - "VulnerableHeaders", - "VulnerableParameters", - "Xss", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1.FindingAddonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java deleted file mode 100644 index 798dbfa5..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/finding_type_stats.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class FindingTypeStatsProto { - private FindingTypeStatsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n;google/cloud/websecurityscanner/v1/fin" - + "ding_type_stats.proto\022\"google.cloud.webs" - + "ecurityscanner.v1\"?\n\020FindingTypeStats\022\024\n" - + "\014finding_type\030\001 \001(\t\022\025\n\rfinding_count\030\002 \001" - + "(\005B\211\002\n&com.google.cloud.websecurityscann" - + "er.v1B\025FindingTypeStatsProtoP\001ZTgoogle.g" - + "olang.org/genproto/googleapis/cloud/webs" - + "ecurityscanner/v1;websecurityscanner\252\002\"G" - + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" - + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" - + ":Cloud::WebSecurityScanner::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor, - new java.lang.String[] { - "FindingType", "FindingCount", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java deleted file mode 100644 index ab191d14..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/scan_config_error.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class ScanConfigErrorProto { - private ScanConfigErrorProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n:google/cloud/websecurityscanner/v1/sca" - + "n_config_error.proto\022\"google.cloud.webse" - + "curityscanner.v1\"\351\013\n\017ScanConfigError\022F\n\004" - + "code\030\001 \001(\01628.google.cloud.websecuritysca" - + "nner.v1.ScanConfigError.Code\022\022\n\nfield_na" - + "me\030\002 \001(\t\"\371\n\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022" - + "\006\n\002OK\020\000\022\022\n\016INTERNAL_ERROR\020\001\022\037\n\033APPENGINE" - + "_API_BACKEND_ERROR\020\002\022 \n\034APPENGINE_API_NO" - + "T_ACCESSIBLE\020\003\022\"\n\036APPENGINE_DEFAULT_HOST" - + "_MISSING\020\004\022!\n\035CANNOT_USE_GOOGLE_COM_ACCO" - + "UNT\020\006\022\034\n\030CANNOT_USE_OWNER_ACCOUNT\020\007\022\035\n\031C" - + "OMPUTE_API_BACKEND_ERROR\020\010\022\036\n\032COMPUTE_AP" - + "I_NOT_ACCESSIBLE\020\t\0227\n3CUSTOM_LOGIN_URL_D" - + "OES_NOT_BELONG_TO_CURRENT_PROJECT\020\n\022\036\n\032C" - + "USTOM_LOGIN_URL_MALFORMED\020\013\0223\n/CUSTOM_LO" - + "GIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\020\014" - + "\0221\n-CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVE" - + "D_ADDRESS\020\r\0220\n,CUSTOM_LOGIN_URL_HAS_NON_" - + "ROUTABLE_IP_ADDRESS\020\016\022.\n*CUSTOM_LOGIN_UR" - + "L_HAS_UNRESERVED_IP_ADDRESS\020\017\022\027\n\023DUPLICA" - + "TE_SCAN_NAME\020\020\022\027\n\023INVALID_FIELD_VALUE\020\022\022" - + "$\n FAILED_TO_AUTHENTICATE_TO_TARGET\020\023\022\034\n" - + "\030FINDING_TYPE_UNSPECIFIED\020\024\022\035\n\031FORBIDDEN" - + "_TO_SCAN_COMPUTE\020\025\022$\n FORBIDDEN_UPDATE_T" - + "O_MANAGED_SCAN\020+\022\024\n\020MALFORMED_FILTER\020\026\022\033" - + "\n\027MALFORMED_RESOURCE_NAME\020\027\022\024\n\020PROJECT_I" - + "NACTIVE\020\030\022\022\n\016REQUIRED_FIELD\020\031\022\036\n\032RESOURC" - + "E_NAME_INCONSISTENT\020\032\022\030\n\024SCAN_ALREADY_RU" - + "NNING\020\033\022\024\n\020SCAN_NOT_RUNNING\020\034\022/\n+SEED_UR" - + "L_DOES_NOT_BELONG_TO_CURRENT_PROJECT\020\035\022\026" - + "\n\022SEED_URL_MALFORMED\020\036\022+\n\'SEED_URL_MAPPE" - + "D_TO_NON_ROUTABLE_ADDRESS\020\037\022)\n%SEED_URL_" - + "MAPPED_TO_UNRESERVED_ADDRESS\020 \022(\n$SEED_U" - + "RL_HAS_NON_ROUTABLE_IP_ADDRESS\020!\022&\n\"SEED" - + "_URL_HAS_UNRESERVED_IP_ADDRESS\020#\022\"\n\036SERV" - + "ICE_ACCOUNT_NOT_CONFIGURED\020$\022\022\n\016TOO_MANY" - + "_SCANS\020%\022\"\n\036UNABLE_TO_RESOLVE_PROJECT_IN" - + "FO\020&\022(\n$UNSUPPORTED_BLACKLIST_PATTERN_FO" - + "RMAT\020\'\022\026\n\022UNSUPPORTED_FILTER\020(\022\034\n\030UNSUPP" - + "ORTED_FINDING_TYPE\020)\022\032\n\026UNSUPPORTED_URL_" - + "SCHEME\020*\032\002\020\001B\210\002\n&com.google.cloud.websec" - + "urityscanner.v1B\024ScanConfigErrorProtoP\001Z" - + "Tgoogle.golang.org/genproto/googleapis/c" - + "loud/websecurityscanner/v1;websecuritysc" - + "anner\252\002\"Google.Cloud.WebSecurityScanner." - + "V1\312\002\"Google\\Cloud\\WebSecurityScanner\\V1\352" - + "\002%Google::Cloud::WebSecurityScanner::V1b" - + "\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor, - new java.lang.String[] { - "Code", "FieldName", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java deleted file mode 100644 index 8849902c..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java +++ /dev/null @@ -1,217 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/scan_config.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class ScanConfigProto { - private ScanConfigProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/websecurityscanner/v1/sca" - + "n_config.proto\022\"google.cloud.websecurity" - + "scanner.v1\032\037google/api/field_behavior.pr" - + "oto\032\037google/protobuf/timestamp.proto\"\231\r\n" - + "\nScanConfig\022\014\n\004name\030\001 \001(\t\022\024\n\014display_nam" - + "e\030\002 \001(\t\022\017\n\007max_qps\030\003 \001(\005\022\025\n\rstarting_url" - + "s\030\004 \003(\t\022U\n\016authentication\030\005 \001(\0132=.google" - + ".cloud.websecurityscanner.v1.ScanConfig." - + "Authentication\022L\n\nuser_agent\030\006 \001(\01628.goo" - + "gle.cloud.websecurityscanner.v1.ScanConf" - + "ig.UserAgent\022\032\n\022blacklist_patterns\030\007 \003(\t" - + "\022I\n\010schedule\030\010 \001(\01327.google.cloud.websec" - + "urityscanner.v1.ScanConfig.Schedule\022w\n!e" - + "xport_to_security_command_center\030\n \001(\0162L" - + ".google.cloud.websecurityscanner.v1.Scan" - + "Config.ExportToSecurityCommandCenter\022L\n\n" - + "risk_level\030\014 \001(\01628.google.cloud.websecur" - + "ityscanner.v1.ScanConfig.RiskLevel\022\024\n\014ma" - + "naged_scan\030\r \001(\010\022\026\n\016static_ip_scan\030\016 \001(\010" - + "\032\317\005\n\016Authentication\022e\n\016google_account\030\001 " - + "\001(\0132K.google.cloud.websecurityscanner.v1" - + ".ScanConfig.Authentication.GoogleAccount" - + "H\000\022e\n\016custom_account\030\002 \001(\0132K.google.clou" - + "d.websecurityscanner.v1.ScanConfig.Authe" - + "ntication.CustomAccountH\000\022e\n\016iap_credent" - + "ial\030\004 \001(\0132K.google.cloud.websecurityscan" - + "ner.v1.ScanConfig.Authentication.IapCred" - + "entialH\000\0323\n\rGoogleAccount\022\020\n\010username\030\001 " - + "\001(\t\022\020\n\010password\030\002 \001(\t\032F\n\rCustomAccount\022\020" - + "\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022\021\n\tlo" - + "gin_url\030\003 \001(\t\032\370\001\n\rIapCredential\022\216\001\n\035iap_" - + "test_service_account_info\030\001 \001(\0132e.google" - + ".cloud.websecurityscanner.v1.ScanConfig." - + "Authentication.IapCredential.IapTestServ" - + "iceAccountInfoH\000\032C\n\031IapTestServiceAccoun" - + "tInfo\022&\n\031target_audience_client_id\030\001 \001(\t" - + "B\003\340A\002B\021\n\017iap_credentialsB\020\n\016authenticati" - + "on\032]\n\010Schedule\0221\n\rschedule_time\030\001 \001(\0132\032." - + "google.protobuf.Timestamp\022\036\n\026interval_du" - + "ration_days\030\002 \001(\005\"`\n\tUserAgent\022\032\n\026USER_A" - + "GENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LINUX\020\001\022\022\n\016" - + "CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHONE\020\003\"<\n\tR" - + "iskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED\020\000\022\n\n\006" - + "NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecurityCom" - + "mandCenter\0221\n-EXPORT_TO_SECURITY_COMMAND" - + "_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DI" - + "SABLED\020\002B\203\002\n&com.google.cloud.websecurit" - + "yscanner.v1B\017ScanConfigProtoP\001ZTgoogle.g" - + "olang.org/genproto/googleapis/cloud/webs" - + "ecurityscanner/v1;websecurityscanner\252\002\"G" - + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" - + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" - + ":Cloud::WebSecurityScanner::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "MaxQps", - "StartingUrls", - "Authentication", - "UserAgent", - "BlacklistPatterns", - "Schedule", - "ExportToSecurityCommandCenter", - "RiskLevel", - "ManagedScan", - "StaticIpScan", - }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor, - new java.lang.String[] { - "GoogleAccount", "CustomAccount", "IapCredential", "Authentication", - }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor, - new java.lang.String[] { - "Username", "Password", - }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor, - new java.lang.String[] { - "Username", "Password", "LoginUrl", - }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor, - new java.lang.String[] { - "IapTestServiceAccountInfo", "IapCredentials", - }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor, - new java.lang.String[] { - "TargetAudienceClientId", - }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor, - new java.lang.String[] { - "ScheduleTime", "IntervalDurationDays", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java deleted file mode 100644 index 16ad1d02..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/scan_run_error_trace.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class ScanRunErrorTraceProto { - private ScanRunErrorTraceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n=google/cloud/websecurityscanner/v1/sca" - + "n_run_error_trace.proto\022\"google.cloud.we" - + "bsecurityscanner.v1\032:google/cloud/websec" - + "urityscanner/v1/scan_config_error.proto\"" - + "\215\003\n\021ScanRunErrorTrace\022H\n\004code\030\001 \001(\0162:.go" - + "ogle.cloud.websecurityscanner.v1.ScanRun" - + "ErrorTrace.Code\022N\n\021scan_config_error\030\002 \001" - + "(\01323.google.cloud.websecurityscanner.v1." - + "ScanConfigError\022#\n\033most_common_http_erro" - + "r_code\030\003 \001(\005\"\270\001\n\004Code\022\024\n\020CODE_UNSPECIFIE" - + "D\020\000\022\022\n\016INTERNAL_ERROR\020\001\022\025\n\021SCAN_CONFIG_I" - + "SSUE\020\002\022\037\n\033AUTHENTICATION_CONFIG_ISSUE\020\003\022" - + "\034\n\030TIMED_OUT_WHILE_SCANNING\020\004\022\026\n\022TOO_MAN" - + "Y_REDIRECTS\020\005\022\030\n\024TOO_MANY_HTTP_ERRORS\020\006B" - + "\212\002\n&com.google.cloud.websecurityscanner." - + "v1B\026ScanRunErrorTraceProtoP\001ZTgoogle.gol" - + "ang.org/genproto/googleapis/cloud/websec" - + "urityscanner/v1;websecurityscanner\252\002\"Goo" - + "gle.Cloud.WebSecurityScanner.V1\312\002\"Google" - + "\\Cloud\\WebSecurityScanner\\V1\352\002%Google::C" - + "loud::WebSecurityScanner::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor, - new java.lang.String[] { - "Code", "ScanConfigError", "MostCommonHttpErrorCode", - }); - com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java deleted file mode 100644 index 8294ff42..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/scan_run.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class ScanRunProto { - private ScanRunProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/websecurityscanner/v1/sca" - + "n_run.proto\022\"google.cloud.websecuritysca" - + "nner.v1\032=google/cloud/websecurityscanner" - + "/v1/scan_run_error_trace.proto\032?google/c" - + "loud/websecurityscanner/v1/scan_run_warn" - + "ing_trace.proto\032\037google/protobuf/timesta" - + "mp.proto\"\320\005\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022S\n\017ex" - + "ecution_state\030\002 \001(\0162:.google.cloud.webse" - + "curityscanner.v1.ScanRun.ExecutionState\022" - + "M\n\014result_state\030\003 \001(\01627.google.cloud.web" - + "securityscanner.v1.ScanRun.ResultState\022." - + "\n\nstart_time\030\004 \001(\0132\032.google.protobuf.Tim" - + "estamp\022,\n\010end_time\030\005 \001(\0132\032.google.protob" - + "uf.Timestamp\022\032\n\022urls_crawled_count\030\006 \001(\003" - + "\022\031\n\021urls_tested_count\030\007 \001(\003\022\033\n\023has_vulne" - + "rabilities\030\010 \001(\010\022\030\n\020progress_percent\030\t \001" - + "(\005\022J\n\013error_trace\030\n \001(\01325.google.cloud.w" - + "ebsecurityscanner.v1.ScanRunErrorTrace\022O" - + "\n\016warning_traces\030\013 \003(\01327.google.cloud.we" - + "bsecurityscanner.v1.ScanRunWarningTrace\"" - + "Y\n\016ExecutionState\022\037\n\033EXECUTION_STATE_UNS" - + "PECIFIED\020\000\022\n\n\006QUEUED\020\001\022\014\n\010SCANNING\020\002\022\014\n\010" - + "FINISHED\020\003\"O\n\013ResultState\022\034\n\030RESULT_STAT" - + "E_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020\001\022\t\n\005ERROR\020\002\022" - + "\n\n\006KILLED\020\003B\200\002\n&com.google.cloud.websecu" - + "rityscanner.v1B\014ScanRunProtoP\001ZTgoogle.g" - + "olang.org/genproto/googleapis/cloud/webs" - + "ecurityscanner/v1;websecurityscanner\252\002\"G" - + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" - + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" - + ":Cloud::WebSecurityScanner::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor, - new java.lang.String[] { - "Name", - "ExecutionState", - "ResultState", - "StartTime", - "EndTime", - "UrlsCrawledCount", - "UrlsTestedCount", - "HasVulnerabilities", - "ProgressPercent", - "ErrorTrace", - "WarningTraces", - }); - com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java deleted file mode 100644 index 76b7bee4..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class ScanRunWarningTraceProto { - private ScanRunWarningTraceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n?google/cloud/websecurityscanner/v1/sca" - + "n_run_warning_trace.proto\022\"google.cloud." - + "websecurityscanner.v1\"\351\001\n\023ScanRunWarning" - + "Trace\022J\n\004code\030\001 \001(\0162<.google.cloud.webse" - + "curityscanner.v1.ScanRunWarningTrace.Cod" - + "e\"\205\001\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\036\n\032INSU" - + "FFICIENT_CRAWL_RESULTS\020\001\022\032\n\026TOO_MANY_CRA" - + "WL_RESULTS\020\002\022\027\n\023TOO_MANY_FUZZ_TASKS\020\003\022\022\n" - + "\016BLOCKED_BY_IAP\020\004B\214\002\n&com.google.cloud.w" - + "ebsecurityscanner.v1B\030ScanRunWarningTrac" - + "eProtoP\001ZTgoogle.golang.org/genproto/goo" - + "gleapis/cloud/websecurityscanner/v1;webs" - + "ecurityscanner\252\002\"Google.Cloud.WebSecurit" - + "yScanner.V1\312\002\"Google\\Cloud\\WebSecuritySc" - + "anner\\V1\352\002%Google::Cloud::WebSecuritySca" - + "nner::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor, - new java.lang.String[] { - "Code", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java deleted file mode 100644 index 0b550064..00000000 --- a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java +++ /dev/null @@ -1,408 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class WebSecurityScannerProto { - private WebSecurityScannerProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n=google/cloud/websecurityscanner/v1/web" - + "_security_scanner.proto\022\"google.cloud.we" - + "bsecurityscanner.v1\032\034google/api/annotati" - + "ons.proto\0324google/cloud/websecurityscann" - + "er/v1/crawled_url.proto\0320google/cloud/we" - + "bsecurityscanner/v1/finding.proto\032;googl" - + "e/cloud/websecurityscanner/v1/finding_ty" - + "pe_stats.proto\0324google/cloud/websecurity" - + "scanner/v1/scan_config.proto\0321google/clo" - + "ud/websecurityscanner/v1/scan_run.proto\032" - + "\033google/protobuf/empty.proto\032 google/pro" - + "tobuf/field_mask.proto\032\027google/api/clien" - + "t.proto\"n\n\027CreateScanConfigRequest\022\016\n\006pa" - + "rent\030\001 \001(\t\022C\n\013scan_config\030\002 \001(\0132..google" - + ".cloud.websecurityscanner.v1.ScanConfig\"" - + "\'\n\027DeleteScanConfigRequest\022\014\n\004name\030\001 \001(\t" - + "\"$\n\024GetScanConfigRequest\022\014\n\004name\030\001 \001(\t\"O" - + "\n\026ListScanConfigsRequest\022\016\n\006parent\030\001 \001(\t" - + "\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"" - + "\217\001\n\027UpdateScanConfigRequest\022C\n\013scan_conf" - + "ig\030\002 \001(\0132..google.cloud.websecurityscann" - + "er.v1.ScanConfig\022/\n\013update_mask\030\003 \001(\0132\032." - + "google.protobuf.FieldMask\"x\n\027ListScanCon" - + "figsResponse\022D\n\014scan_configs\030\001 \003(\0132..goo" - + "gle.cloud.websecurityscanner.v1.ScanConf" - + "ig\022\027\n\017next_page_token\030\002 \001(\t\"#\n\023StartScan" - + "RunRequest\022\014\n\004name\030\001 \001(\t\"!\n\021GetScanRunRe" - + "quest\022\014\n\004name\030\001 \001(\t\"L\n\023ListScanRunsReque" - + "st\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021" - + "\n\tpage_size\030\003 \001(\005\"o\n\024ListScanRunsRespons" - + "e\022>\n\tscan_runs\030\001 \003(\0132+.google.cloud.webs" - + "ecurityscanner.v1.ScanRun\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"\"\n\022StopScanRunRequest\022\014\n\004name" - + "\030\001 \001(\t\"O\n\026ListCrawledUrlsRequest\022\016\n\006pare" - + "nt\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_siz" - + "e\030\003 \001(\005\"x\n\027ListCrawledUrlsResponse\022D\n\014cr" - + "awled_urls\030\001 \003(\0132..google.cloud.websecur" - + "ityscanner.v1.CrawledUrl\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\"!\n\021GetFindingRequest\022\014\n\004name\030\001" - + " \001(\t\"\\\n\023ListFindingsRequest\022\016\n\006parent\030\001 " - + "\001(\t\022\016\n\006filter\030\002 \001(\t\022\022\n\npage_token\030\003 \001(\t\022" - + "\021\n\tpage_size\030\004 \001(\005\"n\n\024ListFindingsRespon" - + "se\022=\n\010findings\030\001 \003(\0132+.google.cloud.webs" - + "ecurityscanner.v1.Finding\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"-\n\033ListFindingTypeStatsReques" - + "t\022\016\n\006parent\030\001 \001(\t\"p\n\034ListFindingTypeStat" - + "sResponse\022P\n\022finding_type_stats\030\001 \003(\01324." - + "google.cloud.websecurityscanner.v1.Findi" - + "ngTypeStats2\351\023\n\022WebSecurityScanner\022\271\001\n\020C" - + "reateScanConfig\022;.google.cloud.websecuri" - + "tyscanner.v1.CreateScanConfigRequest\032..g" - + "oogle.cloud.websecurityscanner.v1.ScanCo" - + "nfig\"8\202\323\344\223\0022\"#/v1/{parent=projects/*}/sc" - + "anConfigs:\013scan_config\022\224\001\n\020DeleteScanCon" - + "fig\022;.google.cloud.websecurityscanner.v1" - + ".DeleteScanConfigRequest\032\026.google.protob" - + "uf.Empty\"+\202\323\344\223\002%*#/v1/{name=projects/*/s" - + "canConfigs/*}\022\246\001\n\rGetScanConfig\0228.google" - + ".cloud.websecurityscanner.v1.GetScanConf" - + "igRequest\032..google.cloud.websecurityscan" - + "ner.v1.ScanConfig\"+\202\323\344\223\002%\022#/v1/{name=pro" - + "jects/*/scanConfigs/*}\022\267\001\n\017ListScanConfi" - + "gs\022:.google.cloud.websecurityscanner.v1." - + "ListScanConfigsRequest\032;.google.cloud.we" - + "bsecurityscanner.v1.ListScanConfigsRespo" - + "nse\"+\202\323\344\223\002%\022#/v1/{parent=projects/*}/sca" - + "nConfigs\022\305\001\n\020UpdateScanConfig\022;.google.c" - + "loud.websecurityscanner.v1.UpdateScanCon" - + "figRequest\032..google.cloud.websecuritysca" - + "nner.v1.ScanConfig\"D\202\323\344\223\002>2//v1/{scan_co" - + "nfig.name=projects/*/scanConfigs/*}:\013sca" - + "n_config\022\252\001\n\014StartScanRun\0227.google.cloud" - + ".websecurityscanner.v1.StartScanRunReque" - + "st\032+.google.cloud.websecurityscanner.v1." - + "ScanRun\"4\202\323\344\223\002.\")/v1/{name=projects/*/sc" - + "anConfigs/*}:start:\001*\022\250\001\n\nGetScanRun\0225.g" - + "oogle.cloud.websecurityscanner.v1.GetSca" - + "nRunRequest\032+.google.cloud.websecuritysc" - + "anner.v1.ScanRun\"6\202\323\344\223\0020\022./v1/{name=proj" - + "ects/*/scanConfigs/*/scanRuns/*}\022\271\001\n\014Lis" - + "tScanRuns\0227.google.cloud.websecurityscan" - + "ner.v1.ListScanRunsRequest\0328.google.clou" - + "d.websecurityscanner.v1.ListScanRunsResp" - + "onse\"6\202\323\344\223\0020\022./v1/{parent=projects/*/sca" - + "nConfigs/*}/scanRuns\022\262\001\n\013StopScanRun\0226.g" - + "oogle.cloud.websecurityscanner.v1.StopSc" - + "anRunRequest\032+.google.cloud.websecuritys" - + "canner.v1.ScanRun\">\202\323\344\223\0028\"3/v1/{name=pro" - + "jects/*/scanConfigs/*/scanRuns/*}:stop:\001" - + "*\022\320\001\n\017ListCrawledUrls\022:.google.cloud.web" - + "securityscanner.v1.ListCrawledUrlsReques" - + "t\032;.google.cloud.websecurityscanner.v1.L" - + "istCrawledUrlsResponse\"D\202\323\344\223\002>\022 - * Required. The parent resource name where the scan is created, which should be a - * project resource name in the format 'projects/{projectId}'. - *
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name where the scan is created, which should be a
-   * project resource name in the format 'projects/{projectId}'.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scanConfig field is set. - */ - boolean hasScanConfig(); - /** - * - * - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scanConfig. - */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig(); - /** - * - * - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder(); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java deleted file mode 100644 index 0080af33..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface DeleteScanConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be deleted. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be deleted. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java deleted file mode 100644 index 52d187d3..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class FindingAddonProto { - private FindingAddonProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n;google/cloud/websecurityscanner/v1alph" - + "a/finding_addon.proto\022\'google.cloud.webs" - + "ecurityscanner.v1alpha\"Q\n\017OutdatedLibrar" - + "y\022\024\n\014library_name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t" - + "\022\027\n\017learn_more_urls\030\003 \003(\t\"?\n\021ViolatingRe" - + "source\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resource" - + "_url\030\002 \001(\t\"/\n\024VulnerableParameters\022\027\n\017pa" - + "rameter_names\030\001 \003(\t\"\352\001\n\021VulnerableHeader" - + "s\022R\n\007headers\030\001 \003(\0132A.google.cloud.websec" - + "urityscanner.v1alpha.VulnerableHeaders.H" - + "eader\022Z\n\017missing_headers\030\002 \003(\0132A.google." - + "cloud.websecurityscanner.v1alpha.Vulnera" - + "bleHeaders.Header\032%\n\006Header\022\014\n\004name\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t\"2\n\003Xss\022\024\n\014stack_traces\030" - + "\001 \003(\t\022\025\n\rerror_message\030\002 \001(\tB\235\001\n+com.goo" - + "gle.cloud.websecurityscanner.v1alphaB\021Fi" - + "ndingAddonProtoP\001ZYgoogle.golang.org/gen" - + "proto/googleapis/cloud/websecurityscanne" - + "r/v1alpha;websecurityscannerb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor, - new java.lang.String[] { - "LibraryName", "Version", "LearnMoreUrls", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor, - new java.lang.String[] { - "ContentType", "ResourceUrl", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor, - new java.lang.String[] { - "ParameterNames", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor, - new java.lang.String[] { - "Headers", "MissingHeaders", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor = - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor, - new java.lang.String[] { - "Name", "Value", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor, - new java.lang.String[] { - "StackTraces", "ErrorMessage", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java deleted file mode 100644 index ddc6f293..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/finding.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class FindingProto { - private FindingProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n5google/cloud/websecurityscanner/v1alph" - + "a/finding.proto\022\'google.cloud.websecurit" - + "yscanner.v1alpha\032\031google/api/resource.pr" - + "oto\032;google/cloud/websecurityscanner/v1a" - + "lpha/finding_addon.proto\"\351\010\n\007Finding\022\014\n\004" - + "name\030\001 \001(\t\022R\n\014finding_type\030\002 \001(\0162<.googl" - + "e.cloud.websecurityscanner.v1alpha.Findi" - + "ng.FindingType\022\023\n\013http_method\030\003 \001(\t\022\022\n\nf" - + "uzzed_url\030\004 \001(\t\022\014\n\004body\030\005 \001(\t\022\023\n\013descrip" - + "tion\030\006 \001(\t\022\030\n\020reproduction_url\030\007 \001(\t\022\021\n\t" - + "frame_url\030\010 \001(\t\022\021\n\tfinal_url\030\t \001(\t\022\023\n\013tr" - + "acking_id\030\n \001(\t\022R\n\020outdated_library\030\013 \001(" - + "\01328.google.cloud.websecurityscanner.v1al" - + "pha.OutdatedLibrary\022V\n\022violating_resourc" - + "e\030\014 \001(\0132:.google.cloud.websecurityscanne" - + "r.v1alpha.ViolatingResource\022V\n\022vulnerabl" - + "e_headers\030\017 \001(\0132:.google.cloud.websecuri" - + "tyscanner.v1alpha.VulnerableHeaders\022\\\n\025v" - + "ulnerable_parameters\030\r \001(\0132=.google.clou" - + "d.websecurityscanner.v1alpha.VulnerableP" - + "arameters\0229\n\003xss\030\016 \001(\0132,.google.cloud.we" - + "bsecurityscanner.v1alpha.Xss\"\266\002\n\013Finding" - + "Type\022\034\n\030FINDING_TYPE_UNSPECIFIED\020\000\022\021\n\rMI" - + "XED_CONTENT\020\001\022\024\n\020OUTDATED_LIBRARY\020\002\022\021\n\rR" - + "OSETTA_FLASH\020\005\022\020\n\014XSS_CALLBACK\020\003\022\r\n\tXSS_" - + "ERROR\020\004\022\027\n\023CLEAR_TEXT_PASSWORD\020\006\022\030\n\024INVA" - + "LID_CONTENT_TYPE\020\007\022\030\n\024XSS_ANGULAR_CALLBA" - + "CK\020\010\022\022\n\016INVALID_HEADER\020\t\022#\n\037MISSPELLED_S" - + "ECURITY_HEADER_NAME\020\n\022&\n\"MISMATCHING_SEC" - + "URITY_HEADER_VALUES\020\013:\204\001\352A\200\001\n)websecurit" - + "yscanner.googleapis.com/Finding\022Sproject" - + "s/{project}/scanConfigs/{scan_config}/sc" - + "anRuns/{scan_run}/findings/{finding}B\230\001\n" - + "+com.google.cloud.websecurityscanner.v1a" - + "lphaB\014FindingProtoP\001ZYgoogle.golang.org/" - + "genproto/googleapis/cloud/websecuritysca" - + "nner/v1alpha;websecurityscannerb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor, - new java.lang.String[] { - "Name", - "FindingType", - "HttpMethod", - "FuzzedUrl", - "Body", - "Description", - "ReproductionUrl", - "FrameUrl", - "FinalUrl", - "TrackingId", - "OutdatedLibrary", - "ViolatingResource", - "VulnerableHeaders", - "VulnerableParameters", - "Xss", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java deleted file mode 100644 index a83473ed..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class FindingTypeStatsProto { - private FindingTypeStatsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n@google/cloud/websecurityscanner/v1alph" - + "a/finding_type_stats.proto\022\'google.cloud" - + ".websecurityscanner.v1alpha\0325google/clou" - + "d/websecurityscanner/v1alpha/finding.pro" - + "to\"}\n\020FindingTypeStats\022R\n\014finding_type\030\001" - + " \001(\0162<.google.cloud.websecurityscanner.v" - + "1alpha.Finding.FindingType\022\025\n\rfinding_co" - + "unt\030\002 \001(\005B\241\001\n+com.google.cloud.websecuri" - + "tyscanner.v1alphaB\025FindingTypeStatsProto" - + "P\001ZYgoogle.golang.org/genproto/googleapi" - + "s/cloud/websecurityscanner/v1alpha;webse" - + "curityscannerb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor, - new java.lang.String[] { - "FindingType", "FindingCount", - }); - com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java deleted file mode 100644 index 271e5d3a..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface GetFindingRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the Finding to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the Finding to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java deleted file mode 100644 index d2ac4c67..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface GetScanConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be returned. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be returned. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java deleted file mode 100644 index aba0542a..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface GetScanRunRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanRun to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanRun to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java deleted file mode 100644 index c7eede2a..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface ListFindingTypeStatsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name, which should be a scan run resource name in the
-   * format
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name, which should be a scan run resource name in the
-   * format
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java deleted file mode 100644 index 5a2ffbfd..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface ListFindingTypeStatsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of FindingTypeStats returned.
-   * 
- * - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * - */ - java.util.List - getFindingTypeStatsList(); - /** - * - * - *
-   * The list of FindingTypeStats returned.
-   * 
- * - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * - */ - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats(int index); - /** - * - * - *
-   * The list of FindingTypeStats returned.
-   * 
- * - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * - */ - int getFindingTypeStatsCount(); - /** - * - * - *
-   * The list of FindingTypeStats returned.
-   * 
- * - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * - */ - java.util.List - getFindingTypeStatsOrBuilderList(); - /** - * - * - *
-   * The list of FindingTypeStats returned.
-   * 
- * - * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - * - */ - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder - getFindingTypeStatsOrBuilder(int index); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java deleted file mode 100644 index 3a47353f..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/scan_config.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class ScanConfigProto { - private ScanConfigProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/websecurityscanner/v1alph" - + "a/scan_config.proto\022\'google.cloud.websec" - + "urityscanner.v1alpha\032\037google/api/field_b" - + "ehavior.proto\032\031google/api/resource.proto" - + "\0326google/cloud/websecurityscanner/v1alph" - + "a/scan_run.proto\032\037google/protobuf/timest" - + "amp.proto\"\261\n\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\031" - + "\n\014display_name\030\002 \001(\tB\003\340A\002\022\017\n\007max_qps\030\003 \001" - + "(\005\022\032\n\rstarting_urls\030\004 \003(\tB\003\340A\002\022Z\n\016authen" - + "tication\030\005 \001(\0132B.google.cloud.websecurit" - + "yscanner.v1alpha.ScanConfig.Authenticati" - + "on\022Q\n\nuser_agent\030\006 \001(\0162=.google.cloud.we" - + "bsecurityscanner.v1alpha.ScanConfig.User" - + "Agent\022\032\n\022blacklist_patterns\030\007 \003(\t\022N\n\010sch" - + "edule\030\010 \001(\0132<.google.cloud.websecuritysc" - + "anner.v1alpha.ScanConfig.Schedule\022\\\n\020tar" - + "get_platforms\030\t \003(\0162B.google.cloud.webse" - + "curityscanner.v1alpha.ScanConfig.TargetP" - + "latform\022D\n\nlatest_run\030\013 \001(\01320.google.clo" - + "ud.websecurityscanner.v1alpha.ScanRun\032\226\003" - + "\n\016Authentication\022j\n\016google_account\030\001 \001(\013" - + "2P.google.cloud.websecurityscanner.v1alp" - + "ha.ScanConfig.Authentication.GoogleAccou" - + "ntH\000\022j\n\016custom_account\030\002 \001(\0132P.google.cl" - + "oud.websecurityscanner.v1alpha.ScanConfi" - + "g.Authentication.CustomAccountH\000\032@\n\rGoog" - + "leAccount\022\025\n\010username\030\001 \001(\tB\003\340A\002\022\030\n\010pass" - + "word\030\002 \001(\tB\006\340A\002\340A\004\032X\n\rCustomAccount\022\025\n\010u" - + "sername\030\001 \001(\tB\003\340A\002\022\030\n\010password\030\002 \001(\tB\006\340A" - + "\002\340A\004\022\026\n\tlogin_url\030\003 \001(\tB\003\340A\002B\020\n\016authenti" - + "cation\032b\n\010Schedule\0221\n\rschedule_time\030\001 \001(" - + "\0132\032.google.protobuf.Timestamp\022#\n\026interva" - + "l_duration_days\030\002 \001(\005B\003\340A\002\"`\n\tUserAgent\022" - + "\032\n\026USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LI" - + "NUX\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHO" - + "NE\020\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFOR" - + "M_UNSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMPU" - + "TE\020\002:_\352A\\\n,websecurityscanner.googleapis" - + ".com/ScanConfig\022,projects/{project}/scan" - + "Configs/{scan_config}B\233\001\n+com.google.clo" - + "ud.websecurityscanner.v1alphaB\017ScanConfi" - + "gProtoP\001ZYgoogle.golang.org/genproto/goo" - + "gleapis/cloud/websecurityscanner/v1alpha" - + ";websecurityscannerb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "MaxQps", - "StartingUrls", - "Authentication", - "UserAgent", - "BlacklistPatterns", - "Schedule", - "TargetPlatforms", - "LatestRun", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor = - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor, - new java.lang.String[] { - "GoogleAccount", "CustomAccount", "Authentication", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor, - new java.lang.String[] { - "Username", "Password", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor, - new java.lang.String[] { - "Username", "Password", "LoginUrl", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor = - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor, - new java.lang.String[] { - "ScheduleTime", "IntervalDurationDays", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java deleted file mode 100644 index f4f750e5..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/scan_run.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class ScanRunProto { - private ScanRunProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/websecurityscanner/v1alph" - + "a/scan_run.proto\022\'google.cloud.websecuri" - + "tyscanner.v1alpha\032\031google/api/resource.p" - + "roto\032\037google/protobuf/timestamp.proto\"\257\005" - + "\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022X\n\017execution_sta" - + "te\030\002 \001(\0162?.google.cloud.websecurityscann" - + "er.v1alpha.ScanRun.ExecutionState\022R\n\014res" - + "ult_state\030\003 \001(\0162<.google.cloud.websecuri" - + "tyscanner.v1alpha.ScanRun.ResultState\022.\n" - + "\nstart_time\030\004 \001(\0132\032.google.protobuf.Time" - + "stamp\022,\n\010end_time\030\005 \001(\0132\032.google.protobu" - + "f.Timestamp\022\032\n\022urls_crawled_count\030\006 \001(\003\022" - + "\031\n\021urls_tested_count\030\007 \001(\003\022\033\n\023has_vulner" - + "abilities\030\010 \001(\010\022\030\n\020progress_percent\030\t \001(" - + "\005\"Y\n\016ExecutionState\022\037\n\033EXECUTION_STATE_U" - + "NSPECIFIED\020\000\022\n\n\006QUEUED\020\001\022\014\n\010SCANNING\020\002\022\014" - + "\n\010FINISHED\020\003\"O\n\013ResultState\022\034\n\030RESULT_ST" - + "ATE_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020\001\022\t\n\005ERROR\020" - + "\002\022\n\n\006KILLED\020\003:p\352Am\n)websecurityscanner.g" - + "oogleapis.com/ScanRun\022@projects/{project" - + "}/scanConfigs/{scan_config}/scanRuns/{sc" - + "an_run}B\230\001\n+com.google.cloud.websecurity" - + "scanner.v1alphaB\014ScanRunProtoP\001ZYgoogle." - + "golang.org/genproto/googleapis/cloud/web" - + "securityscanner/v1alpha;websecurityscann" - + "erb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor, - new java.lang.String[] { - "Name", - "ExecutionState", - "ResultState", - "StartTime", - "EndTime", - "UrlsCrawledCount", - "UrlsTestedCount", - "HasVulnerabilities", - "ProgressPercent", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java deleted file mode 100644 index f8a9dbe3..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface StartScanRunRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be used. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be used. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java deleted file mode 100644 index d74236cc..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface StopScanRunRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanRun to be stopped. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanRun to be stopped. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java deleted file mode 100644 index be5e10e7..00000000 --- a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java +++ /dev/null @@ -1,440 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class WebSecurityScannerProto { - private WebSecurityScannerProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nBgoogle/cloud/websecurityscanner/v1alph" - + "a/web_security_scanner.proto\022\'google.clo" - + "ud.websecurityscanner.v1alpha\032\034google/ap" - + "i/annotations.proto\032\027google/api/client.p" - + "roto\032\037google/api/field_behavior.proto\032\031g" - + "oogle/api/resource.proto\0329google/cloud/w" - + "ebsecurityscanner/v1alpha/crawled_url.pr" - + "oto\0325google/cloud/websecurityscanner/v1a" - + "lpha/finding.proto\032@google/cloud/websecu" - + "rityscanner/v1alpha/finding_type_stats.p" - + "roto\0329google/cloud/websecurityscanner/v1" - + "alpha/scan_config.proto\0326google/cloud/we" - + "bsecurityscanner/v1alpha/scan_run.proto\032" - + "\033google/protobuf/empty.proto\032 google/pro" - + "tobuf/field_mask.proto\"\255\001\n\027CreateScanCon" - + "figRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+clou" - + "dresourcemanager.googleapis.com/Project\022" - + "M\n\013scan_config\030\002 \001(\01323.google.cloud.webs" - + "ecurityscanner.v1alpha.ScanConfigB\003\340A\002\"]" - + "\n\027DeleteScanConfigRequest\022B\n\004name\030\001 \001(\tB" - + "4\340A\002\372A.\n,websecurityscanner.googleapis.c" - + "om/ScanConfig\"Z\n\024GetScanConfigRequest\022B\n" - + "\004name\030\001 \001(\tB4\340A\002\372A.\n,websecurityscanner." - + "googleapis.com/ScanConfig\"\204\001\n\026ListScanCo" - + "nfigsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cl" - + "oudresourcemanager.googleapis.com/Projec" - + "t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" - + "\"\236\001\n\027UpdateScanConfigRequest\022M\n\013scan_con" - + "fig\030\002 \001(\01323.google.cloud.websecurityscan" - + "ner.v1alpha.ScanConfigB\003\340A\002\0224\n\013update_ma" - + "sk\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" - + "\002\"}\n\027ListScanConfigsResponse\022I\n\014scan_con" - + "figs\030\001 \003(\01323.google.cloud.websecuritysca" - + "nner.v1alpha.ScanConfig\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\"Y\n\023StartScanRunRequest\022B\n\004name\030" - + "\001 \001(\tB4\340A\002\372A.\n,websecurityscanner.google" - + "apis.com/ScanConfig\"T\n\021GetScanRunRequest" - + "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecurityscann" - + "er.googleapis.com/ScanRun\"\202\001\n\023ListScanRu" - + "nsRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,webse" - + "curityscanner.googleapis.com/ScanConfig\022" - + "\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"t" - + "\n\024ListScanRunsResponse\022C\n\tscan_runs\030\001 \003(" - + "\01320.google.cloud.websecurityscanner.v1al" - + "pha.ScanRun\022\027\n\017next_page_token\030\002 \001(\t\"U\n\022" - + "StopScanRunRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+" - + "\n)websecurityscanner.googleapis.com/Scan" - + "Run\"\202\001\n\026ListCrawledUrlsRequest\022A\n\006parent" - + "\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner.googl" - + "eapis.com/ScanRun\022\022\n\npage_token\030\002 \001(\t\022\021\n" - + "\tpage_size\030\003 \001(\005\"}\n\027ListCrawledUrlsRespo" - + "nse\022I\n\014crawled_urls\030\001 \003(\01323.google.cloud" - + ".websecurityscanner.v1alpha.CrawledUrl\022\027" - + "\n\017next_page_token\030\002 \001(\t\"T\n\021GetFindingReq" - + "uest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecuritys" - + "canner.googleapis.com/Finding\"\224\001\n\023ListFi" - + "ndingsRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)w" - + "ebsecurityscanner.googleapis.com/ScanRun" - + "\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\022\n\npage_token\030\003 \001(" - + "\t\022\021\n\tpage_size\030\004 \001(\005\"s\n\024ListFindingsResp" - + "onse\022B\n\010findings\030\001 \003(\01320.google.cloud.we" - + "bsecurityscanner.v1alpha.Finding\022\027\n\017next" - + "_page_token\030\002 \001(\t\"`\n\033ListFindingTypeStat" - + "sRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)websec" - + "urityscanner.googleapis.com/ScanRun\"u\n\034L" - + "istFindingTypeStatsResponse\022U\n\022finding_t" - + "ype_stats\030\001 \003(\01329.google.cloud.websecuri" - + "tyscanner.v1alpha.FindingTypeStats2\264\026\n\022W" - + "ebSecurityScanner\022\335\001\n\020CreateScanConfig\022@" - + ".google.cloud.websecurityscanner.v1alpha" - + ".CreateScanConfigRequest\0323.google.cloud." - + "websecurityscanner.v1alpha.ScanConfig\"R\202" - + "\323\344\223\0027\"(/v1alpha/{parent=projects/*}/scan" - + "Configs:\013scan_config\332A\022parent,scan_confi" - + "g\022\245\001\n\020DeleteScanConfig\022@.google.cloud.we" - + "bsecurityscanner.v1alpha.DeleteScanConfi" - + "gRequest\032\026.google.protobuf.Empty\"7\202\323\344\223\002*" - + "*(/v1alpha/{name=projects/*/scanConfigs/" - + "*}\332A\004name\022\274\001\n\rGetScanConfig\022=.google.clo" - + "ud.websecurityscanner.v1alpha.GetScanCon" - + "figRequest\0323.google.cloud.websecuritysca" - + "nner.v1alpha.ScanConfig\"7\202\323\344\223\002*\022(/v1alph" - + "a/{name=projects/*/scanConfigs/*}\332A\004name" - + "\022\317\001\n\017ListScanConfigs\022?.google.cloud.webs" - + "ecurityscanner.v1alpha.ListScanConfigsRe" - + "quest\032@.google.cloud.websecurityscanner." - + "v1alpha.ListScanConfigsResponse\"9\202\323\344\223\002*\022" - + "(/v1alpha/{parent=projects/*}/scanConfig" - + "s\332A\006parent\022\356\001\n\020UpdateScanConfig\022@.google" - + ".cloud.websecurityscanner.v1alpha.Update" - + "ScanConfigRequest\0323.google.cloud.websecu" - + "rityscanner.v1alpha.ScanConfig\"c\202\323\344\223\002C24" - + "/v1alpha/{scan_config.name=projects/*/sc" - + "anConfigs/*}:\013scan_config\332A\027scan_config," - + "update_mask\022\300\001\n\014StartScanRun\022<.google.cl" - + "oud.websecurityscanner.v1alpha.StartScan" - + "RunRequest\0320.google.cloud.websecuritysca" - + "nner.v1alpha.ScanRun\"@\202\323\344\223\0023\"./v1alpha/{" - + "name=projects/*/scanConfigs/*}:start:\001*\332" - + "A\004name\022\276\001\n\nGetScanRun\022:.google.cloud.web" - + "securityscanner.v1alpha.GetScanRunReques" - + "t\0320.google.cloud.websecurityscanner.v1al" - + "pha.ScanRun\"B\202\323\344\223\0025\0223/v1alpha/{name=proj" - + "ects/*/scanConfigs/*/scanRuns/*}\332A\004name\022" - + "\321\001\n\014ListScanRuns\022<.google.cloud.websecur" - + "ityscanner.v1alpha.ListScanRunsRequest\032=" - + ".google.cloud.websecurityscanner.v1alpha" - + ".ListScanRunsResponse\"D\202\323\344\223\0025\0223/v1alpha/" - + "{parent=projects/*/scanConfigs/*}/scanRu" - + "ns\332A\006parent\022\310\001\n\013StopScanRun\022;.google.clo" - + "ud.websecurityscanner.v1alpha.StopScanRu" - + "nRequest\0320.google.cloud.websecurityscann" - + "er.v1alpha.ScanRun\"J\202\323\344\223\002=\"8/v1alpha/{na" - + "me=projects/*/scanConfigs/*/scanRuns/*}:" - + "stop:\001*\332A\004name\022\350\001\n\017ListCrawledUrls\022?.goo" - + "gle.cloud.websecurityscanner.v1alpha.Lis" - + "tCrawledUrlsRequest\032@.google.cloud.webse" - + "curityscanner.v1alpha.ListCrawledUrlsRes" - + "ponse\"R\202\323\344\223\002C\022A/v1alpha/{parent=projects" - + "/*/scanConfigs/*/scanRuns/*}/crawledUrls" - + "\332A\006parent\022\311\001\n\nGetFinding\022:.google.cloud." - + "websecurityscanner.v1alpha.GetFindingReq" - + "uest\0320.google.cloud.websecurityscanner.v" - + "1alpha.Finding\"M\202\323\344\223\002@\022>/v1alpha/{name=p" - + "rojects/*/scanConfigs/*/scanRuns/*/findi" - + "ngs/*}\332A\004name\022\343\001\n\014ListFindings\022<.google." - + "cloud.websecurityscanner.v1alpha.ListFin" - + "dingsRequest\032=.google.cloud.websecuritys" - + "canner.v1alpha.ListFindingsResponse\"V\202\323\344" - + "\223\002@\022>/v1alpha/{parent=projects/*/scanCon" - + "figs/*/scanRuns/*}/findings\332A\rparent,fil" - + "ter\022\374\001\n\024ListFindingTypeStats\022D.google.cl" - + "oud.websecurityscanner.v1alpha.ListFindi" - + "ngTypeStatsRequest\032E.google.cloud.websec" - + "urityscanner.v1alpha.ListFindingTypeStat" - + "sResponse\"W\202\323\344\223\002H\022F/v1alpha/{parent=proj" - + "ects/*/scanConfigs/*/scanRuns/*}/finding" - + "TypeStats\332A\006parent\032U\312A!websecurityscanne" - + "r.googleapis.com\322A.https://www.googleapi" - + "s.com/auth/cloud-platformB\243\001\n+com.google" - + ".cloud.websecurityscanner.v1alphaB\027WebSe" - + "curityScannerProtoP\001ZYgoogle.golang.org/" - + "genproto/googleapis/cloud/websecuritysca" - + "nner/v1alpha;websecurityscannerb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor, - new java.lang.String[] { - "Parent", "ScanConfig", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor, - new java.lang.String[] { - "ScanConfig", "UpdateMask", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor, - new java.lang.String[] { - "ScanConfigs", "NextPageToken", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor, - new java.lang.String[] { - "ScanRuns", "NextPageToken", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor, - new java.lang.String[] { - "CrawledUrls", "NextPageToken", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageToken", "PageSize", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor, - new java.lang.String[] { - "Findings", "NextPageToken", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor, - new java.lang.String[] { - "Parent", - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor, - new java.lang.String[] { - "FindingTypeStats", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java deleted file mode 100644 index 038d2c8a..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/crawled_url.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class CrawledUrlProto { - private CrawledUrlProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/websecurityscanner/v1beta" - + "/crawled_url.proto\022&google.cloud.websecu" - + "rityscanner.v1beta\"<\n\nCrawledUrl\022\023\n\013http" - + "_method\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001(\t" - + "B\227\002\n*com.google.cloud.websecurityscanner" - + ".v1betaB\017CrawledUrlProtoP\001ZXgoogle.golan" - + "g.org/genproto/googleapis/cloud/websecur" - + "ityscanner/v1beta;websecurityscanner\252\002&G" - + "oogle.Cloud.WebSecurityScanner.V1Beta\312\002&" - + "Google\\Cloud\\WebSecurityScanner\\V1beta\352\002" - + ")Google::Cloud::WebSecurityScanner::V1be" - + "tab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor, - new java.lang.String[] { - "HttpMethod", "Url", "Body", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java deleted file mode 100644 index ec458d19..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface CreateScanConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name where the scan is created, which should be a
-   * project resource name in the format 'projects/{projectId}'.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name where the scan is created, which should be a
-   * project resource name in the format 'projects/{projectId}'.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scanConfig field is set. - */ - boolean hasScanConfig(); - /** - * - * - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scanConfig. - */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig(); - /** - * - * - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder(); -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java deleted file mode 100644 index 622e1053..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface DeleteScanConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be deleted. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be deleted. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java deleted file mode 100644 index fe2f22f0..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/finding_addon.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class FindingAddonProto { - private FindingAddonProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n:google/cloud/websecurityscanner/v1beta" - + "/finding_addon.proto\022&google.cloud.webse" - + "curityscanner.v1beta\"*\n\004Form\022\022\n\naction_u" - + "ri\030\001 \001(\t\022\016\n\006fields\030\002 \003(\t\"Q\n\017OutdatedLibr" - + "ary\022\024\n\014library_name\030\001 \001(\t\022\017\n\007version\030\002 \001" - + "(\t\022\027\n\017learn_more_urls\030\003 \003(\t\"?\n\021Violating" - + "Resource\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resour" - + "ce_url\030\002 \001(\t\"/\n\024VulnerableParameters\022\027\n\017" - + "parameter_names\030\001 \003(\t\"\350\001\n\021VulnerableHead" - + "ers\022Q\n\007headers\030\001 \003(\0132@.google.cloud.webs" - + "ecurityscanner.v1beta.VulnerableHeaders." - + "Header\022Y\n\017missing_headers\030\002 \003(\0132@.google" - + ".cloud.websecurityscanner.v1beta.Vulnera" - + "bleHeaders.Header\032%\n\006Header\022\014\n\004name\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t\"2\n\003Xss\022\024\n\014stack_traces\030" - + "\001 \003(\t\022\025\n\rerror_message\030\002 \001(\tB\231\002\n*com.goo" - + "gle.cloud.websecurityscanner.v1betaB\021Fin" - + "dingAddonProtoP\001ZXgoogle.golang.org/genp" - + "roto/googleapis/cloud/websecurityscanner" - + "/v1beta;websecurityscanner\252\002&Google.Clou" - + "d.WebSecurityScanner.V1Beta\312\002&Google\\Clo" - + "ud\\WebSecurityScanner\\V1beta\352\002)Google::C" - + "loud::WebSecurityScanner::V1betab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor, - new java.lang.String[] { - "ActionUri", "Fields", - }); - internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor, - new java.lang.String[] { - "LibraryName", "Version", "LearnMoreUrls", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor, - new java.lang.String[] { - "ContentType", "ResourceUrl", - }); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor, - new java.lang.String[] { - "ParameterNames", - }); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor, - new java.lang.String[] { - "Headers", "MissingHeaders", - }); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor = - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor, - new java.lang.String[] { - "Name", "Value", - }); - internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor, - new java.lang.String[] { - "StackTraces", "ErrorMessage", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java deleted file mode 100644 index 84a2e452..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/finding.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class FindingProto { - private FindingProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/websecurityscanner/v1beta" - + "/finding.proto\022&google.cloud.websecurity" - + "scanner.v1beta\032\031google/api/resource.prot" - + "o\032:google/cloud/websecurityscanner/v1bet" - + "a/finding_addon.proto\"\251\006\n\007Finding\022\014\n\004nam" - + "e\030\001 \001(\t\022\024\n\014finding_type\030\002 \001(\t\022\023\n\013http_me" - + "thod\030\003 \001(\t\022\022\n\nfuzzed_url\030\004 \001(\t\022\014\n\004body\030\005" - + " \001(\t\022\023\n\013description\030\006 \001(\t\022\030\n\020reproductio" - + "n_url\030\007 \001(\t\022\021\n\tframe_url\030\010 \001(\t\022\021\n\tfinal_" - + "url\030\t \001(\t\022\023\n\013tracking_id\030\n \001(\t\022:\n\004form\030\020" - + " \001(\0132,.google.cloud.websecurityscanner.v" - + "1beta.Form\022Q\n\020outdated_library\030\013 \001(\01327.g" - + "oogle.cloud.websecurityscanner.v1beta.Ou" - + "tdatedLibrary\022U\n\022violating_resource\030\014 \001(" - + "\01329.google.cloud.websecurityscanner.v1be" - + "ta.ViolatingResource\022U\n\022vulnerable_heade" - + "rs\030\017 \001(\01329.google.cloud.websecurityscann" - + "er.v1beta.VulnerableHeaders\022[\n\025vulnerabl" - + "e_parameters\030\r \001(\0132<.google.cloud.websec" - + "urityscanner.v1beta.VulnerableParameters" - + "\0228\n\003xss\030\016 \001(\0132+.google.cloud.websecurity" - + "scanner.v1beta.Xss:\204\001\352A\200\001\n)websecuritysc" - + "anner.googleapis.com/Finding\022Sprojects/{" - + "project}/scanConfigs/{scan_config}/scanR" - + "uns/{scan_run}/findings/{finding}B\224\002\n*co" - + "m.google.cloud.websecurityscanner.v1beta" - + "B\014FindingProtoP\001ZXgoogle.golang.org/genp" - + "roto/googleapis/cloud/websecurityscanner" - + "/v1beta;websecurityscanner\252\002&Google.Clou" - + "d.WebSecurityScanner.V1Beta\312\002&Google\\Clo" - + "ud\\WebSecurityScanner\\V1beta\352\002)Google::C" - + "loud::WebSecurityScanner::V1betab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor, - new java.lang.String[] { - "Name", - "FindingType", - "HttpMethod", - "FuzzedUrl", - "Body", - "Description", - "ReproductionUrl", - "FrameUrl", - "FinalUrl", - "TrackingId", - "Form", - "OutdatedLibrary", - "ViolatingResource", - "VulnerableHeaders", - "VulnerableParameters", - "Xss", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java deleted file mode 100644 index 5b01de6c..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/finding_type_stats.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class FindingTypeStatsProto { - private FindingTypeStatsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n?google/cloud/websecurityscanner/v1beta" - + "/finding_type_stats.proto\022&google.cloud." - + "websecurityscanner.v1beta\"?\n\020FindingType" - + "Stats\022\024\n\014finding_type\030\001 \001(\t\022\025\n\rfinding_c" - + "ount\030\002 \001(\005B\235\002\n*com.google.cloud.websecur" - + "ityscanner.v1betaB\025FindingTypeStatsProto" - + "P\001ZXgoogle.golang.org/genproto/googleapi" - + "s/cloud/websecurityscanner/v1beta;websec" - + "urityscanner\252\002&Google.Cloud.WebSecurityS" - + "canner.V1Beta\312\002&Google\\Cloud\\WebSecurity" - + "Scanner\\V1beta\352\002)Google::Cloud::WebSecur" - + "ityScanner::V1betab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor, - new java.lang.String[] { - "FindingType", "FindingCount", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java deleted file mode 100644 index a6d708c8..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface GetFindingRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetFindingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the Finding to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the Finding to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java deleted file mode 100644 index 44926ab6..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface GetScanConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be returned. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be returned. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java deleted file mode 100644 index cc76d3b0..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface GetScanRunRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanRun to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanRun to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java deleted file mode 100644 index 5057639f..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface ListFindingTypeStatsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent resource name, which should be a scan run resource name in the
-   * format
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource name, which should be a scan run resource name in the
-   * format
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java deleted file mode 100644 index a13075ef..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/scan_config_error.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class ScanConfigErrorProto { - private ScanConfigErrorProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n>google/cloud/websecurityscanner/v1beta" - + "/scan_config_error.proto\022&google.cloud.w" - + "ebsecurityscanner.v1beta\"\355\013\n\017ScanConfigE" - + "rror\022J\n\004code\030\001 \001(\0162<.google.cloud.websec" - + "urityscanner.v1beta.ScanConfigError.Code" - + "\022\022\n\nfield_name\030\002 \001(\t\"\371\n\n\004Code\022\024\n\020CODE_UN" - + "SPECIFIED\020\000\022\006\n\002OK\020\000\022\022\n\016INTERNAL_ERROR\020\001\022" - + "\037\n\033APPENGINE_API_BACKEND_ERROR\020\002\022 \n\034APPE" - + "NGINE_API_NOT_ACCESSIBLE\020\003\022\"\n\036APPENGINE_" - + "DEFAULT_HOST_MISSING\020\004\022!\n\035CANNOT_USE_GOO" - + "GLE_COM_ACCOUNT\020\006\022\034\n\030CANNOT_USE_OWNER_AC" - + "COUNT\020\007\022\035\n\031COMPUTE_API_BACKEND_ERROR\020\010\022\036" - + "\n\032COMPUTE_API_NOT_ACCESSIBLE\020\t\0227\n3CUSTOM" - + "_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PR" - + "OJECT\020\n\022\036\n\032CUSTOM_LOGIN_URL_MALFORMED\020\013\022" - + "3\n/CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTAB" - + "LE_ADDRESS\020\014\0221\n-CUSTOM_LOGIN_URL_MAPPED_" - + "TO_UNRESERVED_ADDRESS\020\r\0220\n,CUSTOM_LOGIN_" - + "URL_HAS_NON_ROUTABLE_IP_ADDRESS\020\016\022.\n*CUS" - + "TOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS\020" - + "\017\022\027\n\023DUPLICATE_SCAN_NAME\020\020\022\027\n\023INVALID_FI" - + "ELD_VALUE\020\022\022$\n FAILED_TO_AUTHENTICATE_TO" - + "_TARGET\020\023\022\034\n\030FINDING_TYPE_UNSPECIFIED\020\024\022" - + "\035\n\031FORBIDDEN_TO_SCAN_COMPUTE\020\025\022$\n FORBID" - + "DEN_UPDATE_TO_MANAGED_SCAN\020+\022\024\n\020MALFORME" - + "D_FILTER\020\026\022\033\n\027MALFORMED_RESOURCE_NAME\020\027\022" - + "\024\n\020PROJECT_INACTIVE\020\030\022\022\n\016REQUIRED_FIELD\020" - + "\031\022\036\n\032RESOURCE_NAME_INCONSISTENT\020\032\022\030\n\024SCA" - + "N_ALREADY_RUNNING\020\033\022\024\n\020SCAN_NOT_RUNNING\020" - + "\034\022/\n+SEED_URL_DOES_NOT_BELONG_TO_CURRENT" - + "_PROJECT\020\035\022\026\n\022SEED_URL_MALFORMED\020\036\022+\n\'SE" - + "ED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\020\037\022" - + ")\n%SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS" - + "\020 \022(\n$SEED_URL_HAS_NON_ROUTABLE_IP_ADDRE" - + "SS\020!\022&\n\"SEED_URL_HAS_UNRESERVED_IP_ADDRE" - + "SS\020#\022\"\n\036SERVICE_ACCOUNT_NOT_CONFIGURED\020$" - + "\022\022\n\016TOO_MANY_SCANS\020%\022\"\n\036UNABLE_TO_RESOLV" - + "E_PROJECT_INFO\020&\022(\n$UNSUPPORTED_BLACKLIS" - + "T_PATTERN_FORMAT\020\'\022\026\n\022UNSUPPORTED_FILTER" - + "\020(\022\034\n\030UNSUPPORTED_FINDING_TYPE\020)\022\032\n\026UNSU" - + "PPORTED_URL_SCHEME\020*\032\002\020\001B\234\002\n*com.google." - + "cloud.websecurityscanner.v1betaB\024ScanCon" - + "figErrorProtoP\001ZXgoogle.golang.org/genpr" - + "oto/googleapis/cloud/websecurityscanner/" - + "v1beta;websecurityscanner\252\002&Google.Cloud" - + ".WebSecurityScanner.V1Beta\312\002&Google\\Clou" - + "d\\WebSecurityScanner\\V1beta\352\002)Google::Cl" - + "oud::WebSecurityScanner::V1betab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor, - new java.lang.String[] { - "Code", "FieldName", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java deleted file mode 100644 index f60d9ba1..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/scan_config.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class ScanConfigProto { - private ScanConfigProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/websecurityscanner/v1beta" - + "/scan_config.proto\022&google.cloud.websecu" - + "rityscanner.v1beta\032\037google/api/field_beh" - + "avior.proto\032\031google/api/resource.proto\0325" - + "google/cloud/websecurityscanner/v1beta/s" - + "can_run.proto\032\037google/protobuf/timestamp" - + ".proto\"\246\r\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\031\n\014d" - + "isplay_name\030\002 \001(\tB\003\340A\002\022\017\n\007max_qps\030\003 \001(\005\022" - + "\032\n\rstarting_urls\030\004 \003(\tB\003\340A\002\022Y\n\016authentic" - + "ation\030\005 \001(\0132A.google.cloud.websecuritysc" - + "anner.v1beta.ScanConfig.Authentication\022P" - + "\n\nuser_agent\030\006 \001(\0162<.google.cloud.websec" - + "urityscanner.v1beta.ScanConfig.UserAgent" - + "\022\032\n\022blacklist_patterns\030\007 \003(\t\022M\n\010schedule" - + "\030\010 \001(\0132;.google.cloud.websecurityscanner" - + ".v1beta.ScanConfig.Schedule\022[\n\020target_pl" - + "atforms\030\t \003(\0162A.google.cloud.websecurity" - + "scanner.v1beta.ScanConfig.TargetPlatform" - + "\022{\n!export_to_security_command_center\030\n " - + "\001(\0162P.google.cloud.websecurityscanner.v1" - + "beta.ScanConfig.ExportToSecurityCommandC" - + "enter\022C\n\nlatest_run\030\013 \001(\0132/.google.cloud" - + ".websecurityscanner.v1beta.ScanRun\022P\n\nri" - + "sk_level\030\014 \001(\0162<.google.cloud.websecurit" - + "yscanner.v1beta.ScanConfig.RiskLevel\032\224\003\n" - + "\016Authentication\022i\n\016google_account\030\001 \001(\0132" - + "O.google.cloud.websecurityscanner.v1beta" - + ".ScanConfig.Authentication.GoogleAccount" - + "H\000\022i\n\016custom_account\030\002 \001(\0132O.google.clou" - + "d.websecurityscanner.v1beta.ScanConfig.A" - + "uthentication.CustomAccountH\000\032@\n\rGoogleA" - + "ccount\022\025\n\010username\030\001 \001(\tB\003\340A\002\022\030\n\010passwor" - + "d\030\002 \001(\tB\006\340A\002\340A\004\032X\n\rCustomAccount\022\025\n\010user" - + "name\030\001 \001(\tB\003\340A\002\022\030\n\010password\030\002 \001(\tB\006\340A\002\340A" - + "\004\022\026\n\tlogin_url\030\003 \001(\tB\003\340A\002B\020\n\016authenticat" - + "ion\032b\n\010Schedule\0221\n\rschedule_time\030\001 \001(\0132\032" - + ".google.protobuf.Timestamp\022#\n\026interval_d" - + "uration_days\030\002 \001(\005B\003\340A\002\"`\n\tUserAgent\022\032\n\026" - + "USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LINUX" - + "\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHONE\020" - + "\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFORM_U" - + "NSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMPUTE\020" - + "\002\"<\n\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED" - + "\020\000\022\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecur" - + "ityCommandCenter\0221\n-EXPORT_TO_SECURITY_C" - + "OMMAND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001" - + "\022\014\n\010DISABLED\020\002:_\352A\\\n,websecurityscanner." - + "googleapis.com/ScanConfig\022,projects/{pro" - + "ject}/scanConfigs/{scan_config}B\227\002\n*com." - + "google.cloud.websecurityscanner.v1betaB\017" - + "ScanConfigProtoP\001ZXgoogle.golang.org/gen" - + "proto/googleapis/cloud/websecurityscanne" - + "r/v1beta;websecurityscanner\252\002&Google.Clo" - + "ud.WebSecurityScanner.V1Beta\312\002&Google\\Cl" - + "oud\\WebSecurityScanner\\V1beta\352\002)Google::" - + "Cloud::WebSecurityScanner::V1betab\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "MaxQps", - "StartingUrls", - "Authentication", - "UserAgent", - "BlacklistPatterns", - "Schedule", - "TargetPlatforms", - "ExportToSecurityCommandCenter", - "LatestRun", - "RiskLevel", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor = - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor, - new java.lang.String[] { - "GoogleAccount", "CustomAccount", "Authentication", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor, - new java.lang.String[] { - "Username", "Password", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor, - new java.lang.String[] { - "Username", "Password", "LoginUrl", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor = - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor, - new java.lang.String[] { - "ScheduleTime", "IntervalDurationDays", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java deleted file mode 100644 index 465dba63..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class ScanRunErrorTraceProto { - private ScanRunErrorTraceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nAgoogle/cloud/websecurityscanner/v1beta" - + "/scan_run_error_trace.proto\022&google.clou" - + "d.websecurityscanner.v1beta\032>google/clou" - + "d/websecurityscanner/v1beta/scan_config_" - + "error.proto\"\225\003\n\021ScanRunErrorTrace\022L\n\004cod" - + "e\030\001 \001(\0162>.google.cloud.websecurityscanne" - + "r.v1beta.ScanRunErrorTrace.Code\022R\n\021scan_" - + "config_error\030\002 \001(\01327.google.cloud.websec" - + "urityscanner.v1beta.ScanConfigError\022#\n\033m" - + "ost_common_http_error_code\030\003 \001(\005\"\270\001\n\004Cod" - + "e\022\024\n\020CODE_UNSPECIFIED\020\000\022\022\n\016INTERNAL_ERRO" - + "R\020\001\022\025\n\021SCAN_CONFIG_ISSUE\020\002\022\037\n\033AUTHENTICA" - + "TION_CONFIG_ISSUE\020\003\022\034\n\030TIMED_OUT_WHILE_S" - + "CANNING\020\004\022\026\n\022TOO_MANY_REDIRECTS\020\005\022\030\n\024TOO" - + "_MANY_HTTP_ERRORS\020\006B\236\002\n*com.google.cloud" - + ".websecurityscanner.v1betaB\026ScanRunError" - + "TraceProtoP\001ZXgoogle.golang.org/genproto" - + "/googleapis/cloud/websecurityscanner/v1b" - + "eta;websecurityscanner\252\002&Google.Cloud.We" - + "bSecurityScanner.V1Beta\312\002&Google\\Cloud\\W" - + "ebSecurityScanner\\V1beta\352\002)Google::Cloud" - + "::WebSecurityScanner::V1betab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor, - new java.lang.String[] { - "Code", "ScanConfigError", "MostCommonHttpErrorCode", - }); - com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java deleted file mode 100644 index fa953044..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/scan_run.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class ScanRunProto { - private ScanRunProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n5google/cloud/websecurityscanner/v1beta" - + "/scan_run.proto\022&google.cloud.websecurit" - + "yscanner.v1beta\032\031google/api/resource.pro" - + "to\032Agoogle/cloud/websecurityscanner/v1be" - + "ta/scan_run_error_trace.proto\032Cgoogle/cl" - + "oud/websecurityscanner/v1beta/scan_run_w" - + "arning_trace.proto\032\037google/protobuf/time" - + "stamp.proto\"\322\006\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022W\n" - + "\017execution_state\030\002 \001(\0162>.google.cloud.we" - + "bsecurityscanner.v1beta.ScanRun.Executio" - + "nState\022Q\n\014result_state\030\003 \001(\0162;.google.cl" - + "oud.websecurityscanner.v1beta.ScanRun.Re" - + "sultState\022.\n\nstart_time\030\004 \001(\0132\032.google.p" - + "rotobuf.Timestamp\022,\n\010end_time\030\005 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022\032\n\022urls_crawled_" - + "count\030\006 \001(\003\022\031\n\021urls_tested_count\030\007 \001(\003\022\033" - + "\n\023has_vulnerabilities\030\010 \001(\010\022\030\n\020progress_" - + "percent\030\t \001(\005\022N\n\013error_trace\030\n \001(\01329.goo" - + "gle.cloud.websecurityscanner.v1beta.Scan" - + "RunErrorTrace\022S\n\016warning_traces\030\013 \003(\0132;." - + "google.cloud.websecurityscanner.v1beta.S" - + "canRunWarningTrace\"Y\n\016ExecutionState\022\037\n\033" - + "EXECUTION_STATE_UNSPECIFIED\020\000\022\n\n\006QUEUED\020" - + "\001\022\014\n\010SCANNING\020\002\022\014\n\010FINISHED\020\003\"O\n\013ResultS" - + "tate\022\034\n\030RESULT_STATE_UNSPECIFIED\020\000\022\013\n\007SU" - + "CCESS\020\001\022\t\n\005ERROR\020\002\022\n\n\006KILLED\020\003:p\352Am\n)web" - + "securityscanner.googleapis.com/ScanRun\022@" - + "projects/{project}/scanConfigs/{scan_con" - + "fig}/scanRuns/{scan_run}B\224\002\n*com.google." - + "cloud.websecurityscanner.v1betaB\014ScanRun" - + "ProtoP\001ZXgoogle.golang.org/genproto/goog" - + "leapis/cloud/websecurityscanner/v1beta;w" - + "ebsecurityscanner\252\002&Google.Cloud.WebSecu" - + "rityScanner.V1Beta\312\002&Google\\Cloud\\WebSec" - + "urityScanner\\V1beta\352\002)Google::Cloud::Web" - + "SecurityScanner::V1betab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor, - new java.lang.String[] { - "Name", - "ExecutionState", - "ResultState", - "StartTime", - "EndTime", - "UrlsCrawledCount", - "UrlsTestedCount", - "HasVulnerabilities", - "ProgressPercent", - "ErrorTrace", - "WarningTraces", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java deleted file mode 100644 index 49dc296e..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class ScanRunWarningTraceProto { - private ScanRunWarningTraceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nCgoogle/cloud/websecurityscanner/v1beta" - + "/scan_run_warning_trace.proto\022&google.cl" - + "oud.websecurityscanner.v1beta\"\355\001\n\023ScanRu" - + "nWarningTrace\022N\n\004code\030\001 \001(\0162@.google.clo" - + "ud.websecurityscanner.v1beta.ScanRunWarn" - + "ingTrace.Code\"\205\001\n\004Code\022\024\n\020CODE_UNSPECIFI" - + "ED\020\000\022\036\n\032INSUFFICIENT_CRAWL_RESULTS\020\001\022\032\n\026" - + "TOO_MANY_CRAWL_RESULTS\020\002\022\027\n\023TOO_MANY_FUZ" - + "Z_TASKS\020\003\022\022\n\016BLOCKED_BY_IAP\020\004B\240\002\n*com.go" - + "ogle.cloud.websecurityscanner.v1betaB\030Sc" - + "anRunWarningTraceProtoP\001ZXgoogle.golang." - + "org/genproto/googleapis/cloud/websecurit" - + "yscanner/v1beta;websecurityscanner\252\002&Goo" - + "gle.Cloud.WebSecurityScanner.V1Beta\312\002&Go" - + "ogle\\Cloud\\WebSecurityScanner\\V1beta\352\002)G" - + "oogle::Cloud::WebSecurityScanner::V1beta" - + "b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor, - new java.lang.String[] { - "Code", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java deleted file mode 100644 index 3614cb38..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface StartScanRunRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be used. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanConfig to be used. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java deleted file mode 100644 index dbcf22f6..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface StopScanRunRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the ScanRun to be stopped. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the ScanRun to be stopped. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java deleted file mode 100644 index 605c7398..00000000 --- a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java +++ /dev/null @@ -1,442 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class WebSecurityScannerProto { - private WebSecurityScannerProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nAgoogle/cloud/websecurityscanner/v1beta" - + "/web_security_scanner.proto\022&google.clou" - + "d.websecurityscanner.v1beta\032\034google/api/" - + "annotations.proto\032\027google/api/client.pro" - + "to\032\037google/api/field_behavior.proto\032\031goo" - + "gle/api/resource.proto\0328google/cloud/web" - + "securityscanner/v1beta/crawled_url.proto" - + "\0324google/cloud/websecurityscanner/v1beta" - + "/finding.proto\032?google/cloud/websecurity" - + "scanner/v1beta/finding_type_stats.proto\032" - + "8google/cloud/websecurityscanner/v1beta/" - + "scan_config.proto\0325google/cloud/websecur" - + "ityscanner/v1beta/scan_run.proto\032\033google" - + "/protobuf/empty.proto\032 google/protobuf/f" - + "ield_mask.proto\"\254\001\n\027CreateScanConfigRequ" - + "est\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresour" - + "cemanager.googleapis.com/Project\022L\n\013scan" - + "_config\030\002 \001(\01322.google.cloud.websecurity" - + "scanner.v1beta.ScanConfigB\003\340A\002\"]\n\027Delete" - + "ScanConfigRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n" - + ",websecurityscanner.googleapis.com/ScanC" - + "onfig\"Z\n\024GetScanConfigRequest\022B\n\004name\030\001 " - + "\001(\tB4\340A\002\372A.\n,websecurityscanner.googleap" - + "is.com/ScanConfig\"\204\001\n\026ListScanConfigsReq" - + "uest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresou" - + "rcemanager.googleapis.com/Project\022\022\n\npag" - + "e_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\235\001\n\027Upd" - + "ateScanConfigRequest\022L\n\013scan_config\030\002 \001(" - + "\01322.google.cloud.websecurityscanner.v1be" - + "ta.ScanConfigB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132" - + "\032.google.protobuf.FieldMaskB\003\340A\002\"|\n\027List" - + "ScanConfigsResponse\022H\n\014scan_configs\030\001 \003(" - + "\01322.google.cloud.websecurityscanner.v1be" - + "ta.ScanConfig\022\027\n\017next_page_token\030\002 \001(\t\"Y" - + "\n\023StartScanRunRequest\022B\n\004name\030\001 \001(\tB4\340A\002" - + "\372A.\n,websecurityscanner.googleapis.com/S" - + "canConfig\"T\n\021GetScanRunRequest\022?\n\004name\030\001" - + " \001(\tB1\340A\002\372A+\n)websecurityscanner.googlea" - + "pis.com/ScanRun\"\202\001\n\023ListScanRunsRequest\022" - + "D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,websecurityscan" - + "ner.googleapis.com/ScanConfig\022\022\n\npage_to" - + "ken\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"s\n\024ListScan" - + "RunsResponse\022B\n\tscan_runs\030\001 \003(\0132/.google" - + ".cloud.websecurityscanner.v1beta.ScanRun" - + "\022\027\n\017next_page_token\030\002 \001(\t\"U\n\022StopScanRun" - + "Request\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecuri" - + "tyscanner.googleapis.com/ScanRun\"\202\001\n\026Lis" - + "tCrawledUrlsRequest\022A\n\006parent\030\001 \001(\tB1\340A\002" - + "\372A+\n)websecurityscanner.googleapis.com/S" - + "canRun\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030" - + "\003 \001(\005\"|\n\027ListCrawledUrlsResponse\022H\n\014craw" - + "led_urls\030\001 \003(\01322.google.cloud.websecurit" - + "yscanner.v1beta.CrawledUrl\022\027\n\017next_page_" - + "token\030\002 \001(\t\"T\n\021GetFindingRequest\022?\n\004name" - + "\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner.googl" - + "eapis.com/Finding\"\224\001\n\023ListFindingsReques" - + "t\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)websecuritysc" - + "anner.googleapis.com/ScanRun\022\023\n\006filter\030\002" - + " \001(\tB\003\340A\002\022\022\n\npage_token\030\003 \001(\t\022\021\n\tpage_si" - + "ze\030\004 \001(\005\"r\n\024ListFindingsResponse\022A\n\010find" - + "ings\030\001 \003(\0132/.google.cloud.websecuritysca" - + "nner.v1beta.Finding\022\027\n\017next_page_token\030\002" - + " \001(\t\"`\n\033ListFindingTypeStatsRequest\022A\n\006p" - + "arent\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner." - + "googleapis.com/ScanRun\"t\n\034ListFindingTyp" - + "eStatsResponse\022T\n\022finding_type_stats\030\001 \003" - + "(\01328.google.cloud.websecurityscanner.v1b" - + "eta.FindingTypeStats2\216\026\n\022WebSecurityScan" - + "ner\022\332\001\n\020CreateScanConfig\022?.google.cloud." - + "websecurityscanner.v1beta.CreateScanConf" - + "igRequest\0322.google.cloud.websecurityscan" - + "ner.v1beta.ScanConfig\"Q\202\323\344\223\0026\"\'/v1beta/{" - + "parent=projects/*}/scanConfigs:\013scan_con" - + "fig\332A\022parent,scan_config\022\243\001\n\020DeleteScanC" - + "onfig\022?.google.cloud.websecurityscanner." - + "v1beta.DeleteScanConfigRequest\032\026.google." - + "protobuf.Empty\"6\202\323\344\223\002)*\'/v1beta/{name=pr" - + "ojects/*/scanConfigs/*}\332A\004name\022\271\001\n\rGetSc" - + "anConfig\022<.google.cloud.websecurityscann" - + "er.v1beta.GetScanConfigRequest\0322.google." - + "cloud.websecurityscanner.v1beta.ScanConf" - + "ig\"6\202\323\344\223\002)\022\'/v1beta/{name=projects/*/sca" - + "nConfigs/*}\332A\004name\022\314\001\n\017ListScanConfigs\022>" - + ".google.cloud.websecurityscanner.v1beta." - + "ListScanConfigsRequest\032?.google.cloud.we" - + "bsecurityscanner.v1beta.ListScanConfigsR" - + "esponse\"8\202\323\344\223\002)\022\'/v1beta/{parent=project" - + "s/*}/scanConfigs\332A\006parent\022\353\001\n\020UpdateScan" - + "Config\022?.google.cloud.websecurityscanner" - + ".v1beta.UpdateScanConfigRequest\0322.google" - + ".cloud.websecurityscanner.v1beta.ScanCon" - + "fig\"b\202\323\344\223\002B23/v1beta/{scan_config.name=p" - + "rojects/*/scanConfigs/*}:\013scan_config\332A\027" - + "scan_config,update_mask\022\275\001\n\014StartScanRun" - + "\022;.google.cloud.websecurityscanner.v1bet" - + "a.StartScanRunRequest\032/.google.cloud.web" - + "securityscanner.v1beta.ScanRun\"?\202\323\344\223\0022\"-" - + "/v1beta/{name=projects/*/scanConfigs/*}:" - + "start:\001*\332A\004name\022\273\001\n\nGetScanRun\0229.google." - + "cloud.websecurityscanner.v1beta.GetScanR" - + "unRequest\032/.google.cloud.websecurityscan" - + "ner.v1beta.ScanRun\"A\202\323\344\223\0024\0222/v1beta/{nam" - + "e=projects/*/scanConfigs/*/scanRuns/*}\332A" - + "\004name\022\316\001\n\014ListScanRuns\022;.google.cloud.we" - + "bsecurityscanner.v1beta.ListScanRunsRequ" - + "est\032<.google.cloud.websecurityscanner.v1" - + "beta.ListScanRunsResponse\"C\202\323\344\223\0024\0222/v1be" - + "ta/{parent=projects/*/scanConfigs/*}/sca" - + "nRuns\332A\006parent\022\305\001\n\013StopScanRun\022:.google." - + "cloud.websecurityscanner.v1beta.StopScan" - + "RunRequest\032/.google.cloud.websecuritysca" - + "nner.v1beta.ScanRun\"I\202\323\344\223\002<\"7/v1beta/{na" - + "me=projects/*/scanConfigs/*/scanRuns/*}:" - + "stop:\001*\332A\004name\022\345\001\n\017ListCrawledUrls\022>.goo" - + "gle.cloud.websecurityscanner.v1beta.List" - + "CrawledUrlsRequest\032?.google.cloud.websec" - + "urityscanner.v1beta.ListCrawledUrlsRespo" - + "nse\"Q\202\323\344\223\002B\022@/v1beta/{parent=projects/*/" - + "scanConfigs/*/scanRuns/*}/crawledUrls\332A\006" - + "parent\022\306\001\n\nGetFinding\0229.google.cloud.web" - + "securityscanner.v1beta.GetFindingRequest" - + "\032/.google.cloud.websecurityscanner.v1bet" - + "a.Finding\"L\202\323\344\223\002?\022=/v1beta/{name=project" - + "s/*/scanConfigs/*/scanRuns/*/findings/*}" - + "\332A\004name\022\340\001\n\014ListFindings\022;.google.cloud." - + "websecurityscanner.v1beta.ListFindingsRe" - + "quest\032<.google.cloud.websecurityscanner." - + "v1beta.ListFindingsResponse\"U\202\323\344\223\002?\022=/v1" - + "beta/{parent=projects/*/scanConfigs/*/sc" - + "anRuns/*}/findings\332A\rparent,filter\022\371\001\n\024L" - + "istFindingTypeStats\022C.google.cloud.webse" - + "curityscanner.v1beta.ListFindingTypeStat" - + "sRequest\032D.google.cloud.websecurityscann" - + "er.v1beta.ListFindingTypeStatsResponse\"V" - + "\202\323\344\223\002G\022E/v1beta/{parent=projects/*/scanC" - + "onfigs/*/scanRuns/*}/findingTypeStats\332A\006" - + "parent\032U\312A!websecurityscanner.googleapis" - + ".com\322A.https://www.googleapis.com/auth/c" - + "loud-platformB\237\002\n*com.google.cloud.webse" - + "curityscanner.v1betaB\027WebSecurityScanner" - + "ProtoP\001ZXgoogle.golang.org/genproto/goog" - + "leapis/cloud/websecurityscanner/v1beta;w" - + "ebsecurityscanner\252\002&Google.Cloud.WebSecu" - + "rityScanner.V1Beta\312\002&Google\\Cloud\\WebSec" - + "urityScanner\\V1beta\352\002)Google::Cloud::Web" - + "SecurityScanner::V1betab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.FindingProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor, - new java.lang.String[] { - "Parent", "ScanConfig", - }); - internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor, - new java.lang.String[] { - "ScanConfig", "UpdateMask", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor, - new java.lang.String[] { - "ScanConfigs", "NextPageToken", - }); - internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor, - new java.lang.String[] { - "ScanRuns", "NextPageToken", - }); - internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor, - new java.lang.String[] { - "CrawledUrls", "NextPageToken", - }); - internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageToken", "PageSize", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor, - new java.lang.String[] { - "Findings", "NextPageToken", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor, - new java.lang.String[] { - "Parent", - }); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor, - new java.lang.String[] { - "FindingTypeStats", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.FindingProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From c4f52b2faa4501154030ca12f0b86ebb41a2decb Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 30 Aug 2022 04:52:02 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../v1/WebSecurityScannerClient.java | 46 +- .../v1/WebSecurityScannerSettings.java | 7 +- .../websecurityscanner/v1/gapic_metadata.json | 0 .../websecurityscanner/v1/package-info.java | 0 ...GrpcWebSecurityScannerCallableFactory.java | 0 .../v1/stub/GrpcWebSecurityScannerStub.java | 1 - ...JsonWebSecurityScannerCallableFactory.java | 0 .../stub/HttpJsonWebSecurityScannerStub.java | 0 .../v1/stub/WebSecurityScannerStub.java | 0 .../stub/WebSecurityScannerStubSettings.java | 6 +- .../v1alpha/WebSecurityScannerClient.java | 46 +- .../v1alpha/WebSecurityScannerSettings.java | 7 +- .../v1alpha/gapic_metadata.json | 0 .../v1alpha/package-info.java | 0 ...GrpcWebSecurityScannerCallableFactory.java | 0 .../stub/GrpcWebSecurityScannerStub.java | 1 - ...JsonWebSecurityScannerCallableFactory.java | 0 .../stub/HttpJsonWebSecurityScannerStub.java | 0 .../v1alpha/stub/WebSecurityScannerStub.java | 0 .../stub/WebSecurityScannerStubSettings.java | 6 +- .../v1beta/WebSecurityScannerClient.java | 46 +- .../v1beta/WebSecurityScannerSettings.java | 7 +- .../v1beta/gapic_metadata.json | 0 .../v1beta/package-info.java | 0 ...GrpcWebSecurityScannerCallableFactory.java | 0 .../stub/GrpcWebSecurityScannerStub.java | 1 - ...JsonWebSecurityScannerCallableFactory.java | 0 .../stub/HttpJsonWebSecurityScannerStub.java | 0 .../v1beta/stub/WebSecurityScannerStub.java | 0 .../stub/WebSecurityScannerStubSettings.java | 6 +- .../v1/MockWebSecurityScanner.java | 0 .../v1/MockWebSecurityScannerImpl.java | 0 .../WebSecurityScannerClientHttpJsonTest.java | 0 .../v1/WebSecurityScannerClientTest.java | 0 .../v1alpha/MockWebSecurityScanner.java | 0 .../v1alpha/MockWebSecurityScannerImpl.java | 0 .../WebSecurityScannerClientHttpJsonTest.java | 0 .../v1alpha/WebSecurityScannerClientTest.java | 0 .../v1beta/MockWebSecurityScanner.java | 0 .../v1beta/MockWebSecurityScannerImpl.java | 0 .../WebSecurityScannerClientHttpJsonTest.java | 0 .../v1beta/WebSecurityScannerClientTest.java | 0 .../v1/WebSecurityScannerGrpc.java | 1825 ++++++ .../v1alpha/WebSecurityScannerGrpc.java | 1848 ++++++ .../v1beta/WebSecurityScannerGrpc.java | 1842 ++++++ .../v1/WebSecurityScannerGrpc.java | 1349 ----- .../v1/CrawledUrlProto.java | 56 - .../v1/FindingAddonProto.java | 144 - .../websecurityscanner/v1/FindingProto.java | 93 - .../v1/FindingTypeStatsProto.java | 56 - .../v1/ScanConfigErrorProto.java | 93 - .../v1/ScanConfigProto.java | 173 - .../v1/ScanRunErrorTraceProto.java | 68 - .../v1/ScanRunLogProto.java | 70 - .../websecurityscanner/v1/ScanRunProto.java | 82 - .../v1/ScanRunWarningTraceProto.java | 61 - .../v1/WebSecurityScannerProto.java | 376 -- .../v1alpha/WebSecurityScannerGrpc.java | 1349 ----- .../v1alpha/CrawledUrlProto.java | 54 - .../CreateScanConfigRequestOrBuilder.java | 58 - .../DeleteScanConfigRequestOrBuilder.java | 31 - .../v1alpha/FindingAddonProto.java | 119 - .../v1alpha/FindingProto.java | 91 - .../v1alpha/FindingTypeStatsProto.java | 59 - .../v1alpha/GetFindingRequestOrBuilder.java | 33 - .../GetScanConfigRequestOrBuilder.java | 31 - .../v1alpha/GetScanRunRequestOrBuilder.java | 33 - .../ListFindingTypeStatsRequestOrBuilder.java | 33 - ...ListFindingTypeStatsResponseOrBuilder.java | 53 - .../v1alpha/ScanConfigProto.java | 147 - .../v1alpha/ScanRunProto.java | 80 - .../v1alpha/StartScanRunRequestOrBuilder.java | 31 - .../v1alpha/StopScanRunRequestOrBuilder.java | 33 - .../v1alpha/WebSecurityScannerProto.java | 408 -- .../v1beta/WebSecurityScannerGrpc.java | 1349 ----- .../v1beta/CrawledUrlProto.java | 57 - .../CreateScanConfigRequestOrBuilder.java | 58 - .../DeleteScanConfigRequestOrBuilder.java | 31 - .../v1beta/FindingAddonProto.java | 134 - .../v1beta/FindingProto.java | 86 - .../v1beta/FindingTypeStatsProto.java | 57 - .../v1beta/GetFindingRequestOrBuilder.java | 33 - .../v1beta/GetScanConfigRequestOrBuilder.java | 31 - .../v1beta/GetScanRunRequestOrBuilder.java | 33 - .../ListFindingTypeStatsRequestOrBuilder.java | 33 - .../v1beta/ScanConfigErrorProto.java | 93 - .../v1beta/ScanConfigProto.java | 160 - .../v1beta/ScanRunErrorTraceProto.java | 69 - .../v1beta/ScanRunProto.java | 94 - .../v1beta/ScanRunWarningTraceProto.java | 62 - .../v1beta/StartScanRunRequestOrBuilder.java | 31 - .../v1beta/StopScanRunRequestOrBuilder.java | 33 - .../v1beta/WebSecurityScannerProto.java | 410 -- .../websecurityscanner/v1/CrawledUrl.java | 469 +- .../v1/CrawledUrlOrBuilder.java | 45 +- .../v1/CrawledUrlProto.java | 69 + .../v1/CreateScanConfigRequest.java | 431 +- .../v1/CreateScanConfigRequestOrBuilder.java | 35 +- .../v1/DeleteScanConfigRequest.java | 332 +- .../v1/DeleteScanConfigRequestOrBuilder.java | 27 +- .../cloud/websecurityscanner/v1/Finding.java | 1886 +++--- .../v1/FindingAddonProto.java | 165 + .../v1/FindingOrBuilder.java | 182 +- .../websecurityscanner/v1/FindingProto.java | 124 + .../v1/FindingTypeStats.java | 348 +- .../v1/FindingTypeStatsOrBuilder.java | 30 +- .../v1/FindingTypeStatsProto.java | 69 + .../cloud/websecurityscanner/v1/Form.java | 412 +- .../websecurityscanner/v1/FormOrBuilder.java | 45 +- .../v1/GetFindingRequest.java | 314 +- .../v1/GetFindingRequestOrBuilder.java | 27 +- .../v1/GetScanConfigRequest.java | 314 +- .../v1/GetScanConfigRequestOrBuilder.java | 27 +- .../v1/GetScanRunRequest.java | 314 +- .../v1/GetScanRunRequestOrBuilder.java | 27 +- .../v1/ListCrawledUrlsRequest.java | 435 +- .../v1/ListCrawledUrlsRequestOrBuilder.java | 39 +- .../v1/ListCrawledUrlsResponse.java | 467 +- .../v1/ListCrawledUrlsResponseOrBuilder.java | 45 +- .../v1/ListFindingTypeStatsRequest.java | 347 +- .../ListFindingTypeStatsRequestOrBuilder.java | 27 +- .../v1/ListFindingTypeStatsResponse.java | 508 +- ...ListFindingTypeStatsResponseOrBuilder.java | 48 +- .../v1/ListFindingsRequest.java | 508 +- .../v1/ListFindingsRequestOrBuilder.java | 48 +- .../v1/ListFindingsResponse.java | 464 +- .../v1/ListFindingsResponseOrBuilder.java | 45 +- .../v1/ListScanConfigsRequest.java | 435 +- .../v1/ListScanConfigsRequestOrBuilder.java | 39 +- .../v1/ListScanConfigsResponse.java | 467 +- .../v1/ListScanConfigsResponseOrBuilder.java | 45 +- .../v1/ListScanRunsRequest.java | 427 +- .../v1/ListScanRunsRequestOrBuilder.java | 39 +- .../v1/ListScanRunsResponse.java | 464 +- .../v1/ListScanRunsResponseOrBuilder.java | 45 +- .../v1/OutdatedLibrary.java | 504 +- .../v1/OutdatedLibraryOrBuilder.java | 54 +- .../websecurityscanner/v1/ScanConfig.java | 5166 +++++++++++------ .../v1/ScanConfigError.java | 769 ++- .../v1/ScanConfigErrorOrBuilder.java | 33 +- .../v1/ScanConfigErrorProto.java | 106 + .../v1/ScanConfigOrBuilder.java | 129 +- .../v1/ScanConfigProto.java | 217 + .../cloud/websecurityscanner/v1/ScanRun.java | 1264 ++-- .../v1/ScanRunErrorTrace.java | 551 +- .../v1/ScanRunErrorTraceOrBuilder.java | 35 +- .../v1/ScanRunErrorTraceProto.java | 83 + .../websecurityscanner/v1/ScanRunLog.java | 740 ++- .../v1/ScanRunLogOrBuilder.java | 57 +- .../v1/ScanRunLogProto.java | 92 + .../v1/ScanRunOrBuilder.java | 105 +- .../websecurityscanner/v1/ScanRunProto.java | 107 + .../v1/ScanRunWarningTrace.java | 389 +- .../v1/ScanRunWarningTraceOrBuilder.java | 24 +- .../v1/ScanRunWarningTraceProto.java | 74 + .../v1/StartScanRunRequest.java | 314 +- .../v1/StartScanRunRequestOrBuilder.java | 27 +- .../v1/StopScanRunRequest.java | 314 +- .../v1/StopScanRunRequestOrBuilder.java | 27 +- .../v1/UpdateScanConfigRequest.java | 451 +- .../v1/UpdateScanConfigRequestOrBuilder.java | 34 +- .../v1/ViolatingResource.java | 393 +- .../v1/ViolatingResourceOrBuilder.java | 36 +- .../v1/VulnerableHeaders.java | 1167 ++-- .../v1/VulnerableHeadersOrBuilder.java | 71 +- .../v1/VulnerableParameters.java | 346 +- .../v1/VulnerableParametersOrBuilder.java | 36 +- .../v1/WebSecurityScannerProto.java | 408 ++ .../cloud/websecurityscanner/v1/Xss.java | 718 ++- .../websecurityscanner/v1/XssOrBuilder.java | 60 +- .../websecurityscanner/v1/crawled_url.proto | 0 .../cloud/websecurityscanner/v1/finding.proto | 0 .../websecurityscanner/v1/finding_addon.proto | 0 .../v1/finding_type_stats.proto | 0 .../websecurityscanner/v1/scan_config.proto | 0 .../v1/scan_config_error.proto | 0 .../websecurityscanner/v1/scan_run.proto | 0 .../v1/scan_run_error_trace.proto | 0 .../websecurityscanner/v1/scan_run_log.proto | 0 .../v1/scan_run_warning_trace.proto | 0 .../v1/web_security_scanner.proto | 0 .../v1alpha/CrawledUrl.java | 472 +- .../v1alpha/CrawledUrlOrBuilder.java | 45 +- .../v1alpha/CrawledUrlProto.java | 67 + .../v1alpha/CreateScanConfigRequest.java | 525 +- .../CreateScanConfigRequestOrBuilder.java | 97 + .../v1alpha/DeleteScanConfigRequest.java | 375 +- .../DeleteScanConfigRequestOrBuilder.java | 56 + .../websecurityscanner/v1alpha/Finding.java | 1843 +++--- .../v1alpha/FindingAddonProto.java | 139 + .../v1alpha/FindingName.java | 0 .../v1alpha/FindingOrBuilder.java | 184 +- .../v1alpha/FindingProto.java | 120 + .../v1alpha/FindingTypeStats.java | 351 +- .../v1alpha/FindingTypeStatsOrBuilder.java | 27 +- .../v1alpha/FindingTypeStatsProto.java | 74 + .../v1alpha/GetFindingRequest.java | 350 +- .../v1alpha/GetFindingRequestOrBuilder.java | 58 + .../v1alpha/GetScanConfigRequest.java | 363 +- .../GetScanConfigRequestOrBuilder.java | 56 + .../v1alpha/GetScanRunRequest.java | 350 +- .../v1alpha/GetScanRunRequestOrBuilder.java | 58 + .../v1alpha/ListCrawledUrlsRequest.java | 488 +- .../ListCrawledUrlsRequestOrBuilder.java | 47 +- .../v1alpha/ListCrawledUrlsResponse.java | 492 +- .../ListCrawledUrlsResponseOrBuilder.java | 42 +- .../v1alpha/ListFindingTypeStatsRequest.java | 385 +- .../ListFindingTypeStatsRequestOrBuilder.java | 58 + .../v1alpha/ListFindingTypeStatsResponse.java | 556 +- ...ListFindingTypeStatsResponseOrBuilder.java | 89 + .../v1alpha/ListFindingsRequest.java | 557 +- .../v1alpha/ListFindingsRequestOrBuilder.java | 56 +- .../v1alpha/ListFindingsResponse.java | 469 +- .../ListFindingsResponseOrBuilder.java | 45 +- .../v1alpha/ListScanConfigsRequest.java | 488 +- .../ListScanConfigsRequestOrBuilder.java | 47 +- .../v1alpha/ListScanConfigsResponse.java | 492 +- .../ListScanConfigsResponseOrBuilder.java | 42 +- .../v1alpha/ListScanRunsRequest.java | 476 +- .../v1alpha/ListScanRunsRequestOrBuilder.java | 47 +- .../v1alpha/ListScanRunsResponse.java | 469 +- .../ListScanRunsResponseOrBuilder.java | 45 +- .../v1alpha/OutdatedLibrary.java | 504 +- .../v1alpha/OutdatedLibraryOrBuilder.java | 54 +- .../v1alpha/ProjectName.java | 0 .../v1alpha/ScanConfig.java | 3935 ++++++++----- .../v1alpha/ScanConfigName.java | 0 .../v1alpha/ScanConfigOrBuilder.java | 161 +- .../v1alpha/ScanConfigProto.java | 183 + .../websecurityscanner/v1alpha/ScanRun.java | 958 +-- .../v1alpha/ScanRunName.java | 0 .../v1alpha/ScanRunOrBuilder.java | 73 +- .../v1alpha/ScanRunProto.java | 103 + .../v1alpha/StartScanRunRequest.java | 363 +- .../v1alpha/StartScanRunRequestOrBuilder.java | 56 + .../v1alpha/StopScanRunRequest.java | 360 +- .../v1alpha/StopScanRunRequestOrBuilder.java | 58 + .../v1alpha/UpdateScanConfigRequest.java | 553 +- .../UpdateScanConfigRequestOrBuilder.java | 55 +- .../v1alpha/ViolatingResource.java | 401 +- .../v1alpha/ViolatingResourceOrBuilder.java | 36 +- .../v1alpha/VulnerableHeaders.java | 1223 ++-- .../v1alpha/VulnerableHeadersOrBuilder.java | 87 +- .../v1alpha/VulnerableParameters.java | 367 +- .../VulnerableParametersOrBuilder.java | 36 +- .../v1alpha/WebSecurityScannerProto.java | 440 ++ .../cloud/websecurityscanner/v1alpha/Xss.java | 415 +- .../v1alpha/XssOrBuilder.java | 45 +- .../v1alpha/crawled_url.proto | 0 .../websecurityscanner/v1alpha/finding.proto | 0 .../v1alpha/finding_addon.proto | 0 .../v1alpha/finding_type_stats.proto | 0 .../v1alpha/scan_config.proto | 0 .../websecurityscanner/v1alpha/scan_run.proto | 0 .../v1alpha/web_security_scanner.proto | 0 .../websecurityscanner/v1beta/CrawledUrl.java | 472 +- .../v1beta/CrawledUrlOrBuilder.java | 45 +- .../v1beta/CrawledUrlProto.java | 70 + .../v1beta/CreateScanConfigRequest.java | 522 +- .../CreateScanConfigRequestOrBuilder.java | 97 + .../v1beta/DeleteScanConfigRequest.java | 375 +- .../DeleteScanConfigRequestOrBuilder.java | 56 + .../websecurityscanner/v1beta/Finding.java | 1797 +++--- .../v1beta/FindingAddonProto.java | 155 + .../v1beta/FindingName.java | 0 .../v1beta/FindingOrBuilder.java | 174 +- .../v1beta/FindingProto.java | 116 + .../v1beta/FindingTypeStats.java | 348 +- .../v1beta/FindingTypeStatsOrBuilder.java | 30 +- .../v1beta/FindingTypeStatsProto.java | 70 + .../cloud/websecurityscanner/v1beta/Form.java | 415 +- .../v1beta/FormOrBuilder.java | 45 +- .../v1beta/GetFindingRequest.java | 349 +- .../v1beta/GetFindingRequestOrBuilder.java | 58 + .../v1beta/GetScanConfigRequest.java | 363 +- .../v1beta/GetScanConfigRequestOrBuilder.java | 56 + .../v1beta/GetScanRunRequest.java | 349 +- .../v1beta/GetScanRunRequestOrBuilder.java | 58 + .../v1beta/ListCrawledUrlsRequest.java | 484 +- .../ListCrawledUrlsRequestOrBuilder.java | 47 +- .../v1beta/ListCrawledUrlsResponse.java | 492 +- .../ListCrawledUrlsResponseOrBuilder.java | 45 +- .../v1beta/ListFindingTypeStatsRequest.java | 378 +- .../ListFindingTypeStatsRequestOrBuilder.java | 58 + .../v1beta/ListFindingTypeStatsResponse.java | 548 +- ...ListFindingTypeStatsResponseOrBuilder.java | 47 +- .../v1beta/ListFindingsRequest.java | 554 +- .../v1beta/ListFindingsRequestOrBuilder.java | 56 +- .../v1beta/ListFindingsResponse.java | 469 +- .../v1beta/ListFindingsResponseOrBuilder.java | 45 +- .../v1beta/ListScanConfigsRequest.java | 484 +- .../ListScanConfigsRequestOrBuilder.java | 47 +- .../v1beta/ListScanConfigsResponse.java | 492 +- .../ListScanConfigsResponseOrBuilder.java | 45 +- .../v1beta/ListScanRunsRequest.java | 473 +- .../v1beta/ListScanRunsRequestOrBuilder.java | 47 +- .../v1beta/ListScanRunsResponse.java | 469 +- .../v1beta/ListScanRunsResponseOrBuilder.java | 45 +- .../v1beta/OutdatedLibrary.java | 504 +- .../v1beta/OutdatedLibraryOrBuilder.java | 54 +- .../v1beta/ProjectName.java | 0 .../websecurityscanner/v1beta/ScanConfig.java | 4236 +++++++++----- .../v1beta/ScanConfigError.java | 769 ++- .../v1beta/ScanConfigErrorOrBuilder.java | 33 +- .../v1beta/ScanConfigErrorProto.java | 106 + .../v1beta/ScanConfigName.java | 0 .../v1beta/ScanConfigOrBuilder.java | 184 +- .../v1beta/ScanConfigProto.java | 198 + .../websecurityscanner/v1beta/ScanRun.java | 1343 +++-- .../v1beta/ScanRunErrorTrace.java | 562 +- .../v1beta/ScanRunErrorTraceOrBuilder.java | 35 +- .../v1beta/ScanRunErrorTraceProto.java | 84 + .../v1beta/ScanRunName.java | 0 .../v1beta/ScanRunOrBuilder.java | 110 +- .../v1beta/ScanRunProto.java | 119 + .../v1beta/ScanRunWarningTrace.java | 410 +- .../v1beta/ScanRunWarningTraceOrBuilder.java | 24 +- .../v1beta/ScanRunWarningTraceProto.java | 75 + .../v1beta/StartScanRunRequest.java | 360 +- .../v1beta/StartScanRunRequestOrBuilder.java | 56 + .../v1beta/StopScanRunRequest.java | 350 +- .../v1beta/StopScanRunRequestOrBuilder.java | 58 + .../v1beta/UpdateScanConfigRequest.java | 550 +- .../UpdateScanConfigRequestOrBuilder.java | 55 +- .../v1beta/ViolatingResource.java | 400 +- .../v1beta/ViolatingResourceOrBuilder.java | 36 +- .../v1beta/VulnerableHeaders.java | 1216 ++-- .../v1beta/VulnerableHeadersOrBuilder.java | 87 +- .../v1beta/VulnerableParameters.java | 367 +- .../v1beta/VulnerableParametersOrBuilder.java | 36 +- .../v1beta/WebSecurityScannerProto.java | 442 ++ .../cloud/websecurityscanner/v1beta/Xss.java | 412 +- .../v1beta/XssOrBuilder.java | 45 +- .../v1beta/crawled_url.proto | 0 .../websecurityscanner/v1beta/finding.proto | 0 .../v1beta/finding_addon.proto | 0 .../v1beta/finding_type_stats.proto | 0 .../v1beta/scan_config.proto | 0 .../v1beta/scan_config_error.proto | 0 .../websecurityscanner/v1beta/scan_run.proto | 0 .../v1beta/scan_run_error_trace.proto | 0 .../v1beta/scan_run_warning_trace.proto | 0 .../v1beta/web_security_scanner.proto | 0 .../SyncCreateScanConfig.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateScanConfig.java | 0 .../SyncCreateScanConfig.java | 0 .../AsyncDeleteScanConfig.java | 0 .../SyncDeleteScanConfig.java | 0 .../getfinding/AsyncGetFinding.java | 0 .../getfinding/SyncGetFinding.java | 0 .../getscanconfig/AsyncGetScanConfig.java | 0 .../getscanconfig/SyncGetScanConfig.java | 0 .../getscanrun/AsyncGetScanRun.java | 0 .../getscanrun/SyncGetScanRun.java | 0 .../listcrawledurls/AsyncListCrawledUrls.java | 0 .../AsyncListCrawledUrlsPaged.java | 0 .../listcrawledurls/SyncListCrawledUrls.java | 0 .../listfindings/AsyncListFindings.java | 0 .../listfindings/AsyncListFindingsPaged.java | 0 .../listfindings/SyncListFindings.java | 0 .../AsyncListFindingTypeStats.java | 0 .../SyncListFindingTypeStats.java | 0 .../listscanconfigs/AsyncListScanConfigs.java | 0 .../AsyncListScanConfigsPaged.java | 0 .../listscanconfigs/SyncListScanConfigs.java | 0 .../listscanruns/AsyncListScanRuns.java | 0 .../listscanruns/AsyncListScanRunsPaged.java | 0 .../listscanruns/SyncListScanRuns.java | 0 .../startscanrun/AsyncStartScanRun.java | 0 .../startscanrun/SyncStartScanRun.java | 0 .../stopscanrun/AsyncStopScanRun.java | 0 .../stopscanrun/SyncStopScanRun.java | 0 .../AsyncUpdateScanConfig.java | 0 .../SyncUpdateScanConfig.java | 0 .../SyncCreateScanConfig.java | 0 .../SyncCreateScanConfig.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateScanConfig.java | 0 .../SyncCreateScanConfig.java | 0 ...CreateScanConfigProjectnameScanconfig.java | 0 .../SyncCreateScanConfigStringScanconfig.java | 0 .../AsyncDeleteScanConfig.java | 0 .../SyncDeleteScanConfig.java | 0 .../SyncDeleteScanConfigScanconfigname.java | 0 .../SyncDeleteScanConfigString.java | 0 .../getfinding/AsyncGetFinding.java | 0 .../getfinding/SyncGetFinding.java | 0 .../getfinding/SyncGetFindingFindingname.java | 0 .../getfinding/SyncGetFindingString.java | 0 .../getscanconfig/AsyncGetScanConfig.java | 0 .../getscanconfig/SyncGetScanConfig.java | 0 .../SyncGetScanConfigScanconfigname.java | 0 .../SyncGetScanConfigString.java | 0 .../getscanrun/AsyncGetScanRun.java | 0 .../getscanrun/SyncGetScanRun.java | 0 .../getscanrun/SyncGetScanRunScanrunname.java | 0 .../getscanrun/SyncGetScanRunString.java | 0 .../listcrawledurls/AsyncListCrawledUrls.java | 0 .../AsyncListCrawledUrlsPaged.java | 0 .../listcrawledurls/SyncListCrawledUrls.java | 0 .../SyncListCrawledUrlsScanrunname.java | 0 .../SyncListCrawledUrlsString.java | 0 .../listfindings/AsyncListFindings.java | 0 .../listfindings/AsyncListFindingsPaged.java | 0 .../listfindings/SyncListFindings.java | 0 .../SyncListFindingsScanrunnameString.java | 0 .../SyncListFindingsStringString.java | 0 .../AsyncListFindingTypeStats.java | 0 .../SyncListFindingTypeStats.java | 0 .../SyncListFindingTypeStatsScanrunname.java | 0 .../SyncListFindingTypeStatsString.java | 0 .../listscanconfigs/AsyncListScanConfigs.java | 0 .../AsyncListScanConfigsPaged.java | 0 .../listscanconfigs/SyncListScanConfigs.java | 0 .../SyncListScanConfigsProjectname.java | 0 .../SyncListScanConfigsString.java | 0 .../listscanruns/AsyncListScanRuns.java | 0 .../listscanruns/AsyncListScanRunsPaged.java | 0 .../listscanruns/SyncListScanRuns.java | 0 .../SyncListScanRunsScanconfigname.java | 0 .../listscanruns/SyncListScanRunsString.java | 0 .../startscanrun/AsyncStartScanRun.java | 0 .../startscanrun/SyncStartScanRun.java | 0 .../SyncStartScanRunScanconfigname.java | 0 .../startscanrun/SyncStartScanRunString.java | 0 .../stopscanrun/AsyncStopScanRun.java | 0 .../stopscanrun/SyncStopScanRun.java | 0 .../SyncStopScanRunScanrunname.java | 0 .../stopscanrun/SyncStopScanRunString.java | 0 .../AsyncUpdateScanConfig.java | 0 .../SyncUpdateScanConfig.java | 0 ...ncUpdateScanConfigScanconfigFieldmask.java | 0 .../SyncCreateScanConfig.java | 0 .../SyncCreateScanConfig.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateScanConfig.java | 0 .../SyncCreateScanConfig.java | 0 ...CreateScanConfigProjectnameScanconfig.java | 0 .../SyncCreateScanConfigStringScanconfig.java | 0 .../AsyncDeleteScanConfig.java | 0 .../SyncDeleteScanConfig.java | 0 .../SyncDeleteScanConfigScanconfigname.java | 0 .../SyncDeleteScanConfigString.java | 0 .../getfinding/AsyncGetFinding.java | 0 .../getfinding/SyncGetFinding.java | 0 .../getfinding/SyncGetFindingFindingname.java | 0 .../getfinding/SyncGetFindingString.java | 0 .../getscanconfig/AsyncGetScanConfig.java | 0 .../getscanconfig/SyncGetScanConfig.java | 0 .../SyncGetScanConfigScanconfigname.java | 0 .../SyncGetScanConfigString.java | 0 .../getscanrun/AsyncGetScanRun.java | 0 .../getscanrun/SyncGetScanRun.java | 0 .../getscanrun/SyncGetScanRunScanrunname.java | 0 .../getscanrun/SyncGetScanRunString.java | 0 .../listcrawledurls/AsyncListCrawledUrls.java | 0 .../AsyncListCrawledUrlsPaged.java | 0 .../listcrawledurls/SyncListCrawledUrls.java | 0 .../SyncListCrawledUrlsScanrunname.java | 0 .../SyncListCrawledUrlsString.java | 0 .../listfindings/AsyncListFindings.java | 0 .../listfindings/AsyncListFindingsPaged.java | 0 .../listfindings/SyncListFindings.java | 0 .../SyncListFindingsScanrunnameString.java | 0 .../SyncListFindingsStringString.java | 0 .../AsyncListFindingTypeStats.java | 0 .../SyncListFindingTypeStats.java | 0 .../SyncListFindingTypeStatsScanrunname.java | 0 .../SyncListFindingTypeStatsString.java | 0 .../listscanconfigs/AsyncListScanConfigs.java | 0 .../AsyncListScanConfigsPaged.java | 0 .../listscanconfigs/SyncListScanConfigs.java | 0 .../SyncListScanConfigsProjectname.java | 0 .../SyncListScanConfigsString.java | 0 .../listscanruns/AsyncListScanRuns.java | 0 .../listscanruns/AsyncListScanRunsPaged.java | 0 .../listscanruns/SyncListScanRuns.java | 0 .../SyncListScanRunsScanconfigname.java | 0 .../listscanruns/SyncListScanRunsString.java | 0 .../startscanrun/AsyncStartScanRun.java | 0 .../startscanrun/SyncStartScanRun.java | 0 .../SyncStartScanRunScanconfigname.java | 0 .../startscanrun/SyncStartScanRunString.java | 0 .../stopscanrun/AsyncStopScanRun.java | 0 .../stopscanrun/SyncStopScanRun.java | 0 .../SyncStopScanRunScanrunname.java | 0 .../stopscanrun/SyncStopScanRunString.java | 0 .../AsyncUpdateScanConfig.java | 0 .../SyncUpdateScanConfig.java | 0 ...ncUpdateScanConfigScanconfigFieldmask.java | 0 .../SyncCreateScanConfig.java | 0 498 files changed, 53175 insertions(+), 32300 deletions(-) rename {owl-bot-staging/v1/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java (97%) rename {owl-bot-staging/v1/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java (99%) rename {owl-bot-staging/v1/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java (100%) rename {owl-bot-staging/v1/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java (100%) rename {owl-bot-staging/v1/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java (99%) rename {owl-bot-staging/v1alpha/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java (98%) rename {owl-bot-staging/v1alpha/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java (97%) rename {owl-bot-staging/v1alpha/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json (100%) rename {owl-bot-staging/v1alpha/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java (100%) rename {owl-bot-staging/v1alpha/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java (100%) rename {owl-bot-staging/v1alpha/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java (99%) rename {owl-bot-staging/v1alpha/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java (100%) rename {owl-bot-staging/v1alpha/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java (100%) rename {owl-bot-staging/v1alpha/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java (100%) rename {owl-bot-staging/v1alpha/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java (99%) rename {owl-bot-staging/v1beta/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java (98%) rename {owl-bot-staging/v1beta/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java (97%) rename {owl-bot-staging/v1beta/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json (100%) rename {owl-bot-staging/v1beta/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java (100%) rename {owl-bot-staging/v1beta/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java (100%) rename {owl-bot-staging/v1beta/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java (99%) rename {owl-bot-staging/v1beta/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java (100%) rename {owl-bot-staging/v1beta/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java (100%) rename {owl-bot-staging/v1beta/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java (100%) rename {owl-bot-staging/v1beta/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java (100%) rename {owl-bot-staging/v1/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java (100%) rename {owl-bot-staging/v1alpha/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java (100%) rename {owl-bot-staging/v1alpha/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java (100%) rename {owl-bot-staging/v1alpha/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1alpha/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java (100%) rename {owl-bot-staging/v1beta/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java (100%) rename {owl-bot-staging/v1beta/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java (100%) rename {owl-bot-staging/v1beta/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1beta/google-cloud-websecurityscanner => google-cloud-websecurityscanner}/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java (100%) create mode 100644 grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java create mode 100644 grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java create mode 100644 grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java delete mode 100644 owl-bot-staging/v1alpha/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java delete mode 100644 owl-bot-staging/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java (62%) create mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java (73%) create mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java (83%) create mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java (55%) create mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java (68%) create mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java (81%) create mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java (77%) create mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java (75%) create mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java (85%) create mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java (55%) create mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java (59%) create mode 100644 proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/Xss.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1 => proto-google-cloud-websecurityscanner-v1}/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto (100%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java (71%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java (62%) create mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java (61%) create mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java (63%) create mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java (72%) create mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java (100%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java (80%) create mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java (68%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java (61%) create mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java (66%) create mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java (64%) create mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java (66%) create mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java (67%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java (62%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java (72%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java (71%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java (62%) create mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java (60%) create mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java (70%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java (68%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java (73%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java (69%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java (67%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java (61%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java (72%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java (71%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java (68%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java (61%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java (73%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java (69%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java (72%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java (67%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java (100%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java (66%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java (100%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java (78%) create mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java (74%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java (100%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java (83%) create mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java (64%) create mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java (65%) create mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java (66%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java (64%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java (70%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java (55%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java (66%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java (51%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java (69%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java (60%) create mode 100644 proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java (72%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java (65%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto (100%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto (100%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto (100%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto (100%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto (100%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto (100%) rename {owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha => proto-google-cloud-websecurityscanner-v1alpha}/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto (100%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java (71%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java (61%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java (61%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java (63%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java (72%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java (100%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java (84%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java (70%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java (54%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java (72%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java (64%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java (66%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java (64%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java (66%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java (68%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java (62%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java (72%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java (69%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java (63%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java (62%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java (60%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java (71%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java (68%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java (73%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java (69%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java (67%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java (61%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java (72%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java (69%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java (69%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java (61%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java (73%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java (69%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java (72%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java (67%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java (100%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java (66%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java (75%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java (68%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java (100%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java (77%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java (72%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java (72%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java (77%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java (100%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java (84%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java (68%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java (55%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java (64%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java (66%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java (66%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java (64%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java (69%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java (55%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java (65%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java (51%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java (68%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java (60%) create mode 100644 proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java (72%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java (65%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto (100%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto (100%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto (100%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto (100%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto (100%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto (100%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto (100%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto (100%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto (100%) rename {owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta => proto-google-cloud-websecurityscanner-v1beta}/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java (100%) rename {owl-bot-staging/v1alpha/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java (100%) rename {owl-bot-staging/v1beta/samples => samples}/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java (100%) diff --git a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java index 43094053..d05e5287 100644 --- a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java @@ -63,13 +63,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1009,7 +1009,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListScanConfigsPagedResponse extends AbstractPagedListResponse< - ListScanConfigsRequest, ListScanConfigsResponse, ScanConfig, ListScanConfigsPage, + ListScanConfigsRequest, + ListScanConfigsResponse, + ScanConfig, + ListScanConfigsPage, ListScanConfigsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1059,7 +1062,10 @@ public ApiFuture createPageAsync( public static class ListScanConfigsFixedSizeCollection extends AbstractFixedSizeCollection< - ListScanConfigsRequest, ListScanConfigsResponse, ScanConfig, ListScanConfigsPage, + ListScanConfigsRequest, + ListScanConfigsResponse, + ScanConfig, + ListScanConfigsPage, ListScanConfigsFixedSizeCollection> { private ListScanConfigsFixedSizeCollection( @@ -1080,7 +1086,10 @@ protected ListScanConfigsFixedSizeCollection createCollection( public static class ListScanRunsPagedResponse extends AbstractPagedListResponse< - ListScanRunsRequest, ListScanRunsResponse, ScanRun, ListScanRunsPage, + ListScanRunsRequest, + ListScanRunsResponse, + ScanRun, + ListScanRunsPage, ListScanRunsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1129,7 +1138,10 @@ public ApiFuture createPageAsync( public static class ListScanRunsFixedSizeCollection extends AbstractFixedSizeCollection< - ListScanRunsRequest, ListScanRunsResponse, ScanRun, ListScanRunsPage, + ListScanRunsRequest, + ListScanRunsResponse, + ScanRun, + ListScanRunsPage, ListScanRunsFixedSizeCollection> { private ListScanRunsFixedSizeCollection(List pages, int collectionSize) { @@ -1149,7 +1161,10 @@ protected ListScanRunsFixedSizeCollection createCollection( public static class ListCrawledUrlsPagedResponse extends AbstractPagedListResponse< - ListCrawledUrlsRequest, ListCrawledUrlsResponse, CrawledUrl, ListCrawledUrlsPage, + ListCrawledUrlsRequest, + ListCrawledUrlsResponse, + CrawledUrl, + ListCrawledUrlsPage, ListCrawledUrlsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1199,7 +1214,10 @@ public ApiFuture createPageAsync( public static class ListCrawledUrlsFixedSizeCollection extends AbstractFixedSizeCollection< - ListCrawledUrlsRequest, ListCrawledUrlsResponse, CrawledUrl, ListCrawledUrlsPage, + ListCrawledUrlsRequest, + ListCrawledUrlsResponse, + CrawledUrl, + ListCrawledUrlsPage, ListCrawledUrlsFixedSizeCollection> { private ListCrawledUrlsFixedSizeCollection( @@ -1220,7 +1238,10 @@ protected ListCrawledUrlsFixedSizeCollection createCollection( public static class ListFindingsPagedResponse extends AbstractPagedListResponse< - ListFindingsRequest, ListFindingsResponse, Finding, ListFindingsPage, + ListFindingsRequest, + ListFindingsResponse, + Finding, + ListFindingsPage, ListFindingsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1269,7 +1290,10 @@ public ApiFuture createPageAsync( public static class ListFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFindingsRequest, ListFindingsResponse, Finding, ListFindingsPage, + ListFindingsRequest, + ListFindingsResponse, + Finding, + ListFindingsPage, ListFindingsFixedSizeCollection> { private ListFindingsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java index 4808c31f..838d6101 100644 --- a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java @@ -31,7 +31,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.websecurityscanner.v1.stub.WebSecurityScannerStubSettings; @@ -47,10 +46,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are + *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java index 708f4c8c..06ac8e88 100644 --- a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java @@ -54,7 +54,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java diff --git a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java diff --git a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java index aee163d6..863dfae8 100644 --- a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java @@ -85,10 +85,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are + *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java similarity index 98% rename from owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java index 664e46b3..6b4db15e 100644 --- a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java @@ -62,13 +62,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1718,7 +1718,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListScanConfigsPagedResponse extends AbstractPagedListResponse< - ListScanConfigsRequest, ListScanConfigsResponse, ScanConfig, ListScanConfigsPage, + ListScanConfigsRequest, + ListScanConfigsResponse, + ScanConfig, + ListScanConfigsPage, ListScanConfigsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1768,7 +1771,10 @@ public ApiFuture createPageAsync( public static class ListScanConfigsFixedSizeCollection extends AbstractFixedSizeCollection< - ListScanConfigsRequest, ListScanConfigsResponse, ScanConfig, ListScanConfigsPage, + ListScanConfigsRequest, + ListScanConfigsResponse, + ScanConfig, + ListScanConfigsPage, ListScanConfigsFixedSizeCollection> { private ListScanConfigsFixedSizeCollection( @@ -1789,7 +1795,10 @@ protected ListScanConfigsFixedSizeCollection createCollection( public static class ListScanRunsPagedResponse extends AbstractPagedListResponse< - ListScanRunsRequest, ListScanRunsResponse, ScanRun, ListScanRunsPage, + ListScanRunsRequest, + ListScanRunsResponse, + ScanRun, + ListScanRunsPage, ListScanRunsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1838,7 +1847,10 @@ public ApiFuture createPageAsync( public static class ListScanRunsFixedSizeCollection extends AbstractFixedSizeCollection< - ListScanRunsRequest, ListScanRunsResponse, ScanRun, ListScanRunsPage, + ListScanRunsRequest, + ListScanRunsResponse, + ScanRun, + ListScanRunsPage, ListScanRunsFixedSizeCollection> { private ListScanRunsFixedSizeCollection(List pages, int collectionSize) { @@ -1858,7 +1870,10 @@ protected ListScanRunsFixedSizeCollection createCollection( public static class ListCrawledUrlsPagedResponse extends AbstractPagedListResponse< - ListCrawledUrlsRequest, ListCrawledUrlsResponse, CrawledUrl, ListCrawledUrlsPage, + ListCrawledUrlsRequest, + ListCrawledUrlsResponse, + CrawledUrl, + ListCrawledUrlsPage, ListCrawledUrlsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1908,7 +1923,10 @@ public ApiFuture createPageAsync( public static class ListCrawledUrlsFixedSizeCollection extends AbstractFixedSizeCollection< - ListCrawledUrlsRequest, ListCrawledUrlsResponse, CrawledUrl, ListCrawledUrlsPage, + ListCrawledUrlsRequest, + ListCrawledUrlsResponse, + CrawledUrl, + ListCrawledUrlsPage, ListCrawledUrlsFixedSizeCollection> { private ListCrawledUrlsFixedSizeCollection( @@ -1929,7 +1947,10 @@ protected ListCrawledUrlsFixedSizeCollection createCollection( public static class ListFindingsPagedResponse extends AbstractPagedListResponse< - ListFindingsRequest, ListFindingsResponse, Finding, ListFindingsPage, + ListFindingsRequest, + ListFindingsResponse, + Finding, + ListFindingsPage, ListFindingsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1978,7 +1999,10 @@ public ApiFuture createPageAsync( public static class ListFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFindingsRequest, ListFindingsResponse, Finding, ListFindingsPage, + ListFindingsRequest, + ListFindingsResponse, + Finding, + ListFindingsPage, ListFindingsFixedSizeCollection> { private ListFindingsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java similarity index 97% rename from owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java index d58e4a91..430ab763 100644 --- a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java @@ -31,7 +31,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.websecurityscanner.v1alpha.stub.WebSecurityScannerStubSettings; @@ -47,10 +46,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are + *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json diff --git a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java similarity index 100% rename from owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java diff --git a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java similarity index 100% rename from owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java diff --git a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java similarity index 99% rename from owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java index 0ca6e3f7..0abb7f0f 100644 --- a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java @@ -55,7 +55,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java similarity index 100% rename from owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java diff --git a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java similarity index 100% rename from owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java diff --git a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java similarity index 100% rename from owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java diff --git a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java similarity index 99% rename from owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java index eedb2b0d..518a4b1c 100644 --- a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java @@ -85,10 +85,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are + *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java similarity index 98% rename from owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java index dc2d5c32..1cb0a29d 100644 --- a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java @@ -62,13 +62,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1718,7 +1718,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListScanConfigsPagedResponse extends AbstractPagedListResponse< - ListScanConfigsRequest, ListScanConfigsResponse, ScanConfig, ListScanConfigsPage, + ListScanConfigsRequest, + ListScanConfigsResponse, + ScanConfig, + ListScanConfigsPage, ListScanConfigsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1768,7 +1771,10 @@ public ApiFuture createPageAsync( public static class ListScanConfigsFixedSizeCollection extends AbstractFixedSizeCollection< - ListScanConfigsRequest, ListScanConfigsResponse, ScanConfig, ListScanConfigsPage, + ListScanConfigsRequest, + ListScanConfigsResponse, + ScanConfig, + ListScanConfigsPage, ListScanConfigsFixedSizeCollection> { private ListScanConfigsFixedSizeCollection( @@ -1789,7 +1795,10 @@ protected ListScanConfigsFixedSizeCollection createCollection( public static class ListScanRunsPagedResponse extends AbstractPagedListResponse< - ListScanRunsRequest, ListScanRunsResponse, ScanRun, ListScanRunsPage, + ListScanRunsRequest, + ListScanRunsResponse, + ScanRun, + ListScanRunsPage, ListScanRunsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1838,7 +1847,10 @@ public ApiFuture createPageAsync( public static class ListScanRunsFixedSizeCollection extends AbstractFixedSizeCollection< - ListScanRunsRequest, ListScanRunsResponse, ScanRun, ListScanRunsPage, + ListScanRunsRequest, + ListScanRunsResponse, + ScanRun, + ListScanRunsPage, ListScanRunsFixedSizeCollection> { private ListScanRunsFixedSizeCollection(List pages, int collectionSize) { @@ -1858,7 +1870,10 @@ protected ListScanRunsFixedSizeCollection createCollection( public static class ListCrawledUrlsPagedResponse extends AbstractPagedListResponse< - ListCrawledUrlsRequest, ListCrawledUrlsResponse, CrawledUrl, ListCrawledUrlsPage, + ListCrawledUrlsRequest, + ListCrawledUrlsResponse, + CrawledUrl, + ListCrawledUrlsPage, ListCrawledUrlsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1908,7 +1923,10 @@ public ApiFuture createPageAsync( public static class ListCrawledUrlsFixedSizeCollection extends AbstractFixedSizeCollection< - ListCrawledUrlsRequest, ListCrawledUrlsResponse, CrawledUrl, ListCrawledUrlsPage, + ListCrawledUrlsRequest, + ListCrawledUrlsResponse, + CrawledUrl, + ListCrawledUrlsPage, ListCrawledUrlsFixedSizeCollection> { private ListCrawledUrlsFixedSizeCollection( @@ -1929,7 +1947,10 @@ protected ListCrawledUrlsFixedSizeCollection createCollection( public static class ListFindingsPagedResponse extends AbstractPagedListResponse< - ListFindingsRequest, ListFindingsResponse, Finding, ListFindingsPage, + ListFindingsRequest, + ListFindingsResponse, + Finding, + ListFindingsPage, ListFindingsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1978,7 +1999,10 @@ public ApiFuture createPageAsync( public static class ListFindingsFixedSizeCollection extends AbstractFixedSizeCollection< - ListFindingsRequest, ListFindingsResponse, Finding, ListFindingsPage, + ListFindingsRequest, + ListFindingsResponse, + Finding, + ListFindingsPage, ListFindingsFixedSizeCollection> { private ListFindingsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java similarity index 97% rename from owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java index 39b6991d..b218cd5b 100644 --- a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java @@ -31,7 +31,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.websecurityscanner.v1beta.stub.WebSecurityScannerStubSettings; @@ -47,10 +46,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are + *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json diff --git a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java similarity index 100% rename from owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java diff --git a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java diff --git a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java similarity index 99% rename from owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java index 4d268738..ee47a4c8 100644 --- a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java @@ -55,7 +55,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java diff --git a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java similarity index 100% rename from owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java diff --git a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java similarity index 100% rename from owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java diff --git a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java similarity index 99% rename from owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java rename to google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java index 634d66fc..52c5e9b6 100644 --- a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java +++ b/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java @@ -85,10 +85,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are + *
  • The default service address (websecurityscanner.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java rename to google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java diff --git a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java rename to google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java diff --git a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java rename to google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java rename to google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java diff --git a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java similarity index 100% rename from owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java rename to google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java diff --git a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java similarity index 100% rename from owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java rename to google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java diff --git a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java rename to google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java diff --git a/owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java similarity index 100% rename from owl-bot-staging/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java rename to google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java diff --git a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java similarity index 100% rename from owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java rename to google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java diff --git a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java similarity index 100% rename from owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java rename to google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java diff --git a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java rename to google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java diff --git a/owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java b/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java similarity index 100% rename from owl-bot-staging/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java rename to google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java diff --git a/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java b/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java new file mode 100644 index 00000000..ce8eb5ce --- /dev/null +++ b/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java @@ -0,0 +1,1825 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.websecurityscanner.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Web Security Scanner Service identifies security vulnerabilities in web
+ * applications hosted on Google Cloud. It crawls your application, and
+ * attempts to exercise as many user inputs and event handlers as possible.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/websecurityscanner/v1/web_security_scanner.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WebSecurityScannerGrpc { + + private WebSecurityScannerGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.websecurityscanner.v1.WebSecurityScanner"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig> + getCreateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig> + getCreateScanConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig> + getCreateScanConfigMethod; + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) + == null) { + WebSecurityScannerGrpc.getCreateScanConfigMethod = + getCreateScanConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) + .build(); + } + } + } + return getCreateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, com.google.protobuf.Empty> + getDeleteScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", + requestType = com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, com.google.protobuf.Empty> + getDeleteScanConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, + com.google.protobuf.Empty> + getDeleteScanConfigMethod; + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) + == null) { + WebSecurityScannerGrpc.getDeleteScanConfigMethod = + getDeleteScanConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) + .build(); + } + } + } + return getDeleteScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig> + getGetScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", + requestType = com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig> + getGetScanConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig> + getGetScanConfigMethod; + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + WebSecurityScannerGrpc.getGetScanConfigMethod = + getGetScanConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) + .build(); + } + } + } + return getGetScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse> + getListScanConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", + requestType = com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse> + getListScanConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse> + getListScanConfigsMethod; + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + WebSecurityScannerGrpc.getListScanConfigsMethod = + getListScanConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) + .build(); + } + } + } + return getListScanConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig> + getUpdateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig> + getUpdateScanConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig> + getUpdateScanConfigMethod; + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) + == null) { + WebSecurityScannerGrpc.getUpdateScanConfigMethod = + getUpdateScanConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) + .build(); + } + } + } + return getUpdateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun> + getStartScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartScanRun", + requestType = com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun> + getStartScanRunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun> + getStartScanRunMethod; + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + WebSecurityScannerGrpc.getStartScanRunMethod = + getStartScanRunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.StartScanRunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) + .build(); + } + } + } + return getStartScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun> + getGetScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanRun", + requestType = com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun> + getGetScanRunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun> + getGetScanRunMethod; + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + WebSecurityScannerGrpc.getGetScanRunMethod = + getGetScanRunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.GetScanRunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) + .build(); + } + } + } + return getGetScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse> + getListScanRunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", + requestType = com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse> + getListScanRunsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse> + getListScanRunsMethod; + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + WebSecurityScannerGrpc.getListScanRunsMethod = + getListScanRunsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) + .build(); + } + } + } + return getListScanRunsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun> + getStopScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopScanRun", + requestType = com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun> + getStopScanRunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun> + getStopScanRunMethod; + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + WebSecurityScannerGrpc.getStopScanRunMethod = + getStopScanRunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.StopScanRunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) + .build(); + } + } + } + return getStopScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse> + getListCrawledUrlsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", + requestType = com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse> + getListCrawledUrlsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse> + getListCrawledUrlsMethod; + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + WebSecurityScannerGrpc.getListCrawledUrlsMethod = + getListCrawledUrlsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) + .build(); + } + } + } + return getListCrawledUrlsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.GetFindingRequest, + com.google.cloud.websecurityscanner.v1.Finding> + getGetFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFinding", + requestType = com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.GetFindingRequest, + com.google.cloud.websecurityscanner.v1.Finding> + getGetFindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.GetFindingRequest, + com.google.cloud.websecurityscanner.v1.Finding> + getGetFindingMethod; + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + WebSecurityScannerGrpc.getGetFindingMethod = + getGetFindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.GetFindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) + .build(); + } + } + } + return getGetFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1.ListFindingsResponse> + getListFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindings", + requestType = com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1.ListFindingsResponse> + getListFindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1.ListFindingsResponse> + getListFindingsMethod; + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + WebSecurityScannerGrpc.getListFindingsMethod = + getListFindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListFindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListFindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) + .build(); + } + } + } + return getListFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> + getListFindingTypeStatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", + requestType = com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> + getListFindingTypeStatsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> + getListFindingTypeStatsMethod; + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) + == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) + == null) { + WebSecurityScannerGrpc.getListFindingTypeStatsMethod = + getListFindingTypeStatsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) + .build(); + } + } + } + return getListFindingTypeStatsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + }; + return WebSecurityScannerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WebSecurityScannerBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + }; + return WebSecurityScannerBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static WebSecurityScannerFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + }; + return WebSecurityScannerFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public abstract static class WebSecurityScannerImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig( + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateScanConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig( + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteScanConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig( + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetScanConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs( + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListScanConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig( + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateScanConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun( + com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartScanRunMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun( + com.google.cloud.websecurityscanner.v1.GetScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns( + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListScanRunsMethod(), responseObserver); + } + + /** + * + * + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun( + com.google.cloud.websecurityscanner.v1.StopScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopScanRunMethod(), responseObserver); + } + + /** + * + * + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCrawledUrlsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding( + com.google.cloud.websecurityscanner.v1.GetFindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); + } + + /** + * + * + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings( + com.google.cloud.websecurityscanner.v1.ListFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFindingTypeStatsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig>( + this, METHODID_CREATE_SCAN_CONFIG))) + .addMethod( + getDeleteScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_SCAN_CONFIG))) + .addMethod( + getGetScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig>( + this, METHODID_GET_SCAN_CONFIG))) + .addMethod( + getListScanConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse>( + this, METHODID_LIST_SCAN_CONFIGS))) + .addMethod( + getUpdateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1.ScanConfig>( + this, METHODID_UPDATE_SCAN_CONFIG))) + .addMethod( + getStartScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun>( + this, METHODID_START_SCAN_RUN))) + .addMethod( + getGetScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun>(this, METHODID_GET_SCAN_RUN))) + .addMethod( + getListScanRunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse>( + this, METHODID_LIST_SCAN_RUNS))) + .addMethod( + getStopScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1.ScanRun>( + this, METHODID_STOP_SCAN_RUN))) + .addMethod( + getListCrawledUrlsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse>( + this, METHODID_LIST_CRAWLED_URLS))) + .addMethod( + getGetFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.GetFindingRequest, + com.google.cloud.websecurityscanner.v1.Finding>(this, METHODID_GET_FINDING))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1.ListFindingsResponse>( + this, METHODID_LIST_FINDINGS))) + .addMethod( + getListFindingTypeStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse>( + this, METHODID_LIST_FINDING_TYPE_STATS))) + .build(); + } + } + + /** + * + * + *
+   * Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerStub + extends io.grpc.stub.AbstractAsyncStub { + private WebSecurityScannerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig( + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig( + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig( + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs( + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig( + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun( + com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun( + com.google.cloud.websecurityscanner.v1.GetScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns( + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun( + com.google.cloud.websecurityscanner.v1.StopScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding( + com.google.cloud.websecurityscanner.v1.GetFindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings( + com.google.cloud.websecurityscanner.v1.ListFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private WebSecurityScannerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanConfig createScanConfig( + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.protobuf.Empty deleteScanConfig( + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig( + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse listScanConfigs( + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanConfig updateScanConfig( + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanRun startScanRun( + com.google.cloud.websecurityscanner.v1.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartScanRunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanRun getScanRun( + com.google.cloud.websecurityscanner.v1.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanRunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse listScanRuns( + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanRunsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ScanRun stopScanRun( + com.google.cloud.websecurityscanner.v1.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopScanRunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse listCrawledUrls( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.Finding getFinding( + com.google.cloud.websecurityscanner.v1.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ListFindingsResponse listFindings( + com.google.cloud.websecurityscanner.v1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse listFindingTypeStats( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerFutureStub + extends io.grpc.stub.AbstractFutureStub { + private WebSecurityScannerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1.ScanConfig> + createScanConfig(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteScanConfig(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1.ScanConfig> + getScanConfig(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse> + listScanConfigs(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1.ScanConfig> + updateScanConfig(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1.ScanRun> + startScanRun(com.google.cloud.websecurityscanner.v1.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1.ScanRun> + getScanRun(com.google.cloud.websecurityscanner.v1.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse> + listScanRuns(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1.ScanRun> + stopScanRun(com.google.cloud.websecurityscanner.v1.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse> + listCrawledUrls(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1.Finding> + getFinding(com.google.cloud.websecurityscanner.v1.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1.ListFindingsResponse> + listFindings(com.google.cloud.websecurityscanner.v1.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse> + listFindingTypeStats( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SCAN_CONFIG = 0; + private static final int METHODID_DELETE_SCAN_CONFIG = 1; + private static final int METHODID_GET_SCAN_CONFIG = 2; + private static final int METHODID_LIST_SCAN_CONFIGS = 3; + private static final int METHODID_UPDATE_SCAN_CONFIG = 4; + private static final int METHODID_START_SCAN_RUN = 5; + private static final int METHODID_GET_SCAN_RUN = 6; + private static final int METHODID_LIST_SCAN_RUNS = 7; + private static final int METHODID_STOP_SCAN_RUN = 8; + private static final int METHODID_LIST_CRAWLED_URLS = 9; + private static final int METHODID_GET_FINDING = 10; + private static final int METHODID_LIST_FINDINGS = 11; + private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final WebSecurityScannerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SCAN_CONFIG: + serviceImpl.createScanConfig( + (com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SCAN_CONFIG: + serviceImpl.deleteScanConfig( + (com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCAN_CONFIG: + serviceImpl.getScanConfig( + (com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SCAN_CONFIGS: + serviceImpl.listScanConfigs( + (com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse>) + responseObserver); + break; + case METHODID_UPDATE_SCAN_CONFIG: + serviceImpl.updateScanConfig( + (com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_START_SCAN_RUN: + serviceImpl.startScanRun( + (com.google.cloud.websecurityscanner.v1.StartScanRunRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SCAN_RUN: + serviceImpl.getScanRun( + (com.google.cloud.websecurityscanner.v1.GetScanRunRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SCAN_RUNS: + serviceImpl.listScanRuns( + (com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse>) + responseObserver); + break; + case METHODID_STOP_SCAN_RUN: + serviceImpl.stopScanRun( + (com.google.cloud.websecurityscanner.v1.StopScanRunRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CRAWLED_URLS: + serviceImpl.listCrawledUrls( + (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse>) + responseObserver); + break; + case METHODID_GET_FINDING: + serviceImpl.getFinding( + (com.google.cloud.websecurityscanner.v1.GetFindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_FINDINGS: + serviceImpl.listFindings( + (com.google.cloud.websecurityscanner.v1.ListFindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1.ListFindingsResponse>) + responseObserver); + break; + case METHODID_LIST_FINDING_TYPE_STATS: + serviceImpl.listFindingTypeStats( + (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WebSecurityScannerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("WebSecurityScanner"); + } + } + + private static final class WebSecurityScannerFileDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier { + WebSecurityScannerFileDescriptorSupplier() {} + } + + private static final class WebSecurityScannerMethodDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + WebSecurityScannerMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (WebSecurityScannerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) + .addMethod(getCreateScanConfigMethod()) + .addMethod(getDeleteScanConfigMethod()) + .addMethod(getGetScanConfigMethod()) + .addMethod(getListScanConfigsMethod()) + .addMethod(getUpdateScanConfigMethod()) + .addMethod(getStartScanRunMethod()) + .addMethod(getGetScanRunMethod()) + .addMethod(getListScanRunsMethod()) + .addMethod(getStopScanRunMethod()) + .addMethod(getListCrawledUrlsMethod()) + .addMethod(getGetFindingMethod()) + .addMethod(getListFindingsMethod()) + .addMethod(getListFindingTypeStatsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java b/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java new file mode 100644 index 00000000..bd372ac9 --- /dev/null +++ b/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java @@ -0,0 +1,1848 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.websecurityscanner.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+ * applications hosted on Google Cloud Platform. It crawls your application, and
+ * attempts to exercise as many user inputs and event handlers as possible.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WebSecurityScannerGrpc { + + private WebSecurityScannerGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig> + getCreateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig> + getCreateScanConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig> + getCreateScanConfigMethod; + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) + == null) { + WebSecurityScannerGrpc.getCreateScanConfigMethod = + getCreateScanConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) + .build(); + } + } + } + return getCreateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, + com.google.protobuf.Empty> + getDeleteScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", + requestType = com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, + com.google.protobuf.Empty> + getDeleteScanConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, + com.google.protobuf.Empty> + getDeleteScanConfigMethod; + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) + == null) { + WebSecurityScannerGrpc.getDeleteScanConfigMethod = + getDeleteScanConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) + .build(); + } + } + } + return getDeleteScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig> + getGetScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", + requestType = com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig> + getGetScanConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig> + getGetScanConfigMethod; + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + WebSecurityScannerGrpc.getGetScanConfigMethod = + getGetScanConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) + .build(); + } + } + } + return getGetScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> + getListScanConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", + requestType = com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> + getListScanConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> + getListScanConfigsMethod; + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + WebSecurityScannerGrpc.getListScanConfigsMethod = + getListScanConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) + .build(); + } + } + } + return getListScanConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig> + getUpdateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig> + getUpdateScanConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig> + getUpdateScanConfigMethod; + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) + == null) { + WebSecurityScannerGrpc.getUpdateScanConfigMethod = + getUpdateScanConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) + .build(); + } + } + } + return getUpdateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun> + getStartScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartScanRun", + requestType = com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun> + getStartScanRunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun> + getStartScanRunMethod; + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + WebSecurityScannerGrpc.getStartScanRunMethod = + getStartScanRunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanRun + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) + .build(); + } + } + } + return getStartScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun> + getGetScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanRun", + requestType = com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun> + getGetScanRunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun> + getGetScanRunMethod; + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + WebSecurityScannerGrpc.getGetScanRunMethod = + getGetScanRunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanRun + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) + .build(); + } + } + } + return getGetScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> + getListScanRunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", + requestType = com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> + getListScanRunsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> + getListScanRunsMethod; + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + WebSecurityScannerGrpc.getListScanRunsMethod = + getListScanRunsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) + .build(); + } + } + } + return getListScanRunsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun> + getStopScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopScanRun", + requestType = com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun> + getStopScanRunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun> + getStopScanRunMethod; + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + WebSecurityScannerGrpc.getStopScanRunMethod = + getStopScanRunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ScanRun + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) + .build(); + } + } + } + return getStopScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> + getListCrawledUrlsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", + requestType = com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> + getListCrawledUrlsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> + getListCrawledUrlsMethod; + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + WebSecurityScannerGrpc.getListCrawledUrlsMethod = + getListCrawledUrlsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) + .build(); + } + } + } + return getListCrawledUrlsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest, + com.google.cloud.websecurityscanner.v1alpha.Finding> + getGetFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFinding", + requestType = com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest, + com.google.cloud.websecurityscanner.v1alpha.Finding> + getGetFindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest, + com.google.cloud.websecurityscanner.v1alpha.Finding> + getGetFindingMethod; + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + WebSecurityScannerGrpc.getGetFindingMethod = + getGetFindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.Finding + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) + .build(); + } + } + } + return getGetFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> + getListFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindings", + requestType = com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> + getListFindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> + getListFindingsMethod; + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + WebSecurityScannerGrpc.getListFindingsMethod = + getListFindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) + .build(); + } + } + } + return getListFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> + getListFindingTypeStatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", + requestType = com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> + getListFindingTypeStatsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> + getListFindingTypeStatsMethod; + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) + == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) + == null) { + WebSecurityScannerGrpc.getListFindingTypeStatsMethod = + getListFindingTypeStatsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha + .ListFindingTypeStatsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1alpha + .ListFindingTypeStatsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) + .build(); + } + } + } + return getListFindingTypeStatsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + }; + return WebSecurityScannerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WebSecurityScannerBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + }; + return WebSecurityScannerBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static WebSecurityScannerFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + }; + return WebSecurityScannerFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public abstract static class WebSecurityScannerImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig( + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateScanConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig( + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteScanConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig( + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetScanConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListScanConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig( + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateScanConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun( + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartScanRunMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun( + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListScanRunsMethod(), responseObserver); + } + + /** + * + * + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun( + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopScanRunMethod(), responseObserver); + } + + /** + * + * + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCrawledUrlsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding( + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); + } + + /** + * + * + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFindingTypeStatsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( + this, METHODID_CREATE_SCAN_CONFIG))) + .addMethod( + getDeleteScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_SCAN_CONFIG))) + .addMethod( + getGetScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( + this, METHODID_GET_SCAN_CONFIG))) + .addMethod( + getListScanConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse>( + this, METHODID_LIST_SCAN_CONFIGS))) + .addMethod( + getUpdateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( + this, METHODID_UPDATE_SCAN_CONFIG))) + .addMethod( + getStartScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun>( + this, METHODID_START_SCAN_RUN))) + .addMethod( + getGetScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun>( + this, METHODID_GET_SCAN_RUN))) + .addMethod( + getListScanRunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse>( + this, METHODID_LIST_SCAN_RUNS))) + .addMethod( + getStopScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1alpha.ScanRun>( + this, METHODID_STOP_SCAN_RUN))) + .addMethod( + getListCrawledUrlsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse>( + this, METHODID_LIST_CRAWLED_URLS))) + .addMethod( + getGetFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest, + com.google.cloud.websecurityscanner.v1alpha.Finding>( + this, METHODID_GET_FINDING))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse>( + this, METHODID_LIST_FINDINGS))) + .addMethod( + getListFindingTypeStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse>( + this, METHODID_LIST_FINDING_TYPE_STATS))) + .build(); + } + } + + /** + * + * + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerStub + extends io.grpc.stub.AbstractAsyncStub { + private WebSecurityScannerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig( + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig( + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig( + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig( + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun( + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun( + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun( + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding( + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private WebSecurityScannerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig createScanConfig( + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.protobuf.Empty deleteScanConfig( + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig( + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse listScanConfigs( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig updateScanConfig( + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanRun startScanRun( + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartScanRunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRun( + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanRunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse listScanRuns( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanRunsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ScanRun stopScanRun( + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopScanRunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse listCrawledUrls( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.Finding getFinding( + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse listFindings( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse + listFindingTypeStats( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerFutureStub + extends io.grpc.stub.AbstractFutureStub { + private WebSecurityScannerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig> + createScanConfig( + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteScanConfig( + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig> + getScanConfig(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse> + listScanConfigs( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig> + updateScanConfig( + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1alpha.ScanRun> + startScanRun(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1alpha.ScanRun> + getScanRun(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse> + listScanRuns(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1alpha.ScanRun> + stopScanRun(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse> + listCrawledUrls( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1alpha.Finding> + getFinding(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse> + listFindings(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse> + listFindingTypeStats( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SCAN_CONFIG = 0; + private static final int METHODID_DELETE_SCAN_CONFIG = 1; + private static final int METHODID_GET_SCAN_CONFIG = 2; + private static final int METHODID_LIST_SCAN_CONFIGS = 3; + private static final int METHODID_UPDATE_SCAN_CONFIG = 4; + private static final int METHODID_START_SCAN_RUN = 5; + private static final int METHODID_GET_SCAN_RUN = 6; + private static final int METHODID_LIST_SCAN_RUNS = 7; + private static final int METHODID_STOP_SCAN_RUN = 8; + private static final int METHODID_LIST_CRAWLED_URLS = 9; + private static final int METHODID_GET_FINDING = 10; + private static final int METHODID_LIST_FINDINGS = 11; + private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final WebSecurityScannerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SCAN_CONFIG: + serviceImpl.createScanConfig( + (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SCAN_CONFIG: + serviceImpl.deleteScanConfig( + (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCAN_CONFIG: + serviceImpl.getScanConfig( + (com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SCAN_CONFIGS: + serviceImpl.listScanConfigs( + (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse>) + responseObserver); + break; + case METHODID_UPDATE_SCAN_CONFIG: + serviceImpl.updateScanConfig( + (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_START_SCAN_RUN: + serviceImpl.startScanRun( + (com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SCAN_RUN: + serviceImpl.getScanRun( + (com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SCAN_RUNS: + serviceImpl.listScanRuns( + (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse>) + responseObserver); + break; + case METHODID_STOP_SCAN_RUN: + serviceImpl.stopScanRun( + (com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CRAWLED_URLS: + serviceImpl.listCrawledUrls( + (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse>) + responseObserver); + break; + case METHODID_GET_FINDING: + serviceImpl.getFinding( + (com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_FINDINGS: + serviceImpl.listFindings( + (com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse>) + responseObserver); + break; + case METHODID_LIST_FINDING_TYPE_STATS: + serviceImpl.listFindingTypeStats( + (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WebSecurityScannerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("WebSecurityScanner"); + } + } + + private static final class WebSecurityScannerFileDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier { + WebSecurityScannerFileDescriptorSupplier() {} + } + + private static final class WebSecurityScannerMethodDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + WebSecurityScannerMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (WebSecurityScannerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) + .addMethod(getCreateScanConfigMethod()) + .addMethod(getDeleteScanConfigMethod()) + .addMethod(getGetScanConfigMethod()) + .addMethod(getListScanConfigsMethod()) + .addMethod(getUpdateScanConfigMethod()) + .addMethod(getStartScanRunMethod()) + .addMethod(getGetScanRunMethod()) + .addMethod(getListScanRunsMethod()) + .addMethod(getStopScanRunMethod()) + .addMethod(getListCrawledUrlsMethod()) + .addMethod(getGetFindingMethod()) + .addMethod(getListFindingsMethod()) + .addMethod(getListFindingTypeStatsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java b/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java new file mode 100644 index 00000000..2e13b836 --- /dev/null +++ b/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java @@ -0,0 +1,1842 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.websecurityscanner.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+ * applications hosted on Google Cloud Platform. It crawls your application, and
+ * attempts to exercise as many user inputs and event handlers as possible.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WebSecurityScannerGrpc { + + private WebSecurityScannerGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.websecurityscanner.v1beta.WebSecurityScanner"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig> + getCreateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig> + getCreateScanConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig> + getCreateScanConfigMethod; + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) + == null) { + WebSecurityScannerGrpc.getCreateScanConfigMethod = + getCreateScanConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) + .build(); + } + } + } + return getCreateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, + com.google.protobuf.Empty> + getDeleteScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", + requestType = com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, + com.google.protobuf.Empty> + getDeleteScanConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, + com.google.protobuf.Empty> + getDeleteScanConfigMethod; + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) + == null) { + WebSecurityScannerGrpc.getDeleteScanConfigMethod = + getDeleteScanConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) + .build(); + } + } + } + return getDeleteScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig> + getGetScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", + requestType = com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig> + getGetScanConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig> + getGetScanConfigMethod; + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { + WebSecurityScannerGrpc.getGetScanConfigMethod = + getGetScanConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) + .build(); + } + } + } + return getGetScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> + getListScanConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", + requestType = com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> + getListScanConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> + getListScanConfigsMethod; + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { + WebSecurityScannerGrpc.getListScanConfigsMethod = + getListScanConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) + .build(); + } + } + } + return getListScanConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig> + getUpdateScanConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", + requestType = com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig> + getUpdateScanConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig> + getUpdateScanConfigMethod; + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) + == null) { + WebSecurityScannerGrpc.getUpdateScanConfigMethod = + getUpdateScanConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) + .build(); + } + } + } + return getUpdateScanConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun> + getStartScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartScanRun", + requestType = com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun> + getStartScanRunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun> + getStartScanRunMethod; + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { + WebSecurityScannerGrpc.getStartScanRunMethod = + getStartScanRunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanRun + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) + .build(); + } + } + } + return getStartScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun> + getGetScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetScanRun", + requestType = com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun> + getGetScanRunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun> + getGetScanRunMethod; + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { + WebSecurityScannerGrpc.getGetScanRunMethod = + getGetScanRunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanRun + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) + .build(); + } + } + } + return getGetScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse> + getListScanRunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", + requestType = com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse> + getListScanRunsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse> + getListScanRunsMethod; + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { + WebSecurityScannerGrpc.getListScanRunsMethod = + getListScanRunsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) + .build(); + } + } + } + return getListScanRunsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun> + getStopScanRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopScanRun", + requestType = com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun> + getStopScanRunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun> + getStopScanRunMethod; + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { + WebSecurityScannerGrpc.getStopScanRunMethod = + getStopScanRunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ScanRun + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) + .build(); + } + } + } + return getStopScanRunMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> + getListCrawledUrlsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", + requestType = com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> + getListCrawledUrlsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> + getListCrawledUrlsMethod; + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { + WebSecurityScannerGrpc.getListCrawledUrlsMethod = + getListCrawledUrlsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) + .build(); + } + } + } + return getListCrawledUrlsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest, + com.google.cloud.websecurityscanner.v1beta.Finding> + getGetFindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFinding", + requestType = com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.Finding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest, + com.google.cloud.websecurityscanner.v1beta.Finding> + getGetFindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest, + com.google.cloud.websecurityscanner.v1beta.Finding> + getGetFindingMethod; + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { + WebSecurityScannerGrpc.getGetFindingMethod = + getGetFindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.Finding + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) + .build(); + } + } + } + return getGetFindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse> + getListFindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindings", + requestType = com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse> + getListFindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse> + getListFindingsMethod; + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { + WebSecurityScannerGrpc.getListFindingsMethod = + getListFindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) + .build(); + } + } + } + return getListFindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> + getListFindingTypeStatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", + requestType = com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, + responseType = com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> + getListFindingTypeStatsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> + getListFindingTypeStatsMethod; + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) + == null) { + synchronized (WebSecurityScannerGrpc.class) { + if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) + == null) { + WebSecurityScannerGrpc.getListFindingTypeStatsMethod = + getListFindingTypeStatsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.websecurityscanner.v1beta + .ListFindingTypeStatsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) + .build(); + } + } + } + return getListFindingTypeStatsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + }; + return WebSecurityScannerStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WebSecurityScannerBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + }; + return WebSecurityScannerBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static WebSecurityScannerFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WebSecurityScannerFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + }; + return WebSecurityScannerFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public abstract static class WebSecurityScannerImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig( + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateScanConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig( + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteScanConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig( + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetScanConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListScanConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig( + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateScanConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun( + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartScanRunMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun( + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListScanRunsMethod(), responseObserver); + } + + /** + * + * + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun( + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopScanRunMethod(), responseObserver); + } + + /** + * + * + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCrawledUrlsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding( + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); + } + + /** + * + * + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings( + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFindingTypeStatsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig>( + this, METHODID_CREATE_SCAN_CONFIG))) + .addMethod( + getDeleteScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_SCAN_CONFIG))) + .addMethod( + getGetScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig>( + this, METHODID_GET_SCAN_CONFIG))) + .addMethod( + getListScanConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest, + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse>( + this, METHODID_LIST_SCAN_CONFIGS))) + .addMethod( + getUpdateScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest, + com.google.cloud.websecurityscanner.v1beta.ScanConfig>( + this, METHODID_UPDATE_SCAN_CONFIG))) + .addMethod( + getStartScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun>( + this, METHODID_START_SCAN_RUN))) + .addMethod( + getGetScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun>( + this, METHODID_GET_SCAN_RUN))) + .addMethod( + getListScanRunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest, + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse>( + this, METHODID_LIST_SCAN_RUNS))) + .addMethod( + getStopScanRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest, + com.google.cloud.websecurityscanner.v1beta.ScanRun>( + this, METHODID_STOP_SCAN_RUN))) + .addMethod( + getListCrawledUrlsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest, + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse>( + this, METHODID_LIST_CRAWLED_URLS))) + .addMethod( + getGetFindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest, + com.google.cloud.websecurityscanner.v1beta.Finding>( + this, METHODID_GET_FINDING))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse>( + this, METHODID_LIST_FINDINGS))) + .addMethod( + getListFindingTypeStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse>( + this, METHODID_LIST_FINDING_TYPE_STATS))) + .build(); + } + } + + /** + * + * + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerStub + extends io.grpc.stub.AbstractAsyncStub { + private WebSecurityScannerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public void createScanConfig( + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public void deleteScanConfig( + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a ScanConfig.
+     * 
+ */ + public void getScanConfig( + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public void listScanConfigs( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public void updateScanConfig( + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public void startScanRun( + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a ScanRun.
+     * 
+ */ + public void getScanRun( + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public void listScanRuns( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public void stopScanRun( + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public void listCrawledUrls( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a Finding.
+     * 
+ */ + public void getFinding( + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public void listFindings( + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public void listFindingTypeStats( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private WebSecurityScannerBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanConfig createScanConfig( + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.protobuf.Empty deleteScanConfig( + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig( + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse listScanConfigs( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanConfig updateScanConfig( + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanRun startScanRun( + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartScanRunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRun( + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScanRunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse listScanRuns( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListScanRunsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ScanRun stopScanRun( + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopScanRunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse listCrawledUrls( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.Finding getFinding( + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse listFindings( + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse + listFindingTypeStats( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
+   * applications hosted on Google Cloud Platform. It crawls your application, and
+   * attempts to exercise as many user inputs and event handlers as possible.
+   * 
+ */ + public static final class WebSecurityScannerFutureStub + extends io.grpc.stub.AbstractFutureStub { + private WebSecurityScannerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WebSecurityScannerFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WebSecurityScannerFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1beta.ScanConfig> + createScanConfig( + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an existing ScanConfig and its child resources.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteScanConfig( + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1beta.ScanConfig> + getScanConfig(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists ScanConfigs under a given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse> + listScanConfigs(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a ScanConfig. This method support partial update of a ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1beta.ScanConfig> + updateScanConfig( + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Start a ScanRun according to the given ScanConfig.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1beta.ScanRun> + startScanRun(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1beta.ScanRun> + getScanRun(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
+     * stop time.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse> + listScanRuns(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stops a ScanRun. The stopped ScanRun is returned.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1beta.ScanRun> + stopScanRun(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List CrawledUrls under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse> + listCrawledUrls(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a Finding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1beta.Finding> + getFinding(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List Findings under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse> + listFindings(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List all FindingTypeStats under a given ScanRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse> + listFindingTypeStats( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SCAN_CONFIG = 0; + private static final int METHODID_DELETE_SCAN_CONFIG = 1; + private static final int METHODID_GET_SCAN_CONFIG = 2; + private static final int METHODID_LIST_SCAN_CONFIGS = 3; + private static final int METHODID_UPDATE_SCAN_CONFIG = 4; + private static final int METHODID_START_SCAN_RUN = 5; + private static final int METHODID_GET_SCAN_RUN = 6; + private static final int METHODID_LIST_SCAN_RUNS = 7; + private static final int METHODID_STOP_SCAN_RUN = 8; + private static final int METHODID_LIST_CRAWLED_URLS = 9; + private static final int METHODID_GET_FINDING = 10; + private static final int METHODID_LIST_FINDINGS = 11; + private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final WebSecurityScannerImplBase serviceImpl; + private final int methodId; + + MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SCAN_CONFIG: + serviceImpl.createScanConfig( + (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SCAN_CONFIG: + serviceImpl.deleteScanConfig( + (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCAN_CONFIG: + serviceImpl.getScanConfig( + (com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SCAN_CONFIGS: + serviceImpl.listScanConfigs( + (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse>) + responseObserver); + break; + case METHODID_UPDATE_SCAN_CONFIG: + serviceImpl.updateScanConfig( + (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_START_SCAN_RUN: + serviceImpl.startScanRun( + (com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SCAN_RUN: + serviceImpl.getScanRun( + (com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SCAN_RUNS: + serviceImpl.listScanRuns( + (com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse>) + responseObserver); + break; + case METHODID_STOP_SCAN_RUN: + serviceImpl.stopScanRun( + (com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CRAWLED_URLS: + serviceImpl.listCrawledUrls( + (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse>) + responseObserver); + break; + case METHODID_GET_FINDING: + serviceImpl.getFinding( + (com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_FINDINGS: + serviceImpl.listFindings( + (com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse>) + responseObserver); + break; + case METHODID_LIST_FINDING_TYPE_STATS: + serviceImpl.listFindingTypeStats( + (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WebSecurityScannerBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("WebSecurityScanner"); + } + } + + private static final class WebSecurityScannerFileDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier { + WebSecurityScannerFileDescriptorSupplier() {} + } + + private static final class WebSecurityScannerMethodDescriptorSupplier + extends WebSecurityScannerBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + WebSecurityScannerMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (WebSecurityScannerGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) + .addMethod(getCreateScanConfigMethod()) + .addMethod(getDeleteScanConfigMethod()) + .addMethod(getGetScanConfigMethod()) + .addMethod(getListScanConfigsMethod()) + .addMethod(getUpdateScanConfigMethod()) + .addMethod(getStartScanRunMethod()) + .addMethod(getGetScanRunMethod()) + .addMethod(getListScanRunsMethod()) + .addMethod(getStopScanRunMethod()) + .addMethod(getListCrawledUrlsMethod()) + .addMethod(getGetFindingMethod()) + .addMethod(getListFindingsMethod()) + .addMethod(getListFindingTypeStatsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java deleted file mode 100644 index 90f5d7df..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java +++ /dev/null @@ -1,1349 +0,0 @@ -package com.google.cloud.websecurityscanner.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Web Security Scanner Service identifies security vulnerabilities in web
- * applications hosted on Google Cloud. It crawls your application, and
- * attempts to exercise as many user inputs and event handlers as possible.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/websecurityscanner/v1/web_security_scanner.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WebSecurityScannerGrpc { - - private WebSecurityScannerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.websecurityscanner.v1.WebSecurityScanner"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateScanConfigMethod() { - io.grpc.MethodDescriptor getCreateScanConfigMethod; - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { - WebSecurityScannerGrpc.getCreateScanConfigMethod = getCreateScanConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) - .build(); - } - } - } - return getCreateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", - requestType = com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteScanConfigMethod() { - io.grpc.MethodDescriptor getDeleteScanConfigMethod; - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { - WebSecurityScannerGrpc.getDeleteScanConfigMethod = getDeleteScanConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) - .build(); - } - } - } - return getDeleteScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", - requestType = com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetScanConfigMethod() { - io.grpc.MethodDescriptor getGetScanConfigMethod; - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - WebSecurityScannerGrpc.getGetScanConfigMethod = getGetScanConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) - .build(); - } - } - } - return getGetScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getListScanConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", - requestType = com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListScanConfigsMethod() { - io.grpc.MethodDescriptor getListScanConfigsMethod; - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - WebSecurityScannerGrpc.getListScanConfigsMethod = getListScanConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) - .build(); - } - } - } - return getListScanConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateScanConfigMethod() { - io.grpc.MethodDescriptor getUpdateScanConfigMethod; - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { - WebSecurityScannerGrpc.getUpdateScanConfigMethod = getUpdateScanConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) - .build(); - } - } - } - return getUpdateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartScanRun", - requestType = com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartScanRunMethod() { - io.grpc.MethodDescriptor getStartScanRunMethod; - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - WebSecurityScannerGrpc.getStartScanRunMethod = getStartScanRunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) - .build(); - } - } - } - return getStartScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanRun", - requestType = com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetScanRunMethod() { - io.grpc.MethodDescriptor getGetScanRunMethod; - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - WebSecurityScannerGrpc.getGetScanRunMethod = getGetScanRunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) - .build(); - } - } - } - return getGetScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor getListScanRunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", - requestType = com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListScanRunsMethod() { - io.grpc.MethodDescriptor getListScanRunsMethod; - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - WebSecurityScannerGrpc.getListScanRunsMethod = getListScanRunsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) - .build(); - } - } - } - return getListScanRunsMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopScanRun", - requestType = com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopScanRunMethod() { - io.grpc.MethodDescriptor getStopScanRunMethod; - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - WebSecurityScannerGrpc.getStopScanRunMethod = getStopScanRunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) - .build(); - } - } - } - return getStopScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCrawledUrlsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", - requestType = com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCrawledUrlsMethod() { - io.grpc.MethodDescriptor getListCrawledUrlsMethod; - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - WebSecurityScannerGrpc.getListCrawledUrlsMethod = getListCrawledUrlsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) - .build(); - } - } - } - return getListCrawledUrlsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFinding", - requestType = com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetFindingMethod() { - io.grpc.MethodDescriptor getGetFindingMethod; - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - WebSecurityScannerGrpc.getGetFindingMethod = getGetFindingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.GetFindingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) - .build(); - } - } - } - return getGetFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindings", - requestType = com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFindingsMethod() { - io.grpc.MethodDescriptor getListFindingsMethod; - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - WebSecurityScannerGrpc.getListFindingsMethod = getListFindingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListFindingsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) - .build(); - } - } - } - return getListFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFindingTypeStatsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", - requestType = com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFindingTypeStatsMethod() { - io.grpc.MethodDescriptor getListFindingTypeStatsMethod; - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { - WebSecurityScannerGrpc.getListFindingTypeStatsMethod = getListFindingTypeStatsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) - .build(); - } - } - } - return getListFindingTypeStatsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - }; - return WebSecurityScannerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WebSecurityScannerBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - }; - return WebSecurityScannerBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static WebSecurityScannerFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - }; - return WebSecurityScannerFutureStub.newStub(factory, channel); - } - - /** - *
-   * Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static abstract class WebSecurityScannerImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateScanConfigMethod(), responseObserver); - } - - /** - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteScanConfigMethod(), responseObserver); - } - - /** - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanConfigMethod(), responseObserver); - } - - /** - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanConfigsMethod(), responseObserver); - } - - /** - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateScanConfigMethod(), responseObserver); - } - - /** - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun(com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartScanRunMethod(), responseObserver); - } - - /** - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun(com.google.cloud.websecurityscanner.v1.GetScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); - } - - /** - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanRunsMethod(), responseObserver); - } - - /** - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun(com.google.cloud.websecurityscanner.v1.StopScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopScanRunMethod(), responseObserver); - } - - /** - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCrawledUrlsMethod(), responseObserver); - } - - /** - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding(com.google.cloud.websecurityscanner.v1.GetFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); - } - - /** - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings(com.google.cloud.websecurityscanner.v1.ListFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingsMethod(), responseObserver); - } - - /** - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingTypeStatsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig>( - this, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_SCAN_CONFIG))) - .addMethod( - getGetScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig>( - this, METHODID_GET_SCAN_CONFIG))) - .addMethod( - getListScanConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse>( - this, METHODID_LIST_SCAN_CONFIGS))) - .addMethod( - getUpdateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1.ScanConfig>( - this, METHODID_UPDATE_SCAN_CONFIG))) - .addMethod( - getStartScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun>( - this, METHODID_START_SCAN_RUN))) - .addMethod( - getGetScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun>( - this, METHODID_GET_SCAN_RUN))) - .addMethod( - getListScanRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse>( - this, METHODID_LIST_SCAN_RUNS))) - .addMethod( - getStopScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1.ScanRun>( - this, METHODID_STOP_SCAN_RUN))) - .addMethod( - getListCrawledUrlsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse>( - this, METHODID_LIST_CRAWLED_URLS))) - .addMethod( - getGetFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.GetFindingRequest, - com.google.cloud.websecurityscanner.v1.Finding>( - this, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse>( - this, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - } - - /** - *
-   * Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerStub extends io.grpc.stub.AbstractAsyncStub { - private WebSecurityScannerStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - - /** - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun(com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun(com.google.cloud.websecurityscanner.v1.GetScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun(com.google.cloud.websecurityscanner.v1.StopScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding(com.google.cloud.websecurityscanner.v1.GetFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings(com.google.cloud.websecurityscanner.v1.ListFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private WebSecurityScannerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanConfig createScanConfig(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.protobuf.Empty deleteScanConfig(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse listScanConfigs(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanConfigsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanConfig updateScanConfig(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanRun startScanRun(com.google.cloud.websecurityscanner.v1.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartScanRunMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanRun getScanRun(com.google.cloud.websecurityscanner.v1.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanRunMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse listScanRuns(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanRunsMethod(), getCallOptions(), request); - } - - /** - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ScanRun stopScanRun(com.google.cloud.websecurityscanner.v1.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopScanRunMethod(), getCallOptions(), request); - } - - /** - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse listCrawledUrls(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a Finding.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.Finding getFinding(com.google.cloud.websecurityscanner.v1.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFindingMethod(), getCallOptions(), request); - } - - /** - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ListFindingsResponse listFindings(com.google.cloud.websecurityscanner.v1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse listFindingTypeStats(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerFutureStub extends io.grpc.stub.AbstractFutureStub { - private WebSecurityScannerFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createScanConfig( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteScanConfig( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getScanConfig( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listScanConfigs( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateScanConfig( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startScanRun( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getScanRun( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listScanRuns( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); - } - - /** - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopScanRun( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); - } - - /** - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCrawledUrls( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a Finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getFinding( - com.google.cloud.websecurityscanner.v1.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); - } - - /** - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listFindings( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listFindingTypeStats( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SCAN_CONFIG = 0; - private static final int METHODID_DELETE_SCAN_CONFIG = 1; - private static final int METHODID_GET_SCAN_CONFIG = 2; - private static final int METHODID_LIST_SCAN_CONFIGS = 3; - private static final int METHODID_UPDATE_SCAN_CONFIG = 4; - private static final int METHODID_START_SCAN_RUN = 5; - private static final int METHODID_GET_SCAN_RUN = 6; - private static final int METHODID_LIST_SCAN_RUNS = 7; - private static final int METHODID_STOP_SCAN_RUN = 8; - private static final int METHODID_LIST_CRAWLED_URLS = 9; - private static final int METHODID_GET_FINDING = 10; - private static final int METHODID_LIST_FINDINGS = 11; - private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final WebSecurityScannerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_SCAN_CONFIG: - serviceImpl.createScanConfig((com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SCAN_CONFIG: - serviceImpl.deleteScanConfig((com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SCAN_CONFIG: - serviceImpl.getScanConfig((com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SCAN_CONFIGS: - serviceImpl.listScanConfigs((com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SCAN_CONFIG: - serviceImpl.updateScanConfig((com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_SCAN_RUN: - serviceImpl.startScanRun((com.google.cloud.websecurityscanner.v1.StartScanRunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SCAN_RUN: - serviceImpl.getScanRun((com.google.cloud.websecurityscanner.v1.GetScanRunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SCAN_RUNS: - serviceImpl.listScanRuns((com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_SCAN_RUN: - serviceImpl.stopScanRun((com.google.cloud.websecurityscanner.v1.StopScanRunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CRAWLED_URLS: - serviceImpl.listCrawledUrls((com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_FINDING: - serviceImpl.getFinding((com.google.cloud.websecurityscanner.v1.GetFindingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FINDINGS: - serviceImpl.listFindings((com.google.cloud.websecurityscanner.v1.ListFindingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FINDING_TYPE_STATS: - serviceImpl.listFindingTypeStats((com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WebSecurityScannerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("WebSecurityScanner"); - } - } - - private static final class WebSecurityScannerFileDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier { - WebSecurityScannerFileDescriptorSupplier() {} - } - - private static final class WebSecurityScannerMethodDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - WebSecurityScannerMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (WebSecurityScannerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) - .addMethod(getCreateScanConfigMethod()) - .addMethod(getDeleteScanConfigMethod()) - .addMethod(getGetScanConfigMethod()) - .addMethod(getListScanConfigsMethod()) - .addMethod(getUpdateScanConfigMethod()) - .addMethod(getStartScanRunMethod()) - .addMethod(getGetScanRunMethod()) - .addMethod(getListScanRunsMethod()) - .addMethod(getStopScanRunMethod()) - .addMethod(getListCrawledUrlsMethod()) - .addMethod(getGetFindingMethod()) - .addMethod(getListFindingsMethod()) - .addMethod(getListFindingTypeStatsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java deleted file mode 100644 index d47d640b..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/crawled_url.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class CrawledUrlProto { - private CrawledUrlProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/websecurityscanner/v1/cra" + - "wled_url.proto\022\"google.cloud.websecurity" + - "scanner.v1\"<\n\nCrawledUrl\022\023\n\013http_method\030" + - "\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001(\tB\203\002\n&com" + - ".google.cloud.websecurityscanner.v1B\017Cra" + - "wledUrlProtoP\001ZTgoogle.golang.org/genpro" + - "to/googleapis/cloud/websecurityscanner/v" + - "1;websecurityscanner\252\002\"Google.Cloud.WebS" + - "ecurityScanner.V1\312\002\"Google\\Cloud\\WebSecu" + - "rityScanner\\V1\352\002%Google::Cloud::WebSecur" + - "ityScanner::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor, - new java.lang.String[] { "HttpMethod", "Url", "Body", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java deleted file mode 100644 index a100c440..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java +++ /dev/null @@ -1,144 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/finding_addon.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class FindingAddonProto { - private FindingAddonProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/websecurityscanner/v1/fin" + - "ding_addon.proto\022\"google.cloud.websecuri" + - "tyscanner.v1\"*\n\004Form\022\022\n\naction_uri\030\001 \001(\t" + - "\022\016\n\006fields\030\002 \003(\t\"Q\n\017OutdatedLibrary\022\024\n\014l" + - "ibrary_name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\027\n\017le" + - "arn_more_urls\030\003 \003(\t\"?\n\021ViolatingResource" + - "\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resource_url\030\002" + - " \001(\t\"/\n\024VulnerableParameters\022\027\n\017paramete" + - "r_names\030\001 \003(\t\"\340\001\n\021VulnerableHeaders\022M\n\007h" + - "eaders\030\001 \003(\0132<.google.cloud.websecuritys" + - "canner.v1.VulnerableHeaders.Header\022U\n\017mi" + - "ssing_headers\030\002 \003(\0132<.google.cloud.webse" + - "curityscanner.v1.VulnerableHeaders.Heade" + - "r\032%\n\006Header\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + - "\"\333\003\n\003Xss\022\024\n\014stack_traces\030\001 \003(\t\022\025\n\rerror_" + - "message\030\002 \001(\t\022K\n\rattack_vector\030\003 \001(\01624.g" + - "oogle.cloud.websecurityscanner.v1.Xss.At" + - "tackVector\022\036\n\026stored_xss_seeding_url\030\004 \001" + - "(\t\"\271\002\n\014AttackVector\022\035\n\031ATTACK_VECTOR_UNS" + - "PECIFIED\020\000\022\021\n\rLOCAL_STORAGE\020\001\022\023\n\017SESSION" + - "_STORAGE\020\002\022\017\n\013WINDOW_NAME\020\003\022\014\n\010REFERRER\020" + - "\004\022\016\n\nFORM_INPUT\020\005\022\n\n\006COOKIE\020\006\022\020\n\014POST_ME" + - "SSAGE\020\007\022\022\n\016GET_PARAMETERS\020\010\022\020\n\014URL_FRAGM" + - "ENT\020\t\022\020\n\014HTML_COMMENT\020\n\022\023\n\017POST_PARAMETE" + - "RS\020\013\022\014\n\010PROTOCOL\020\014\022\016\n\nSTORED_XSS\020\r\022\017\n\013SA" + - "ME_ORIGIN\020\016\022\031\n\025USER_CONTROLLABLE_URL\020\017B\205" + - "\002\n&com.google.cloud.websecurityscanner.v" + - "1B\021FindingAddonProtoP\001ZTgoogle.golang.or" + - "g/genproto/googleapis/cloud/websecuritys" + - "canner/v1;websecurityscanner\252\002\"Google.Cl" + - "oud.WebSecurityScanner.V1\312\002\"Google\\Cloud" + - "\\WebSecurityScanner\\V1\352\002%Google::Cloud::" + - "WebSecurityScanner::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_websecurityscanner_v1_Form_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_Form_descriptor, - new java.lang.String[] { "ActionUri", "Fields", }); - internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor, - new java.lang.String[] { "LibraryName", "Version", "LearnMoreUrls", }); - internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor, - new java.lang.String[] { "ContentType", "ResourceUrl", }); - internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor, - new java.lang.String[] { "ParameterNames", }); - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor, - new java.lang.String[] { "Headers", "MissingHeaders", }); - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor = - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor, - new java.lang.String[] { "Name", "Value", }); - internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor, - new java.lang.String[] { "StackTraces", "ErrorMessage", "AttackVector", "StoredXssSeedingUrl", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java deleted file mode 100644 index 35eb73d6..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java +++ /dev/null @@ -1,93 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/finding.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class FindingProto { - private FindingProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/websecurityscanner/v1/fin" + - "ding.proto\022\"google.cloud.websecurityscan" + - "ner.v1\032\037google/api/field_behavior.proto\032" + - "\031google/api/resource.proto\0326google/cloud" + - "/websecurityscanner/v1/finding_addon.pro" + - "to\"\261\007\n\007Finding\022\014\n\004name\030\001 \001(\t\022\024\n\014finding_" + - "type\030\002 \001(\t\022K\n\010severity\030\021 \001(\01624.google.cl" + - "oud.websecurityscanner.v1.Finding.Severi" + - "tyB\003\340A\003\022\023\n\013http_method\030\003 \001(\t\022\022\n\nfuzzed_u" + - "rl\030\004 \001(\t\022\014\n\004body\030\005 \001(\t\022\023\n\013description\030\006 " + - "\001(\t\022\030\n\020reproduction_url\030\007 \001(\t\022\021\n\tframe_u" + - "rl\030\010 \001(\t\022\021\n\tfinal_url\030\t \001(\t\022\023\n\013tracking_" + - "id\030\n \001(\t\0226\n\004form\030\020 \001(\0132(.google.cloud.we" + - "bsecurityscanner.v1.Form\022M\n\020outdated_lib" + - "rary\030\013 \001(\01323.google.cloud.websecuritysca" + - "nner.v1.OutdatedLibrary\022Q\n\022violating_res" + - "ource\030\014 \001(\01325.google.cloud.websecuritysc" + - "anner.v1.ViolatingResource\022Q\n\022vulnerable" + - "_headers\030\017 \001(\01325.google.cloud.websecurit" + - "yscanner.v1.VulnerableHeaders\022W\n\025vulnera" + - "ble_parameters\030\r \001(\01328.google.cloud.webs" + - "ecurityscanner.v1.VulnerableParameters\0224" + - "\n\003xss\030\016 \001(\0132\'.google.cloud.websecuritysc" + - "anner.v1.Xss\"Q\n\010Severity\022\030\n\024SEVERITY_UNS" + - "PECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006ME" + - "DIUM\020\003\022\007\n\003LOW\020\004:\204\001\352A\200\001\n)websecurityscann" + - "er.googleapis.com/Finding\022Sprojects/{pro" + - "ject}/scanConfigs/{scan_config}/scanRuns" + - "/{scan_run}/findings/{finding}B\200\002\n&com.g" + - "oogle.cloud.websecurityscanner.v1B\014Findi" + - "ngProtoP\001ZTgoogle.golang.org/genproto/go" + - "ogleapis/cloud/websecurityscanner/v1;web" + - "securityscanner\252\002\"Google.Cloud.WebSecuri" + - "tyScanner.V1\312\002\"Google\\Cloud\\WebSecurityS" + - "canner\\V1\352\002%Google::Cloud::WebSecuritySc" + - "anner::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1.FindingAddonProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor, - new java.lang.String[] { "Name", "FindingType", "Severity", "HttpMethod", "FuzzedUrl", "Body", "Description", "ReproductionUrl", "FrameUrl", "FinalUrl", "TrackingId", "Form", "OutdatedLibrary", "ViolatingResource", "VulnerableHeaders", "VulnerableParameters", "Xss", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1.FindingAddonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java deleted file mode 100644 index deb9c663..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/finding_type_stats.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class FindingTypeStatsProto { - private FindingTypeStatsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n;google/cloud/websecurityscanner/v1/fin" + - "ding_type_stats.proto\022\"google.cloud.webs" + - "ecurityscanner.v1\"?\n\020FindingTypeStats\022\024\n" + - "\014finding_type\030\001 \001(\t\022\025\n\rfinding_count\030\002 \001" + - "(\005B\211\002\n&com.google.cloud.websecurityscann" + - "er.v1B\025FindingTypeStatsProtoP\001ZTgoogle.g" + - "olang.org/genproto/googleapis/cloud/webs" + - "ecurityscanner/v1;websecurityscanner\252\002\"G" + - "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" + - "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" + - ":Cloud::WebSecurityScanner::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor, - new java.lang.String[] { "FindingType", "FindingCount", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java deleted file mode 100644 index 89f5aaa1..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java +++ /dev/null @@ -1,93 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/scan_config_error.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class ScanConfigErrorProto { - private ScanConfigErrorProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n:google/cloud/websecurityscanner/v1/sca" + - "n_config_error.proto\022\"google.cloud.webse" + - "curityscanner.v1\"\351\013\n\017ScanConfigError\022F\n\004" + - "code\030\001 \001(\01628.google.cloud.websecuritysca" + - "nner.v1.ScanConfigError.Code\022\022\n\nfield_na" + - "me\030\002 \001(\t\"\371\n\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022" + - "\006\n\002OK\020\000\022\022\n\016INTERNAL_ERROR\020\001\022\037\n\033APPENGINE" + - "_API_BACKEND_ERROR\020\002\022 \n\034APPENGINE_API_NO" + - "T_ACCESSIBLE\020\003\022\"\n\036APPENGINE_DEFAULT_HOST" + - "_MISSING\020\004\022!\n\035CANNOT_USE_GOOGLE_COM_ACCO" + - "UNT\020\006\022\034\n\030CANNOT_USE_OWNER_ACCOUNT\020\007\022\035\n\031C" + - "OMPUTE_API_BACKEND_ERROR\020\010\022\036\n\032COMPUTE_AP" + - "I_NOT_ACCESSIBLE\020\t\0227\n3CUSTOM_LOGIN_URL_D" + - "OES_NOT_BELONG_TO_CURRENT_PROJECT\020\n\022\036\n\032C" + - "USTOM_LOGIN_URL_MALFORMED\020\013\0223\n/CUSTOM_LO" + - "GIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\020\014" + - "\0221\n-CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVE" + - "D_ADDRESS\020\r\0220\n,CUSTOM_LOGIN_URL_HAS_NON_" + - "ROUTABLE_IP_ADDRESS\020\016\022.\n*CUSTOM_LOGIN_UR" + - "L_HAS_UNRESERVED_IP_ADDRESS\020\017\022\027\n\023DUPLICA" + - "TE_SCAN_NAME\020\020\022\027\n\023INVALID_FIELD_VALUE\020\022\022" + - "$\n FAILED_TO_AUTHENTICATE_TO_TARGET\020\023\022\034\n" + - "\030FINDING_TYPE_UNSPECIFIED\020\024\022\035\n\031FORBIDDEN" + - "_TO_SCAN_COMPUTE\020\025\022$\n FORBIDDEN_UPDATE_T" + - "O_MANAGED_SCAN\020+\022\024\n\020MALFORMED_FILTER\020\026\022\033" + - "\n\027MALFORMED_RESOURCE_NAME\020\027\022\024\n\020PROJECT_I" + - "NACTIVE\020\030\022\022\n\016REQUIRED_FIELD\020\031\022\036\n\032RESOURC" + - "E_NAME_INCONSISTENT\020\032\022\030\n\024SCAN_ALREADY_RU" + - "NNING\020\033\022\024\n\020SCAN_NOT_RUNNING\020\034\022/\n+SEED_UR" + - "L_DOES_NOT_BELONG_TO_CURRENT_PROJECT\020\035\022\026" + - "\n\022SEED_URL_MALFORMED\020\036\022+\n\'SEED_URL_MAPPE" + - "D_TO_NON_ROUTABLE_ADDRESS\020\037\022)\n%SEED_URL_" + - "MAPPED_TO_UNRESERVED_ADDRESS\020 \022(\n$SEED_U" + - "RL_HAS_NON_ROUTABLE_IP_ADDRESS\020!\022&\n\"SEED" + - "_URL_HAS_UNRESERVED_IP_ADDRESS\020#\022\"\n\036SERV" + - "ICE_ACCOUNT_NOT_CONFIGURED\020$\022\022\n\016TOO_MANY" + - "_SCANS\020%\022\"\n\036UNABLE_TO_RESOLVE_PROJECT_IN" + - "FO\020&\022(\n$UNSUPPORTED_BLACKLIST_PATTERN_FO" + - "RMAT\020\'\022\026\n\022UNSUPPORTED_FILTER\020(\022\034\n\030UNSUPP" + - "ORTED_FINDING_TYPE\020)\022\032\n\026UNSUPPORTED_URL_" + - "SCHEME\020*\032\002\020\001B\210\002\n&com.google.cloud.websec" + - "urityscanner.v1B\024ScanConfigErrorProtoP\001Z" + - "Tgoogle.golang.org/genproto/googleapis/c" + - "loud/websecurityscanner/v1;websecuritysc" + - "anner\252\002\"Google.Cloud.WebSecurityScanner." + - "V1\312\002\"Google\\Cloud\\WebSecurityScanner\\V1\352" + - "\002%Google::Cloud::WebSecurityScanner::V1b" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor, - new java.lang.String[] { "Code", "FieldName", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java deleted file mode 100644 index 13981ad3..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java +++ /dev/null @@ -1,173 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/scan_config.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class ScanConfigProto { - private ScanConfigProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/websecurityscanner/v1/sca" + - "n_config.proto\022\"google.cloud.websecurity" + - "scanner.v1\032\037google/api/field_behavior.pr" + - "oto\032\037google/protobuf/timestamp.proto\"\231\r\n" + - "\nScanConfig\022\014\n\004name\030\001 \001(\t\022\024\n\014display_nam" + - "e\030\002 \001(\t\022\017\n\007max_qps\030\003 \001(\005\022\025\n\rstarting_url" + - "s\030\004 \003(\t\022U\n\016authentication\030\005 \001(\0132=.google" + - ".cloud.websecurityscanner.v1.ScanConfig." + - "Authentication\022L\n\nuser_agent\030\006 \001(\01628.goo" + - "gle.cloud.websecurityscanner.v1.ScanConf" + - "ig.UserAgent\022\032\n\022blacklist_patterns\030\007 \003(\t" + - "\022I\n\010schedule\030\010 \001(\01327.google.cloud.websec" + - "urityscanner.v1.ScanConfig.Schedule\022w\n!e" + - "xport_to_security_command_center\030\n \001(\0162L" + - ".google.cloud.websecurityscanner.v1.Scan" + - "Config.ExportToSecurityCommandCenter\022L\n\n" + - "risk_level\030\014 \001(\01628.google.cloud.websecur" + - "ityscanner.v1.ScanConfig.RiskLevel\022\024\n\014ma" + - "naged_scan\030\r \001(\010\022\026\n\016static_ip_scan\030\016 \001(\010" + - "\032\317\005\n\016Authentication\022e\n\016google_account\030\001 " + - "\001(\0132K.google.cloud.websecurityscanner.v1" + - ".ScanConfig.Authentication.GoogleAccount" + - "H\000\022e\n\016custom_account\030\002 \001(\0132K.google.clou" + - "d.websecurityscanner.v1.ScanConfig.Authe" + - "ntication.CustomAccountH\000\022e\n\016iap_credent" + - "ial\030\004 \001(\0132K.google.cloud.websecurityscan" + - "ner.v1.ScanConfig.Authentication.IapCred" + - "entialH\000\0323\n\rGoogleAccount\022\020\n\010username\030\001 " + - "\001(\t\022\020\n\010password\030\002 \001(\t\032F\n\rCustomAccount\022\020" + - "\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022\021\n\tlo" + - "gin_url\030\003 \001(\t\032\370\001\n\rIapCredential\022\216\001\n\035iap_" + - "test_service_account_info\030\001 \001(\0132e.google" + - ".cloud.websecurityscanner.v1.ScanConfig." + - "Authentication.IapCredential.IapTestServ" + - "iceAccountInfoH\000\032C\n\031IapTestServiceAccoun" + - "tInfo\022&\n\031target_audience_client_id\030\001 \001(\t" + - "B\003\340A\002B\021\n\017iap_credentialsB\020\n\016authenticati" + - "on\032]\n\010Schedule\0221\n\rschedule_time\030\001 \001(\0132\032." + - "google.protobuf.Timestamp\022\036\n\026interval_du" + - "ration_days\030\002 \001(\005\"`\n\tUserAgent\022\032\n\026USER_A" + - "GENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LINUX\020\001\022\022\n\016" + - "CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHONE\020\003\"<\n\tR" + - "iskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED\020\000\022\n\n\006" + - "NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecurityCom" + - "mandCenter\0221\n-EXPORT_TO_SECURITY_COMMAND" + - "_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DI" + - "SABLED\020\002B\203\002\n&com.google.cloud.websecurit" + - "yscanner.v1B\017ScanConfigProtoP\001ZTgoogle.g" + - "olang.org/genproto/googleapis/cloud/webs" + - "ecurityscanner/v1;websecurityscanner\252\002\"G" + - "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" + - "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" + - ":Cloud::WebSecurityScanner::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor, - new java.lang.String[] { "Name", "DisplayName", "MaxQps", "StartingUrls", "Authentication", "UserAgent", "BlacklistPatterns", "Schedule", "ExportToSecurityCommandCenter", "RiskLevel", "ManagedScan", "StaticIpScan", }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor, - new java.lang.String[] { "GoogleAccount", "CustomAccount", "IapCredential", "Authentication", }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor, - new java.lang.String[] { "Username", "Password", }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor, - new java.lang.String[] { "Username", "Password", "LoginUrl", }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor, - new java.lang.String[] { "IapTestServiceAccountInfo", "IapCredentials", }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor, - new java.lang.String[] { "TargetAudienceClientId", }); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor = - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor, - new java.lang.String[] { "ScheduleTime", "IntervalDurationDays", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java deleted file mode 100644 index 22246c0b..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/scan_run_error_trace.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class ScanRunErrorTraceProto { - private ScanRunErrorTraceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n=google/cloud/websecurityscanner/v1/sca" + - "n_run_error_trace.proto\022\"google.cloud.we" + - "bsecurityscanner.v1\032:google/cloud/websec" + - "urityscanner/v1/scan_config_error.proto\"" + - "\215\003\n\021ScanRunErrorTrace\022H\n\004code\030\001 \001(\0162:.go" + - "ogle.cloud.websecurityscanner.v1.ScanRun" + - "ErrorTrace.Code\022N\n\021scan_config_error\030\002 \001" + - "(\01323.google.cloud.websecurityscanner.v1." + - "ScanConfigError\022#\n\033most_common_http_erro" + - "r_code\030\003 \001(\005\"\270\001\n\004Code\022\024\n\020CODE_UNSPECIFIE" + - "D\020\000\022\022\n\016INTERNAL_ERROR\020\001\022\025\n\021SCAN_CONFIG_I" + - "SSUE\020\002\022\037\n\033AUTHENTICATION_CONFIG_ISSUE\020\003\022" + - "\034\n\030TIMED_OUT_WHILE_SCANNING\020\004\022\026\n\022TOO_MAN" + - "Y_REDIRECTS\020\005\022\030\n\024TOO_MANY_HTTP_ERRORS\020\006B" + - "\212\002\n&com.google.cloud.websecurityscanner." + - "v1B\026ScanRunErrorTraceProtoP\001ZTgoogle.gol" + - "ang.org/genproto/googleapis/cloud/websec" + - "urityscanner/v1;websecurityscanner\252\002\"Goo" + - "gle.Cloud.WebSecurityScanner.V1\312\002\"Google" + - "\\Cloud\\WebSecurityScanner\\V1\352\002%Google::C" + - "loud::WebSecurityScanner::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor, - new java.lang.String[] { "Code", "ScanConfigError", "MostCommonHttpErrorCode", }); - com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java deleted file mode 100644 index b5c8efb4..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/scan_run_log.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class ScanRunLogProto { - private ScanRunLogProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n5google/cloud/websecurityscanner/v1/sca" + - "n_run_log.proto\022\"google.cloud.websecurit" + - "yscanner.v1\0321google/cloud/websecuritysca" + - "nner/v1/scan_run.proto\032=google/cloud/web" + - "securityscanner/v1/scan_run_error_trace." + - "proto\"\350\002\n\nScanRunLog\022\017\n\007summary\030\001 \001(\t\022\014\n" + - "\004name\030\002 \001(\t\022S\n\017execution_state\030\003 \001(\0162:.g" + - "oogle.cloud.websecurityscanner.v1.ScanRu" + - "n.ExecutionState\022M\n\014result_state\030\004 \001(\01627" + - ".google.cloud.websecurityscanner.v1.Scan" + - "Run.ResultState\022\032\n\022urls_crawled_count\030\005 " + - "\001(\003\022\031\n\021urls_tested_count\030\006 \001(\003\022\024\n\014has_fi" + - "ndings\030\007 \001(\010\022J\n\013error_trace\030\010 \001(\01325.goog" + - "le.cloud.websecurityscanner.v1.ScanRunEr" + - "rorTraceB\203\002\n&com.google.cloud.websecurit" + - "yscanner.v1B\017ScanRunLogProtoP\001ZTgoogle.g" + - "olang.org/genproto/googleapis/cloud/webs" + - "ecurityscanner/v1;websecurityscanner\252\002\"G" + - "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" + - "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" + - ":Cloud::WebSecurityScanner::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.websecurityscanner.v1.ScanRunProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor, - new java.lang.String[] { "Summary", "Name", "ExecutionState", "ResultState", "UrlsCrawledCount", "UrlsTestedCount", "HasFindings", "ErrorTrace", }); - com.google.cloud.websecurityscanner.v1.ScanRunProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java deleted file mode 100644 index 0859f5e4..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java +++ /dev/null @@ -1,82 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/scan_run.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class ScanRunProto { - private ScanRunProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/websecurityscanner/v1/sca" + - "n_run.proto\022\"google.cloud.websecuritysca" + - "nner.v1\032=google/cloud/websecurityscanner" + - "/v1/scan_run_error_trace.proto\032?google/c" + - "loud/websecurityscanner/v1/scan_run_warn" + - "ing_trace.proto\032\037google/protobuf/timesta" + - "mp.proto\"\320\005\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022S\n\017ex" + - "ecution_state\030\002 \001(\0162:.google.cloud.webse" + - "curityscanner.v1.ScanRun.ExecutionState\022" + - "M\n\014result_state\030\003 \001(\01627.google.cloud.web" + - "securityscanner.v1.ScanRun.ResultState\022." + - "\n\nstart_time\030\004 \001(\0132\032.google.protobuf.Tim" + - "estamp\022,\n\010end_time\030\005 \001(\0132\032.google.protob" + - "uf.Timestamp\022\032\n\022urls_crawled_count\030\006 \001(\003" + - "\022\031\n\021urls_tested_count\030\007 \001(\003\022\033\n\023has_vulne" + - "rabilities\030\010 \001(\010\022\030\n\020progress_percent\030\t \001" + - "(\005\022J\n\013error_trace\030\n \001(\01325.google.cloud.w" + - "ebsecurityscanner.v1.ScanRunErrorTrace\022O" + - "\n\016warning_traces\030\013 \003(\01327.google.cloud.we" + - "bsecurityscanner.v1.ScanRunWarningTrace\"" + - "Y\n\016ExecutionState\022\037\n\033EXECUTION_STATE_UNS" + - "PECIFIED\020\000\022\n\n\006QUEUED\020\001\022\014\n\010SCANNING\020\002\022\014\n\010" + - "FINISHED\020\003\"O\n\013ResultState\022\034\n\030RESULT_STAT" + - "E_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020\001\022\t\n\005ERROR\020\002\022" + - "\n\n\006KILLED\020\003B\200\002\n&com.google.cloud.websecu" + - "rityscanner.v1B\014ScanRunProtoP\001ZTgoogle.g" + - "olang.org/genproto/googleapis/cloud/webs" + - "ecurityscanner/v1;websecurityscanner\252\002\"G" + - "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" + - "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" + - ":Cloud::WebSecurityScanner::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor, - new java.lang.String[] { "Name", "ExecutionState", "ResultState", "StartTime", "EndTime", "UrlsCrawledCount", "UrlsTestedCount", "HasVulnerabilities", "ProgressPercent", "ErrorTrace", "WarningTraces", }); - com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java deleted file mode 100644 index 695142d7..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class ScanRunWarningTraceProto { - private ScanRunWarningTraceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n?google/cloud/websecurityscanner/v1/sca" + - "n_run_warning_trace.proto\022\"google.cloud." + - "websecurityscanner.v1\"\351\001\n\023ScanRunWarning" + - "Trace\022J\n\004code\030\001 \001(\0162<.google.cloud.webse" + - "curityscanner.v1.ScanRunWarningTrace.Cod" + - "e\"\205\001\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\036\n\032INSU" + - "FFICIENT_CRAWL_RESULTS\020\001\022\032\n\026TOO_MANY_CRA" + - "WL_RESULTS\020\002\022\027\n\023TOO_MANY_FUZZ_TASKS\020\003\022\022\n" + - "\016BLOCKED_BY_IAP\020\004B\214\002\n&com.google.cloud.w" + - "ebsecurityscanner.v1B\030ScanRunWarningTrac" + - "eProtoP\001ZTgoogle.golang.org/genproto/goo" + - "gleapis/cloud/websecurityscanner/v1;webs" + - "ecurityscanner\252\002\"Google.Cloud.WebSecurit" + - "yScanner.V1\312\002\"Google\\Cloud\\WebSecuritySc" + - "anner\\V1\352\002%Google::Cloud::WebSecuritySca" + - "nner::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor, - new java.lang.String[] { "Code", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java b/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java deleted file mode 100644 index c0821985..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java +++ /dev/null @@ -1,376 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1; - -public final class WebSecurityScannerProto { - private WebSecurityScannerProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n=google/cloud/websecurityscanner/v1/web" + - "_security_scanner.proto\022\"google.cloud.we" + - "bsecurityscanner.v1\032\034google/api/annotati" + - "ons.proto\0324google/cloud/websecurityscann" + - "er/v1/crawled_url.proto\0320google/cloud/we" + - "bsecurityscanner/v1/finding.proto\032;googl" + - "e/cloud/websecurityscanner/v1/finding_ty" + - "pe_stats.proto\0324google/cloud/websecurity" + - "scanner/v1/scan_config.proto\0321google/clo" + - "ud/websecurityscanner/v1/scan_run.proto\032" + - "\033google/protobuf/empty.proto\032 google/pro" + - "tobuf/field_mask.proto\032\027google/api/clien" + - "t.proto\"n\n\027CreateScanConfigRequest\022\016\n\006pa" + - "rent\030\001 \001(\t\022C\n\013scan_config\030\002 \001(\0132..google" + - ".cloud.websecurityscanner.v1.ScanConfig\"" + - "\'\n\027DeleteScanConfigRequest\022\014\n\004name\030\001 \001(\t" + - "\"$\n\024GetScanConfigRequest\022\014\n\004name\030\001 \001(\t\"O" + - "\n\026ListScanConfigsRequest\022\016\n\006parent\030\001 \001(\t" + - "\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"" + - "\217\001\n\027UpdateScanConfigRequest\022C\n\013scan_conf" + - "ig\030\002 \001(\0132..google.cloud.websecurityscann" + - "er.v1.ScanConfig\022/\n\013update_mask\030\003 \001(\0132\032." + - "google.protobuf.FieldMask\"x\n\027ListScanCon" + - "figsResponse\022D\n\014scan_configs\030\001 \003(\0132..goo" + - "gle.cloud.websecurityscanner.v1.ScanConf" + - "ig\022\027\n\017next_page_token\030\002 \001(\t\"#\n\023StartScan" + - "RunRequest\022\014\n\004name\030\001 \001(\t\"!\n\021GetScanRunRe" + - "quest\022\014\n\004name\030\001 \001(\t\"L\n\023ListScanRunsReque" + - "st\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021" + - "\n\tpage_size\030\003 \001(\005\"o\n\024ListScanRunsRespons" + - "e\022>\n\tscan_runs\030\001 \003(\0132+.google.cloud.webs" + - "ecurityscanner.v1.ScanRun\022\027\n\017next_page_t" + - "oken\030\002 \001(\t\"\"\n\022StopScanRunRequest\022\014\n\004name" + - "\030\001 \001(\t\"O\n\026ListCrawledUrlsRequest\022\016\n\006pare" + - "nt\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_siz" + - "e\030\003 \001(\005\"x\n\027ListCrawledUrlsResponse\022D\n\014cr" + - "awled_urls\030\001 \003(\0132..google.cloud.websecur" + - "ityscanner.v1.CrawledUrl\022\027\n\017next_page_to" + - "ken\030\002 \001(\t\"!\n\021GetFindingRequest\022\014\n\004name\030\001" + - " \001(\t\"\\\n\023ListFindingsRequest\022\016\n\006parent\030\001 " + - "\001(\t\022\016\n\006filter\030\002 \001(\t\022\022\n\npage_token\030\003 \001(\t\022" + - "\021\n\tpage_size\030\004 \001(\005\"n\n\024ListFindingsRespon" + - "se\022=\n\010findings\030\001 \003(\0132+.google.cloud.webs" + - "ecurityscanner.v1.Finding\022\027\n\017next_page_t" + - "oken\030\002 \001(\t\"-\n\033ListFindingTypeStatsReques" + - "t\022\016\n\006parent\030\001 \001(\t\"p\n\034ListFindingTypeStat" + - "sResponse\022P\n\022finding_type_stats\030\001 \003(\01324." + - "google.cloud.websecurityscanner.v1.Findi" + - "ngTypeStats2\351\023\n\022WebSecurityScanner\022\271\001\n\020C" + - "reateScanConfig\022;.google.cloud.websecuri" + - "tyscanner.v1.CreateScanConfigRequest\032..g" + - "oogle.cloud.websecurityscanner.v1.ScanCo" + - "nfig\"8\202\323\344\223\0022\"#/v1/{parent=projects/*}/sc" + - "anConfigs:\013scan_config\022\224\001\n\020DeleteScanCon" + - "fig\022;.google.cloud.websecurityscanner.v1" + - ".DeleteScanConfigRequest\032\026.google.protob" + - "uf.Empty\"+\202\323\344\223\002%*#/v1/{name=projects/*/s" + - "canConfigs/*}\022\246\001\n\rGetScanConfig\0228.google" + - ".cloud.websecurityscanner.v1.GetScanConf" + - "igRequest\032..google.cloud.websecurityscan" + - "ner.v1.ScanConfig\"+\202\323\344\223\002%\022#/v1/{name=pro" + - "jects/*/scanConfigs/*}\022\267\001\n\017ListScanConfi" + - "gs\022:.google.cloud.websecurityscanner.v1." + - "ListScanConfigsRequest\032;.google.cloud.we" + - "bsecurityscanner.v1.ListScanConfigsRespo" + - "nse\"+\202\323\344\223\002%\022#/v1/{parent=projects/*}/sca" + - "nConfigs\022\305\001\n\020UpdateScanConfig\022;.google.c" + - "loud.websecurityscanner.v1.UpdateScanCon" + - "figRequest\032..google.cloud.websecuritysca" + - "nner.v1.ScanConfig\"D\202\323\344\223\002>2//v1/{scan_co" + - "nfig.name=projects/*/scanConfigs/*}:\013sca" + - "n_config\022\252\001\n\014StartScanRun\0227.google.cloud" + - ".websecurityscanner.v1.StartScanRunReque" + - "st\032+.google.cloud.websecurityscanner.v1." + - "ScanRun\"4\202\323\344\223\002.\")/v1/{name=projects/*/sc" + - "anConfigs/*}:start:\001*\022\250\001\n\nGetScanRun\0225.g" + - "oogle.cloud.websecurityscanner.v1.GetSca" + - "nRunRequest\032+.google.cloud.websecuritysc" + - "anner.v1.ScanRun\"6\202\323\344\223\0020\022./v1/{name=proj" + - "ects/*/scanConfigs/*/scanRuns/*}\022\271\001\n\014Lis" + - "tScanRuns\0227.google.cloud.websecurityscan" + - "ner.v1.ListScanRunsRequest\0328.google.clou" + - "d.websecurityscanner.v1.ListScanRunsResp" + - "onse\"6\202\323\344\223\0020\022./v1/{parent=projects/*/sca" + - "nConfigs/*}/scanRuns\022\262\001\n\013StopScanRun\0226.g" + - "oogle.cloud.websecurityscanner.v1.StopSc" + - "anRunRequest\032+.google.cloud.websecuritys" + - "canner.v1.ScanRun\">\202\323\344\223\0028\"3/v1/{name=pro" + - "jects/*/scanConfigs/*/scanRuns/*}:stop:\001" + - "*\022\320\001\n\017ListCrawledUrls\022:.google.cloud.web" + - "securityscanner.v1.ListCrawledUrlsReques" + - "t\032;.google.cloud.websecurityscanner.v1.L" + - "istCrawledUrlsResponse\"D\202\323\344\223\002>\022 - * Cloud Web Security Scanner Service identifies security vulnerabilities in web - * applications hosted on Google Cloud Platform. It crawls your application, and - * attempts to exercise as many user inputs and event handlers as possible. - *
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WebSecurityScannerGrpc { - - private WebSecurityScannerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateScanConfigMethod() { - io.grpc.MethodDescriptor getCreateScanConfigMethod; - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { - WebSecurityScannerGrpc.getCreateScanConfigMethod = getCreateScanConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) - .build(); - } - } - } - return getCreateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", - requestType = com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteScanConfigMethod() { - io.grpc.MethodDescriptor getDeleteScanConfigMethod; - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { - WebSecurityScannerGrpc.getDeleteScanConfigMethod = getDeleteScanConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) - .build(); - } - } - } - return getDeleteScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", - requestType = com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetScanConfigMethod() { - io.grpc.MethodDescriptor getGetScanConfigMethod; - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - WebSecurityScannerGrpc.getGetScanConfigMethod = getGetScanConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) - .build(); - } - } - } - return getGetScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getListScanConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", - requestType = com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListScanConfigsMethod() { - io.grpc.MethodDescriptor getListScanConfigsMethod; - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - WebSecurityScannerGrpc.getListScanConfigsMethod = getListScanConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) - .build(); - } - } - } - return getListScanConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateScanConfigMethod() { - io.grpc.MethodDescriptor getUpdateScanConfigMethod; - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { - WebSecurityScannerGrpc.getUpdateScanConfigMethod = getUpdateScanConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) - .build(); - } - } - } - return getUpdateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartScanRun", - requestType = com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartScanRunMethod() { - io.grpc.MethodDescriptor getStartScanRunMethod; - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - WebSecurityScannerGrpc.getStartScanRunMethod = getStartScanRunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) - .build(); - } - } - } - return getStartScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanRun", - requestType = com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetScanRunMethod() { - io.grpc.MethodDescriptor getGetScanRunMethod; - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - WebSecurityScannerGrpc.getGetScanRunMethod = getGetScanRunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) - .build(); - } - } - } - return getGetScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor getListScanRunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", - requestType = com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListScanRunsMethod() { - io.grpc.MethodDescriptor getListScanRunsMethod; - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - WebSecurityScannerGrpc.getListScanRunsMethod = getListScanRunsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) - .build(); - } - } - } - return getListScanRunsMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopScanRun", - requestType = com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopScanRunMethod() { - io.grpc.MethodDescriptor getStopScanRunMethod; - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - WebSecurityScannerGrpc.getStopScanRunMethod = getStopScanRunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) - .build(); - } - } - } - return getStopScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCrawledUrlsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", - requestType = com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCrawledUrlsMethod() { - io.grpc.MethodDescriptor getListCrawledUrlsMethod; - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - WebSecurityScannerGrpc.getListCrawledUrlsMethod = getListCrawledUrlsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) - .build(); - } - } - } - return getListCrawledUrlsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFinding", - requestType = com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetFindingMethod() { - io.grpc.MethodDescriptor getGetFindingMethod; - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - WebSecurityScannerGrpc.getGetFindingMethod = getGetFindingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) - .build(); - } - } - } - return getGetFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindings", - requestType = com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFindingsMethod() { - io.grpc.MethodDescriptor getListFindingsMethod; - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - WebSecurityScannerGrpc.getListFindingsMethod = getListFindingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) - .build(); - } - } - } - return getListFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFindingTypeStatsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", - requestType = com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFindingTypeStatsMethod() { - io.grpc.MethodDescriptor getListFindingTypeStatsMethod; - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { - WebSecurityScannerGrpc.getListFindingTypeStatsMethod = getListFindingTypeStatsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) - .build(); - } - } - } - return getListFindingTypeStatsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - }; - return WebSecurityScannerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WebSecurityScannerBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - }; - return WebSecurityScannerBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static WebSecurityScannerFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - }; - return WebSecurityScannerFutureStub.newStub(factory, channel); - } - - /** - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static abstract class WebSecurityScannerImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig(com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateScanConfigMethod(), responseObserver); - } - - /** - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteScanConfigMethod(), responseObserver); - } - - /** - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanConfigMethod(), responseObserver); - } - - /** - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanConfigsMethod(), responseObserver); - } - - /** - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig(com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateScanConfigMethod(), responseObserver); - } - - /** - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartScanRunMethod(), responseObserver); - } - - /** - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); - } - - /** - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanRunsMethod(), responseObserver); - } - - /** - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopScanRunMethod(), responseObserver); - } - - /** - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCrawledUrlsMethod(), responseObserver); - } - - /** - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); - } - - /** - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingsMethod(), responseObserver); - } - - /** - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingTypeStatsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( - this, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_SCAN_CONFIG))) - .addMethod( - getGetScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( - this, METHODID_GET_SCAN_CONFIG))) - .addMethod( - getListScanConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse>( - this, METHODID_LIST_SCAN_CONFIGS))) - .addMethod( - getUpdateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanConfig>( - this, METHODID_UPDATE_SCAN_CONFIG))) - .addMethod( - getStartScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun>( - this, METHODID_START_SCAN_RUN))) - .addMethod( - getGetScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun>( - this, METHODID_GET_SCAN_RUN))) - .addMethod( - getListScanRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse>( - this, METHODID_LIST_SCAN_RUNS))) - .addMethod( - getStopScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1alpha.ScanRun>( - this, METHODID_STOP_SCAN_RUN))) - .addMethod( - getListCrawledUrlsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse>( - this, METHODID_LIST_CRAWLED_URLS))) - .addMethod( - getGetFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest, - com.google.cloud.websecurityscanner.v1alpha.Finding>( - this, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse>( - this, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - } - - /** - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerStub extends io.grpc.stub.AbstractAsyncStub { - private WebSecurityScannerStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - - /** - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig(com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig(com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private WebSecurityScannerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig createScanConfig(com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.protobuf.Empty deleteScanConfig(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse listScanConfigs(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanConfigsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig updateScanConfig(com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanRun startScanRun(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartScanRunMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRun(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanRunMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse listScanRuns(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanRunsMethod(), getCallOptions(), request); - } - - /** - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ScanRun stopScanRun(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopScanRunMethod(), getCallOptions(), request); - } - - /** - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse listCrawledUrls(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a Finding.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.Finding getFinding(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFindingMethod(), getCallOptions(), request); - } - - /** - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse listFindings(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse listFindingTypeStats(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerFutureStub extends io.grpc.stub.AbstractFutureStub { - private WebSecurityScannerFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createScanConfig( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteScanConfig( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getScanConfig( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listScanConfigs( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateScanConfig( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startScanRun( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getScanRun( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listScanRuns( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); - } - - /** - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopScanRun( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); - } - - /** - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCrawledUrls( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a Finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getFinding( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); - } - - /** - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listFindings( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listFindingTypeStats( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SCAN_CONFIG = 0; - private static final int METHODID_DELETE_SCAN_CONFIG = 1; - private static final int METHODID_GET_SCAN_CONFIG = 2; - private static final int METHODID_LIST_SCAN_CONFIGS = 3; - private static final int METHODID_UPDATE_SCAN_CONFIG = 4; - private static final int METHODID_START_SCAN_RUN = 5; - private static final int METHODID_GET_SCAN_RUN = 6; - private static final int METHODID_LIST_SCAN_RUNS = 7; - private static final int METHODID_STOP_SCAN_RUN = 8; - private static final int METHODID_LIST_CRAWLED_URLS = 9; - private static final int METHODID_GET_FINDING = 10; - private static final int METHODID_LIST_FINDINGS = 11; - private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final WebSecurityScannerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_SCAN_CONFIG: - serviceImpl.createScanConfig((com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SCAN_CONFIG: - serviceImpl.deleteScanConfig((com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SCAN_CONFIG: - serviceImpl.getScanConfig((com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SCAN_CONFIGS: - serviceImpl.listScanConfigs((com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SCAN_CONFIG: - serviceImpl.updateScanConfig((com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_SCAN_RUN: - serviceImpl.startScanRun((com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SCAN_RUN: - serviceImpl.getScanRun((com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SCAN_RUNS: - serviceImpl.listScanRuns((com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_SCAN_RUN: - serviceImpl.stopScanRun((com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CRAWLED_URLS: - serviceImpl.listCrawledUrls((com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_FINDING: - serviceImpl.getFinding((com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FINDINGS: - serviceImpl.listFindings((com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FINDING_TYPE_STATS: - serviceImpl.listFindingTypeStats((com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WebSecurityScannerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("WebSecurityScanner"); - } - } - - private static final class WebSecurityScannerFileDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier { - WebSecurityScannerFileDescriptorSupplier() {} - } - - private static final class WebSecurityScannerMethodDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - WebSecurityScannerMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (WebSecurityScannerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) - .addMethod(getCreateScanConfigMethod()) - .addMethod(getDeleteScanConfigMethod()) - .addMethod(getGetScanConfigMethod()) - .addMethod(getListScanConfigsMethod()) - .addMethod(getUpdateScanConfigMethod()) - .addMethod(getStartScanRunMethod()) - .addMethod(getGetScanRunMethod()) - .addMethod(getListScanRunsMethod()) - .addMethod(getStopScanRunMethod()) - .addMethod(getListCrawledUrlsMethod()) - .addMethod(getGetFindingMethod()) - .addMethod(getListFindingsMethod()) - .addMethod(getListFindingTypeStatsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java deleted file mode 100644 index a7546587..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java +++ /dev/null @@ -1,54 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/crawled_url.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class CrawledUrlProto { - private CrawledUrlProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/websecurityscanner/v1alph" + - "a/crawled_url.proto\022\'google.cloud.websec" + - "urityscanner.v1alpha\"<\n\nCrawledUrl\022\023\n\013ht" + - "tp_method\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001" + - "(\tB\233\001\n+com.google.cloud.websecurityscann" + - "er.v1alphaB\017CrawledUrlProtoP\001ZYgoogle.go" + - "lang.org/genproto/googleapis/cloud/webse" + - "curityscanner/v1alpha;websecurityscanner" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor, - new java.lang.String[] { "HttpMethod", "Url", "Body", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java deleted file mode 100644 index 42ad6f50..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface CreateScanConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent resource name where the scan is created, which should be a
-   * project resource name in the format 'projects/{projectId}'.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent resource name where the scan is created, which should be a
-   * project resource name in the format 'projects/{projectId}'.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the scanConfig field is set. - */ - boolean hasScanConfig(); - /** - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The scanConfig. - */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig(); - /** - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder(); -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java deleted file mode 100644 index 19772138..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface DeleteScanConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the ScanConfig to be deleted. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the ScanConfig to be deleted. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java deleted file mode 100644 index d9047d69..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java +++ /dev/null @@ -1,119 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class FindingAddonProto { - private FindingAddonProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n;google/cloud/websecurityscanner/v1alph" + - "a/finding_addon.proto\022\'google.cloud.webs" + - "ecurityscanner.v1alpha\"Q\n\017OutdatedLibrar" + - "y\022\024\n\014library_name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t" + - "\022\027\n\017learn_more_urls\030\003 \003(\t\"?\n\021ViolatingRe" + - "source\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resource" + - "_url\030\002 \001(\t\"/\n\024VulnerableParameters\022\027\n\017pa" + - "rameter_names\030\001 \003(\t\"\352\001\n\021VulnerableHeader" + - "s\022R\n\007headers\030\001 \003(\0132A.google.cloud.websec" + - "urityscanner.v1alpha.VulnerableHeaders.H" + - "eader\022Z\n\017missing_headers\030\002 \003(\0132A.google." + - "cloud.websecurityscanner.v1alpha.Vulnera" + - "bleHeaders.Header\032%\n\006Header\022\014\n\004name\030\001 \001(" + - "\t\022\r\n\005value\030\002 \001(\t\"2\n\003Xss\022\024\n\014stack_traces\030" + - "\001 \003(\t\022\025\n\rerror_message\030\002 \001(\tB\235\001\n+com.goo" + - "gle.cloud.websecurityscanner.v1alphaB\021Fi" + - "ndingAddonProtoP\001ZYgoogle.golang.org/gen" + - "proto/googleapis/cloud/websecurityscanne" + - "r/v1alpha;websecurityscannerb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor, - new java.lang.String[] { "LibraryName", "Version", "LearnMoreUrls", }); - internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor, - new java.lang.String[] { "ContentType", "ResourceUrl", }); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor, - new java.lang.String[] { "ParameterNames", }); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor, - new java.lang.String[] { "Headers", "MissingHeaders", }); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor = - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor, - new java.lang.String[] { "Name", "Value", }); - internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor, - new java.lang.String[] { "StackTraces", "ErrorMessage", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java deleted file mode 100644 index 4ba38326..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java +++ /dev/null @@ -1,91 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/finding.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class FindingProto { - private FindingProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n5google/cloud/websecurityscanner/v1alph" + - "a/finding.proto\022\'google.cloud.websecurit" + - "yscanner.v1alpha\032\031google/api/resource.pr" + - "oto\032;google/cloud/websecurityscanner/v1a" + - "lpha/finding_addon.proto\"\351\010\n\007Finding\022\014\n\004" + - "name\030\001 \001(\t\022R\n\014finding_type\030\002 \001(\0162<.googl" + - "e.cloud.websecurityscanner.v1alpha.Findi" + - "ng.FindingType\022\023\n\013http_method\030\003 \001(\t\022\022\n\nf" + - "uzzed_url\030\004 \001(\t\022\014\n\004body\030\005 \001(\t\022\023\n\013descrip" + - "tion\030\006 \001(\t\022\030\n\020reproduction_url\030\007 \001(\t\022\021\n\t" + - "frame_url\030\010 \001(\t\022\021\n\tfinal_url\030\t \001(\t\022\023\n\013tr" + - "acking_id\030\n \001(\t\022R\n\020outdated_library\030\013 \001(" + - "\01328.google.cloud.websecurityscanner.v1al" + - "pha.OutdatedLibrary\022V\n\022violating_resourc" + - "e\030\014 \001(\0132:.google.cloud.websecurityscanne" + - "r.v1alpha.ViolatingResource\022V\n\022vulnerabl" + - "e_headers\030\017 \001(\0132:.google.cloud.websecuri" + - "tyscanner.v1alpha.VulnerableHeaders\022\\\n\025v" + - "ulnerable_parameters\030\r \001(\0132=.google.clou" + - "d.websecurityscanner.v1alpha.VulnerableP" + - "arameters\0229\n\003xss\030\016 \001(\0132,.google.cloud.we" + - "bsecurityscanner.v1alpha.Xss\"\266\002\n\013Finding" + - "Type\022\034\n\030FINDING_TYPE_UNSPECIFIED\020\000\022\021\n\rMI" + - "XED_CONTENT\020\001\022\024\n\020OUTDATED_LIBRARY\020\002\022\021\n\rR" + - "OSETTA_FLASH\020\005\022\020\n\014XSS_CALLBACK\020\003\022\r\n\tXSS_" + - "ERROR\020\004\022\027\n\023CLEAR_TEXT_PASSWORD\020\006\022\030\n\024INVA" + - "LID_CONTENT_TYPE\020\007\022\030\n\024XSS_ANGULAR_CALLBA" + - "CK\020\010\022\022\n\016INVALID_HEADER\020\t\022#\n\037MISSPELLED_S" + - "ECURITY_HEADER_NAME\020\n\022&\n\"MISMATCHING_SEC" + - "URITY_HEADER_VALUES\020\013:\204\001\352A\200\001\n)websecurit" + - "yscanner.googleapis.com/Finding\022Sproject" + - "s/{project}/scanConfigs/{scan_config}/sc" + - "anRuns/{scan_run}/findings/{finding}B\230\001\n" + - "+com.google.cloud.websecurityscanner.v1a" + - "lphaB\014FindingProtoP\001ZYgoogle.golang.org/" + - "genproto/googleapis/cloud/websecuritysca" + - "nner/v1alpha;websecurityscannerb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor, - new java.lang.String[] { "Name", "FindingType", "HttpMethod", "FuzzedUrl", "Body", "Description", "ReproductionUrl", "FrameUrl", "FinalUrl", "TrackingId", "OutdatedLibrary", "ViolatingResource", "VulnerableHeaders", "VulnerableParameters", "Xss", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java deleted file mode 100644 index b2e45018..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class FindingTypeStatsProto { - private FindingTypeStatsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n@google/cloud/websecurityscanner/v1alph" + - "a/finding_type_stats.proto\022\'google.cloud" + - ".websecurityscanner.v1alpha\0325google/clou" + - "d/websecurityscanner/v1alpha/finding.pro" + - "to\"}\n\020FindingTypeStats\022R\n\014finding_type\030\001" + - " \001(\0162<.google.cloud.websecurityscanner.v" + - "1alpha.Finding.FindingType\022\025\n\rfinding_co" + - "unt\030\002 \001(\005B\241\001\n+com.google.cloud.websecuri" + - "tyscanner.v1alphaB\025FindingTypeStatsProto" + - "P\001ZYgoogle.golang.org/genproto/googleapi" + - "s/cloud/websecurityscanner/v1alpha;webse" + - "curityscannerb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor, - new java.lang.String[] { "FindingType", "FindingCount", }); - com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java deleted file mode 100644 index 171e1636..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface GetFindingRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the Finding to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the Finding to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java deleted file mode 100644 index 90b3a5d6..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface GetScanConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the ScanConfig to be returned. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the ScanConfig to be returned. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java deleted file mode 100644 index 7daa852d..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface GetScanRunRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the ScanRun to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the ScanRun to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java deleted file mode 100644 index 0ee10079..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface ListFindingTypeStatsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent resource name, which should be a scan run resource name in the
-   * format
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent resource name, which should be a scan run resource name in the
-   * format
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java deleted file mode 100644 index c9d44f1c..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface ListFindingTypeStatsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The list of FindingTypeStats returned.
-   * 
- * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - */ - java.util.List - getFindingTypeStatsList(); - /** - *
-   * The list of FindingTypeStats returned.
-   * 
- * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - */ - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats(int index); - /** - *
-   * The list of FindingTypeStats returned.
-   * 
- * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - */ - int getFindingTypeStatsCount(); - /** - *
-   * The list of FindingTypeStats returned.
-   * 
- * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - */ - java.util.List - getFindingTypeStatsOrBuilderList(); - /** - *
-   * The list of FindingTypeStats returned.
-   * 
- * - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; - */ - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( - int index); -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java deleted file mode 100644 index e97939cb..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java +++ /dev/null @@ -1,147 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/scan_config.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class ScanConfigProto { - private ScanConfigProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/websecurityscanner/v1alph" + - "a/scan_config.proto\022\'google.cloud.websec" + - "urityscanner.v1alpha\032\037google/api/field_b" + - "ehavior.proto\032\031google/api/resource.proto" + - "\0326google/cloud/websecurityscanner/v1alph" + - "a/scan_run.proto\032\037google/protobuf/timest" + - "amp.proto\"\261\n\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\031" + - "\n\014display_name\030\002 \001(\tB\003\340A\002\022\017\n\007max_qps\030\003 \001" + - "(\005\022\032\n\rstarting_urls\030\004 \003(\tB\003\340A\002\022Z\n\016authen" + - "tication\030\005 \001(\0132B.google.cloud.websecurit" + - "yscanner.v1alpha.ScanConfig.Authenticati" + - "on\022Q\n\nuser_agent\030\006 \001(\0162=.google.cloud.we" + - "bsecurityscanner.v1alpha.ScanConfig.User" + - "Agent\022\032\n\022blacklist_patterns\030\007 \003(\t\022N\n\010sch" + - "edule\030\010 \001(\0132<.google.cloud.websecuritysc" + - "anner.v1alpha.ScanConfig.Schedule\022\\\n\020tar" + - "get_platforms\030\t \003(\0162B.google.cloud.webse" + - "curityscanner.v1alpha.ScanConfig.TargetP" + - "latform\022D\n\nlatest_run\030\013 \001(\01320.google.clo" + - "ud.websecurityscanner.v1alpha.ScanRun\032\226\003" + - "\n\016Authentication\022j\n\016google_account\030\001 \001(\013" + - "2P.google.cloud.websecurityscanner.v1alp" + - "ha.ScanConfig.Authentication.GoogleAccou" + - "ntH\000\022j\n\016custom_account\030\002 \001(\0132P.google.cl" + - "oud.websecurityscanner.v1alpha.ScanConfi" + - "g.Authentication.CustomAccountH\000\032@\n\rGoog" + - "leAccount\022\025\n\010username\030\001 \001(\tB\003\340A\002\022\030\n\010pass" + - "word\030\002 \001(\tB\006\340A\002\340A\004\032X\n\rCustomAccount\022\025\n\010u" + - "sername\030\001 \001(\tB\003\340A\002\022\030\n\010password\030\002 \001(\tB\006\340A" + - "\002\340A\004\022\026\n\tlogin_url\030\003 \001(\tB\003\340A\002B\020\n\016authenti" + - "cation\032b\n\010Schedule\0221\n\rschedule_time\030\001 \001(" + - "\0132\032.google.protobuf.Timestamp\022#\n\026interva" + - "l_duration_days\030\002 \001(\005B\003\340A\002\"`\n\tUserAgent\022" + - "\032\n\026USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LI" + - "NUX\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHO" + - "NE\020\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFOR" + - "M_UNSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMPU" + - "TE\020\002:_\352A\\\n,websecurityscanner.googleapis" + - ".com/ScanConfig\022,projects/{project}/scan" + - "Configs/{scan_config}B\233\001\n+com.google.clo" + - "ud.websecurityscanner.v1alphaB\017ScanConfi" + - "gProtoP\001ZYgoogle.golang.org/genproto/goo" + - "gleapis/cloud/websecurityscanner/v1alpha" + - ";websecurityscannerb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor, - new java.lang.String[] { "Name", "DisplayName", "MaxQps", "StartingUrls", "Authentication", "UserAgent", "BlacklistPatterns", "Schedule", "TargetPlatforms", "LatestRun", }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor = - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor, - new java.lang.String[] { "GoogleAccount", "CustomAccount", "Authentication", }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor, - new java.lang.String[] { "Username", "Password", }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor, - new java.lang.String[] { "Username", "Password", "LoginUrl", }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor = - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor, - new java.lang.String[] { "ScheduleTime", "IntervalDurationDays", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java deleted file mode 100644 index 9758b50b..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java +++ /dev/null @@ -1,80 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/scan_run.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class ScanRunProto { - private ScanRunProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/websecurityscanner/v1alph" + - "a/scan_run.proto\022\'google.cloud.websecuri" + - "tyscanner.v1alpha\032\031google/api/resource.p" + - "roto\032\037google/protobuf/timestamp.proto\"\257\005" + - "\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022X\n\017execution_sta" + - "te\030\002 \001(\0162?.google.cloud.websecurityscann" + - "er.v1alpha.ScanRun.ExecutionState\022R\n\014res" + - "ult_state\030\003 \001(\0162<.google.cloud.websecuri" + - "tyscanner.v1alpha.ScanRun.ResultState\022.\n" + - "\nstart_time\030\004 \001(\0132\032.google.protobuf.Time" + - "stamp\022,\n\010end_time\030\005 \001(\0132\032.google.protobu" + - "f.Timestamp\022\032\n\022urls_crawled_count\030\006 \001(\003\022" + - "\031\n\021urls_tested_count\030\007 \001(\003\022\033\n\023has_vulner" + - "abilities\030\010 \001(\010\022\030\n\020progress_percent\030\t \001(" + - "\005\"Y\n\016ExecutionState\022\037\n\033EXECUTION_STATE_U" + - "NSPECIFIED\020\000\022\n\n\006QUEUED\020\001\022\014\n\010SCANNING\020\002\022\014" + - "\n\010FINISHED\020\003\"O\n\013ResultState\022\034\n\030RESULT_ST" + - "ATE_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020\001\022\t\n\005ERROR\020" + - "\002\022\n\n\006KILLED\020\003:p\352Am\n)websecurityscanner.g" + - "oogleapis.com/ScanRun\022@projects/{project" + - "}/scanConfigs/{scan_config}/scanRuns/{sc" + - "an_run}B\230\001\n+com.google.cloud.websecurity" + - "scanner.v1alphaB\014ScanRunProtoP\001ZYgoogle." + - "golang.org/genproto/googleapis/cloud/web" + - "securityscanner/v1alpha;websecurityscann" + - "erb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor, - new java.lang.String[] { "Name", "ExecutionState", "ResultState", "StartTime", "EndTime", "UrlsCrawledCount", "UrlsTestedCount", "HasVulnerabilities", "ProgressPercent", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java deleted file mode 100644 index c678b425..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface StartScanRunRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the ScanConfig to be used. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the ScanConfig to be used. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java deleted file mode 100644 index 20f3af5a..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public interface StopScanRunRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the ScanRun to be stopped. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the ScanRun to be stopped. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java deleted file mode 100644 index f6590b7c..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java +++ /dev/null @@ -1,408 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1alpha; - -public final class WebSecurityScannerProto { - private WebSecurityScannerProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nBgoogle/cloud/websecurityscanner/v1alph" + - "a/web_security_scanner.proto\022\'google.clo" + - "ud.websecurityscanner.v1alpha\032\034google/ap" + - "i/annotations.proto\032\027google/api/client.p" + - "roto\032\037google/api/field_behavior.proto\032\031g" + - "oogle/api/resource.proto\0329google/cloud/w" + - "ebsecurityscanner/v1alpha/crawled_url.pr" + - "oto\0325google/cloud/websecurityscanner/v1a" + - "lpha/finding.proto\032@google/cloud/websecu" + - "rityscanner/v1alpha/finding_type_stats.p" + - "roto\0329google/cloud/websecurityscanner/v1" + - "alpha/scan_config.proto\0326google/cloud/we" + - "bsecurityscanner/v1alpha/scan_run.proto\032" + - "\033google/protobuf/empty.proto\032 google/pro" + - "tobuf/field_mask.proto\"\255\001\n\027CreateScanCon" + - "figRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+clou" + - "dresourcemanager.googleapis.com/Project\022" + - "M\n\013scan_config\030\002 \001(\01323.google.cloud.webs" + - "ecurityscanner.v1alpha.ScanConfigB\003\340A\002\"]" + - "\n\027DeleteScanConfigRequest\022B\n\004name\030\001 \001(\tB" + - "4\340A\002\372A.\n,websecurityscanner.googleapis.c" + - "om/ScanConfig\"Z\n\024GetScanConfigRequest\022B\n" + - "\004name\030\001 \001(\tB4\340A\002\372A.\n,websecurityscanner." + - "googleapis.com/ScanConfig\"\204\001\n\026ListScanCo" + - "nfigsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cl" + - "oudresourcemanager.googleapis.com/Projec" + - "t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" + - "\"\236\001\n\027UpdateScanConfigRequest\022M\n\013scan_con" + - "fig\030\002 \001(\01323.google.cloud.websecurityscan" + - "ner.v1alpha.ScanConfigB\003\340A\002\0224\n\013update_ma" + - "sk\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" + - "\002\"}\n\027ListScanConfigsResponse\022I\n\014scan_con" + - "figs\030\001 \003(\01323.google.cloud.websecuritysca" + - "nner.v1alpha.ScanConfig\022\027\n\017next_page_tok" + - "en\030\002 \001(\t\"Y\n\023StartScanRunRequest\022B\n\004name\030" + - "\001 \001(\tB4\340A\002\372A.\n,websecurityscanner.google" + - "apis.com/ScanConfig\"T\n\021GetScanRunRequest" + - "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecurityscann" + - "er.googleapis.com/ScanRun\"\202\001\n\023ListScanRu" + - "nsRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,webse" + - "curityscanner.googleapis.com/ScanConfig\022" + - "\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"t" + - "\n\024ListScanRunsResponse\022C\n\tscan_runs\030\001 \003(" + - "\01320.google.cloud.websecurityscanner.v1al" + - "pha.ScanRun\022\027\n\017next_page_token\030\002 \001(\t\"U\n\022" + - "StopScanRunRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+" + - "\n)websecurityscanner.googleapis.com/Scan" + - "Run\"\202\001\n\026ListCrawledUrlsRequest\022A\n\006parent" + - "\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner.googl" + - "eapis.com/ScanRun\022\022\n\npage_token\030\002 \001(\t\022\021\n" + - "\tpage_size\030\003 \001(\005\"}\n\027ListCrawledUrlsRespo" + - "nse\022I\n\014crawled_urls\030\001 \003(\01323.google.cloud" + - ".websecurityscanner.v1alpha.CrawledUrl\022\027" + - "\n\017next_page_token\030\002 \001(\t\"T\n\021GetFindingReq" + - "uest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecuritys" + - "canner.googleapis.com/Finding\"\224\001\n\023ListFi" + - "ndingsRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)w" + - "ebsecurityscanner.googleapis.com/ScanRun" + - "\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\022\n\npage_token\030\003 \001(" + - "\t\022\021\n\tpage_size\030\004 \001(\005\"s\n\024ListFindingsResp" + - "onse\022B\n\010findings\030\001 \003(\01320.google.cloud.we" + - "bsecurityscanner.v1alpha.Finding\022\027\n\017next" + - "_page_token\030\002 \001(\t\"`\n\033ListFindingTypeStat" + - "sRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)websec" + - "urityscanner.googleapis.com/ScanRun\"u\n\034L" + - "istFindingTypeStatsResponse\022U\n\022finding_t" + - "ype_stats\030\001 \003(\01329.google.cloud.websecuri" + - "tyscanner.v1alpha.FindingTypeStats2\264\026\n\022W" + - "ebSecurityScanner\022\335\001\n\020CreateScanConfig\022@" + - ".google.cloud.websecurityscanner.v1alpha" + - ".CreateScanConfigRequest\0323.google.cloud." + - "websecurityscanner.v1alpha.ScanConfig\"R\202" + - "\323\344\223\0027\"(/v1alpha/{parent=projects/*}/scan" + - "Configs:\013scan_config\332A\022parent,scan_confi" + - "g\022\245\001\n\020DeleteScanConfig\022@.google.cloud.we" + - "bsecurityscanner.v1alpha.DeleteScanConfi" + - "gRequest\032\026.google.protobuf.Empty\"7\202\323\344\223\002*" + - "*(/v1alpha/{name=projects/*/scanConfigs/" + - "*}\332A\004name\022\274\001\n\rGetScanConfig\022=.google.clo" + - "ud.websecurityscanner.v1alpha.GetScanCon" + - "figRequest\0323.google.cloud.websecuritysca" + - "nner.v1alpha.ScanConfig\"7\202\323\344\223\002*\022(/v1alph" + - "a/{name=projects/*/scanConfigs/*}\332A\004name" + - "\022\317\001\n\017ListScanConfigs\022?.google.cloud.webs" + - "ecurityscanner.v1alpha.ListScanConfigsRe" + - "quest\032@.google.cloud.websecurityscanner." + - "v1alpha.ListScanConfigsResponse\"9\202\323\344\223\002*\022" + - "(/v1alpha/{parent=projects/*}/scanConfig" + - "s\332A\006parent\022\356\001\n\020UpdateScanConfig\022@.google" + - ".cloud.websecurityscanner.v1alpha.Update" + - "ScanConfigRequest\0323.google.cloud.websecu" + - "rityscanner.v1alpha.ScanConfig\"c\202\323\344\223\002C24" + - "/v1alpha/{scan_config.name=projects/*/sc" + - "anConfigs/*}:\013scan_config\332A\027scan_config," + - "update_mask\022\300\001\n\014StartScanRun\022<.google.cl" + - "oud.websecurityscanner.v1alpha.StartScan" + - "RunRequest\0320.google.cloud.websecuritysca" + - "nner.v1alpha.ScanRun\"@\202\323\344\223\0023\"./v1alpha/{" + - "name=projects/*/scanConfigs/*}:start:\001*\332" + - "A\004name\022\276\001\n\nGetScanRun\022:.google.cloud.web" + - "securityscanner.v1alpha.GetScanRunReques" + - "t\0320.google.cloud.websecurityscanner.v1al" + - "pha.ScanRun\"B\202\323\344\223\0025\0223/v1alpha/{name=proj" + - "ects/*/scanConfigs/*/scanRuns/*}\332A\004name\022" + - "\321\001\n\014ListScanRuns\022<.google.cloud.websecur" + - "ityscanner.v1alpha.ListScanRunsRequest\032=" + - ".google.cloud.websecurityscanner.v1alpha" + - ".ListScanRunsResponse\"D\202\323\344\223\0025\0223/v1alpha/" + - "{parent=projects/*/scanConfigs/*}/scanRu" + - "ns\332A\006parent\022\310\001\n\013StopScanRun\022;.google.clo" + - "ud.websecurityscanner.v1alpha.StopScanRu" + - "nRequest\0320.google.cloud.websecurityscann" + - "er.v1alpha.ScanRun\"J\202\323\344\223\002=\"8/v1alpha/{na" + - "me=projects/*/scanConfigs/*/scanRuns/*}:" + - "stop:\001*\332A\004name\022\350\001\n\017ListCrawledUrls\022?.goo" + - "gle.cloud.websecurityscanner.v1alpha.Lis" + - "tCrawledUrlsRequest\032@.google.cloud.webse" + - "curityscanner.v1alpha.ListCrawledUrlsRes" + - "ponse\"R\202\323\344\223\002C\022A/v1alpha/{parent=projects" + - "/*/scanConfigs/*/scanRuns/*}/crawledUrls" + - "\332A\006parent\022\311\001\n\nGetFinding\022:.google.cloud." + - "websecurityscanner.v1alpha.GetFindingReq" + - "uest\0320.google.cloud.websecurityscanner.v" + - "1alpha.Finding\"M\202\323\344\223\002@\022>/v1alpha/{name=p" + - "rojects/*/scanConfigs/*/scanRuns/*/findi" + - "ngs/*}\332A\004name\022\343\001\n\014ListFindings\022<.google." + - "cloud.websecurityscanner.v1alpha.ListFin" + - "dingsRequest\032=.google.cloud.websecuritys" + - "canner.v1alpha.ListFindingsResponse\"V\202\323\344" + - "\223\002@\022>/v1alpha/{parent=projects/*/scanCon" + - "figs/*/scanRuns/*}/findings\332A\rparent,fil" + - "ter\022\374\001\n\024ListFindingTypeStats\022D.google.cl" + - "oud.websecurityscanner.v1alpha.ListFindi" + - "ngTypeStatsRequest\032E.google.cloud.websec" + - "urityscanner.v1alpha.ListFindingTypeStat" + - "sResponse\"W\202\323\344\223\002H\022F/v1alpha/{parent=proj" + - "ects/*/scanConfigs/*/scanRuns/*}/finding" + - "TypeStats\332A\006parent\032U\312A!websecurityscanne" + - "r.googleapis.com\322A.https://www.googleapi" + - "s.com/auth/cloud-platformB\243\001\n+com.google" + - ".cloud.websecurityscanner.v1alphaB\027WebSe" + - "curityScannerProtoP\001ZYgoogle.golang.org/" + - "genproto/googleapis/cloud/websecuritysca" + - "nner/v1alpha;websecurityscannerb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor, - new java.lang.String[] { "Parent", "ScanConfig", }); - internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); - internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor, - new java.lang.String[] { "ScanConfig", "UpdateMask", }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor, - new java.lang.String[] { "ScanConfigs", "NextPageToken", }); - internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor, - new java.lang.String[] { "ScanRuns", "NextPageToken", }); - internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor, - new java.lang.String[] { "CrawledUrls", "NextPageToken", }); - internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "PageToken", "PageSize", }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor, - new java.lang.String[] { "Findings", "NextPageToken", }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor, - new java.lang.String[] { "Parent", }); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor, - new java.lang.String[] { "FindingTypeStats", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java b/owl-bot-staging/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java deleted file mode 100644 index 15b67642..00000000 --- a/owl-bot-staging/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java +++ /dev/null @@ -1,1349 +0,0 @@ -package com.google.cloud.websecurityscanner.v1beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Cloud Web Security Scanner Service identifies security vulnerabilities in web
- * applications hosted on Google Cloud Platform. It crawls your application, and
- * attempts to exercise as many user inputs and event handlers as possible.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WebSecurityScannerGrpc { - - private WebSecurityScannerGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.websecurityscanner.v1beta.WebSecurityScanner"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateScanConfigMethod() { - io.grpc.MethodDescriptor getCreateScanConfigMethod; - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getCreateScanConfigMethod = WebSecurityScannerGrpc.getCreateScanConfigMethod) == null) { - WebSecurityScannerGrpc.getCreateScanConfigMethod = getCreateScanConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("CreateScanConfig")) - .build(); - } - } - } - return getCreateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteScanConfig", - requestType = com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteScanConfigMethod() { - io.grpc.MethodDescriptor getDeleteScanConfigMethod; - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getDeleteScanConfigMethod = WebSecurityScannerGrpc.getDeleteScanConfigMethod) == null) { - WebSecurityScannerGrpc.getDeleteScanConfigMethod = getDeleteScanConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("DeleteScanConfig")) - .build(); - } - } - } - return getDeleteScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanConfig", - requestType = com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetScanConfigMethod() { - io.grpc.MethodDescriptor getGetScanConfigMethod; - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanConfigMethod = WebSecurityScannerGrpc.getGetScanConfigMethod) == null) { - WebSecurityScannerGrpc.getGetScanConfigMethod = getGetScanConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanConfig")) - .build(); - } - } - } - return getGetScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getListScanConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanConfigs", - requestType = com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListScanConfigsMethod() { - io.grpc.MethodDescriptor getListScanConfigsMethod; - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanConfigsMethod = WebSecurityScannerGrpc.getListScanConfigsMethod) == null) { - WebSecurityScannerGrpc.getListScanConfigsMethod = getListScanConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanConfigs")) - .build(); - } - } - } - return getListScanConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateScanConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateScanConfig", - requestType = com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateScanConfigMethod() { - io.grpc.MethodDescriptor getUpdateScanConfigMethod; - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getUpdateScanConfigMethod = WebSecurityScannerGrpc.getUpdateScanConfigMethod) == null) { - WebSecurityScannerGrpc.getUpdateScanConfigMethod = getUpdateScanConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateScanConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("UpdateScanConfig")) - .build(); - } - } - } - return getUpdateScanConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartScanRun", - requestType = com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartScanRunMethod() { - io.grpc.MethodDescriptor getStartScanRunMethod; - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStartScanRunMethod = WebSecurityScannerGrpc.getStartScanRunMethod) == null) { - WebSecurityScannerGrpc.getStartScanRunMethod = getStartScanRunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StartScanRun")) - .build(); - } - } - } - return getStartScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetScanRun", - requestType = com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetScanRunMethod() { - io.grpc.MethodDescriptor getGetScanRunMethod; - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetScanRunMethod = WebSecurityScannerGrpc.getGetScanRunMethod) == null) { - WebSecurityScannerGrpc.getGetScanRunMethod = getGetScanRunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetScanRun")) - .build(); - } - } - } - return getGetScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor getListScanRunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListScanRuns", - requestType = com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListScanRunsMethod() { - io.grpc.MethodDescriptor getListScanRunsMethod; - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListScanRunsMethod = WebSecurityScannerGrpc.getListScanRunsMethod) == null) { - WebSecurityScannerGrpc.getListScanRunsMethod = getListScanRunsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListScanRuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListScanRuns")) - .build(); - } - } - } - return getListScanRunsMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopScanRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopScanRun", - requestType = com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ScanRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopScanRunMethod() { - io.grpc.MethodDescriptor getStopScanRunMethod; - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getStopScanRunMethod = WebSecurityScannerGrpc.getStopScanRunMethod) == null) { - WebSecurityScannerGrpc.getStopScanRunMethod = getStopScanRunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopScanRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("StopScanRun")) - .build(); - } - } - } - return getStopScanRunMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCrawledUrlsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCrawledUrls", - requestType = com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCrawledUrlsMethod() { - io.grpc.MethodDescriptor getListCrawledUrlsMethod; - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListCrawledUrlsMethod = WebSecurityScannerGrpc.getListCrawledUrlsMethod) == null) { - WebSecurityScannerGrpc.getListCrawledUrlsMethod = getListCrawledUrlsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCrawledUrls")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListCrawledUrls")) - .build(); - } - } - } - return getListCrawledUrlsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetFindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFinding", - requestType = com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.Finding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetFindingMethod() { - io.grpc.MethodDescriptor getGetFindingMethod; - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getGetFindingMethod = WebSecurityScannerGrpc.getGetFindingMethod) == null) { - WebSecurityScannerGrpc.getGetFindingMethod = getGetFindingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("GetFinding")) - .build(); - } - } - } - return getGetFindingMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindings", - requestType = com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFindingsMethod() { - io.grpc.MethodDescriptor getListFindingsMethod; - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingsMethod = WebSecurityScannerGrpc.getListFindingsMethod) == null) { - WebSecurityScannerGrpc.getListFindingsMethod = getListFindingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindings")) - .build(); - } - } - } - return getListFindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFindingTypeStatsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFindingTypeStats", - requestType = com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, - responseType = com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFindingTypeStatsMethod() { - io.grpc.MethodDescriptor getListFindingTypeStatsMethod; - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { - synchronized (WebSecurityScannerGrpc.class) { - if ((getListFindingTypeStatsMethod = WebSecurityScannerGrpc.getListFindingTypeStatsMethod) == null) { - WebSecurityScannerGrpc.getListFindingTypeStatsMethod = getListFindingTypeStatsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFindingTypeStats")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WebSecurityScannerMethodDescriptorSupplier("ListFindingTypeStats")) - .build(); - } - } - } - return getListFindingTypeStatsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static WebSecurityScannerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - }; - return WebSecurityScannerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WebSecurityScannerBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - }; - return WebSecurityScannerBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static WebSecurityScannerFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WebSecurityScannerFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - }; - return WebSecurityScannerFutureStub.newStub(factory, channel); - } - - /** - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static abstract class WebSecurityScannerImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig(com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateScanConfigMethod(), responseObserver); - } - - /** - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteScanConfigMethod(), responseObserver); - } - - /** - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanConfigMethod(), responseObserver); - } - - /** - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanConfigsMethod(), responseObserver); - } - - /** - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig(com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateScanConfigMethod(), responseObserver); - } - - /** - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartScanRunMethod(), responseObserver); - } - - /** - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScanRunMethod(), responseObserver); - } - - /** - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScanRunsMethod(), responseObserver); - } - - /** - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopScanRunMethod(), responseObserver); - } - - /** - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCrawledUrlsMethod(), responseObserver); - } - - /** - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFindingMethod(), responseObserver); - } - - /** - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingsMethod(), responseObserver); - } - - /** - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingTypeStatsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig>( - this, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_SCAN_CONFIG))) - .addMethod( - getGetScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig>( - this, METHODID_GET_SCAN_CONFIG))) - .addMethod( - getListScanConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse>( - this, METHODID_LIST_SCAN_CONFIGS))) - .addMethod( - getUpdateScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest, - com.google.cloud.websecurityscanner.v1beta.ScanConfig>( - this, METHODID_UPDATE_SCAN_CONFIG))) - .addMethod( - getStartScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun>( - this, METHODID_START_SCAN_RUN))) - .addMethod( - getGetScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun>( - this, METHODID_GET_SCAN_RUN))) - .addMethod( - getListScanRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest, - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse>( - this, METHODID_LIST_SCAN_RUNS))) - .addMethod( - getStopScanRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest, - com.google.cloud.websecurityscanner.v1beta.ScanRun>( - this, METHODID_STOP_SCAN_RUN))) - .addMethod( - getListCrawledUrlsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest, - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse>( - this, METHODID_LIST_CRAWLED_URLS))) - .addMethod( - getGetFindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest, - com.google.cloud.websecurityscanner.v1beta.Finding>( - this, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse>( - this, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse>( - this, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - } - - /** - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerStub extends io.grpc.stub.AbstractAsyncStub { - private WebSecurityScannerStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerStub(channel, callOptions); - } - - /** - *
-     * Creates a new ScanConfig.
-     * 
- */ - public void createScanConfig(com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public void deleteScanConfig(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a ScanConfig.
-     * 
- */ - public void getScanConfig(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public void listScanConfigs(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public void updateScanConfig(com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public void startScanRun(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a ScanRun.
-     * 
- */ - public void getScanRun(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public void listScanRuns(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public void stopScanRun(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public void listCrawledUrls(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a Finding.
-     * 
- */ - public void getFinding(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public void listFindings(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public void listFindingTypeStats(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private WebSecurityScannerBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig createScanConfig(com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateScanConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.protobuf.Empty deleteScanConfig(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteScanConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse listScanConfigs(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanConfigsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig updateScanConfig(com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateScanConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanRun startScanRun(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartScanRunMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRun(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScanRunMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse listScanRuns(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListScanRunsMethod(), getCallOptions(), request); - } - - /** - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ScanRun stopScanRun(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopScanRunMethod(), getCallOptions(), request); - } - - /** - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse listCrawledUrls(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCrawledUrlsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a Finding.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.Finding getFinding(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFindingMethod(), getCallOptions(), request); - } - - /** - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse listFindings(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingsMethod(), getCallOptions(), request); - } - - /** - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse listFindingTypeStats(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFindingTypeStatsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Cloud Web Security Scanner Service identifies security vulnerabilities in web
-   * applications hosted on Google Cloud Platform. It crawls your application, and
-   * attempts to exercise as many user inputs and event handlers as possible.
-   * 
- */ - public static final class WebSecurityScannerFutureStub extends io.grpc.stub.AbstractFutureStub { - private WebSecurityScannerFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WebSecurityScannerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WebSecurityScannerFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a new ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createScanConfig( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateScanConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an existing ScanConfig and its child resources.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteScanConfig( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteScanConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getScanConfig( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists ScanConfigs under a given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listScanConfigs( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanConfigsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a ScanConfig. This method support partial update of a ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateScanConfig( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateScanConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Start a ScanRun according to the given ScanConfig.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startScanRun( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartScanRunMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getScanRun( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScanRunMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
-     * stop time.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listScanRuns( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListScanRunsMethod(), getCallOptions()), request); - } - - /** - *
-     * Stops a ScanRun. The stopped ScanRun is returned.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopScanRun( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopScanRunMethod(), getCallOptions()), request); - } - - /** - *
-     * List CrawledUrls under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCrawledUrls( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCrawledUrlsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a Finding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getFinding( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFindingMethod(), getCallOptions()), request); - } - - /** - *
-     * List Findings under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listFindings( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingsMethod(), getCallOptions()), request); - } - - /** - *
-     * List all FindingTypeStats under a given ScanRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listFindingTypeStats( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFindingTypeStatsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_SCAN_CONFIG = 0; - private static final int METHODID_DELETE_SCAN_CONFIG = 1; - private static final int METHODID_GET_SCAN_CONFIG = 2; - private static final int METHODID_LIST_SCAN_CONFIGS = 3; - private static final int METHODID_UPDATE_SCAN_CONFIG = 4; - private static final int METHODID_START_SCAN_RUN = 5; - private static final int METHODID_GET_SCAN_RUN = 6; - private static final int METHODID_LIST_SCAN_RUNS = 7; - private static final int METHODID_STOP_SCAN_RUN = 8; - private static final int METHODID_LIST_CRAWLED_URLS = 9; - private static final int METHODID_GET_FINDING = 10; - private static final int METHODID_LIST_FINDINGS = 11; - private static final int METHODID_LIST_FINDING_TYPE_STATS = 12; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final WebSecurityScannerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(WebSecurityScannerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_SCAN_CONFIG: - serviceImpl.createScanConfig((com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SCAN_CONFIG: - serviceImpl.deleteScanConfig((com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SCAN_CONFIG: - serviceImpl.getScanConfig((com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SCAN_CONFIGS: - serviceImpl.listScanConfigs((com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SCAN_CONFIG: - serviceImpl.updateScanConfig((com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_SCAN_RUN: - serviceImpl.startScanRun((com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SCAN_RUN: - serviceImpl.getScanRun((com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SCAN_RUNS: - serviceImpl.listScanRuns((com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_SCAN_RUN: - serviceImpl.stopScanRun((com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CRAWLED_URLS: - serviceImpl.listCrawledUrls((com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_FINDING: - serviceImpl.getFinding((com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FINDINGS: - serviceImpl.listFindings((com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FINDING_TYPE_STATS: - serviceImpl.listFindingTypeStats((com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WebSecurityScannerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("WebSecurityScanner"); - } - } - - private static final class WebSecurityScannerFileDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier { - WebSecurityScannerFileDescriptorSupplier() {} - } - - private static final class WebSecurityScannerMethodDescriptorSupplier - extends WebSecurityScannerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - WebSecurityScannerMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (WebSecurityScannerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WebSecurityScannerFileDescriptorSupplier()) - .addMethod(getCreateScanConfigMethod()) - .addMethod(getDeleteScanConfigMethod()) - .addMethod(getGetScanConfigMethod()) - .addMethod(getListScanConfigsMethod()) - .addMethod(getUpdateScanConfigMethod()) - .addMethod(getStartScanRunMethod()) - .addMethod(getGetScanRunMethod()) - .addMethod(getListScanRunsMethod()) - .addMethod(getStopScanRunMethod()) - .addMethod(getListCrawledUrlsMethod()) - .addMethod(getGetFindingMethod()) - .addMethod(getListFindingsMethod()) - .addMethod(getListFindingTypeStatsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java deleted file mode 100644 index 4e001c6f..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/crawled_url.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class CrawledUrlProto { - private CrawledUrlProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/websecurityscanner/v1beta" + - "/crawled_url.proto\022&google.cloud.websecu" + - "rityscanner.v1beta\"<\n\nCrawledUrl\022\023\n\013http" + - "_method\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001(\t" + - "B\227\002\n*com.google.cloud.websecurityscanner" + - ".v1betaB\017CrawledUrlProtoP\001ZXgoogle.golan" + - "g.org/genproto/googleapis/cloud/websecur" + - "ityscanner/v1beta;websecurityscanner\252\002&G" + - "oogle.Cloud.WebSecurityScanner.V1Beta\312\002&" + - "Google\\Cloud\\WebSecurityScanner\\V1beta\352\002" + - ")Google::Cloud::WebSecurityScanner::V1be" + - "tab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor, - new java.lang.String[] { "HttpMethod", "Url", "Body", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java deleted file mode 100644 index b4f98425..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface CreateScanConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent resource name where the scan is created, which should be a
-   * project resource name in the format 'projects/{projectId}'.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent resource name where the scan is created, which should be a
-   * project resource name in the format 'projects/{projectId}'.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the scanConfig field is set. - */ - boolean hasScanConfig(); - /** - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The scanConfig. - */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig(); - /** - *
-   * Required. The ScanConfig to be created.
-   * 
- * - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder(); -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java deleted file mode 100644 index 9f431507..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface DeleteScanConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the ScanConfig to be deleted. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the ScanConfig to be deleted. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java deleted file mode 100644 index 2b906b00..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java +++ /dev/null @@ -1,134 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/finding_addon.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class FindingAddonProto { - private FindingAddonProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n:google/cloud/websecurityscanner/v1beta" + - "/finding_addon.proto\022&google.cloud.webse" + - "curityscanner.v1beta\"*\n\004Form\022\022\n\naction_u" + - "ri\030\001 \001(\t\022\016\n\006fields\030\002 \003(\t\"Q\n\017OutdatedLibr" + - "ary\022\024\n\014library_name\030\001 \001(\t\022\017\n\007version\030\002 \001" + - "(\t\022\027\n\017learn_more_urls\030\003 \003(\t\"?\n\021Violating" + - "Resource\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resour" + - "ce_url\030\002 \001(\t\"/\n\024VulnerableParameters\022\027\n\017" + - "parameter_names\030\001 \003(\t\"\350\001\n\021VulnerableHead" + - "ers\022Q\n\007headers\030\001 \003(\0132@.google.cloud.webs" + - "ecurityscanner.v1beta.VulnerableHeaders." + - "Header\022Y\n\017missing_headers\030\002 \003(\0132@.google" + - ".cloud.websecurityscanner.v1beta.Vulnera" + - "bleHeaders.Header\032%\n\006Header\022\014\n\004name\030\001 \001(" + - "\t\022\r\n\005value\030\002 \001(\t\"2\n\003Xss\022\024\n\014stack_traces\030" + - "\001 \003(\t\022\025\n\rerror_message\030\002 \001(\tB\231\002\n*com.goo" + - "gle.cloud.websecurityscanner.v1betaB\021Fin" + - "dingAddonProtoP\001ZXgoogle.golang.org/genp" + - "roto/googleapis/cloud/websecurityscanner" + - "/v1beta;websecurityscanner\252\002&Google.Clou" + - "d.WebSecurityScanner.V1Beta\312\002&Google\\Clo" + - "ud\\WebSecurityScanner\\V1beta\352\002)Google::C" + - "loud::WebSecurityScanner::V1betab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor, - new java.lang.String[] { "ActionUri", "Fields", }); - internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor, - new java.lang.String[] { "LibraryName", "Version", "LearnMoreUrls", }); - internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor, - new java.lang.String[] { "ContentType", "ResourceUrl", }); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor, - new java.lang.String[] { "ParameterNames", }); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor, - new java.lang.String[] { "Headers", "MissingHeaders", }); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor = - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor, - new java.lang.String[] { "Name", "Value", }); - internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor, - new java.lang.String[] { "StackTraces", "ErrorMessage", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java deleted file mode 100644 index f5d93a07..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java +++ /dev/null @@ -1,86 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/finding.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class FindingProto { - private FindingProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/websecurityscanner/v1beta" + - "/finding.proto\022&google.cloud.websecurity" + - "scanner.v1beta\032\031google/api/resource.prot" + - "o\032:google/cloud/websecurityscanner/v1bet" + - "a/finding_addon.proto\"\251\006\n\007Finding\022\014\n\004nam" + - "e\030\001 \001(\t\022\024\n\014finding_type\030\002 \001(\t\022\023\n\013http_me" + - "thod\030\003 \001(\t\022\022\n\nfuzzed_url\030\004 \001(\t\022\014\n\004body\030\005" + - " \001(\t\022\023\n\013description\030\006 \001(\t\022\030\n\020reproductio" + - "n_url\030\007 \001(\t\022\021\n\tframe_url\030\010 \001(\t\022\021\n\tfinal_" + - "url\030\t \001(\t\022\023\n\013tracking_id\030\n \001(\t\022:\n\004form\030\020" + - " \001(\0132,.google.cloud.websecurityscanner.v" + - "1beta.Form\022Q\n\020outdated_library\030\013 \001(\01327.g" + - "oogle.cloud.websecurityscanner.v1beta.Ou" + - "tdatedLibrary\022U\n\022violating_resource\030\014 \001(" + - "\01329.google.cloud.websecurityscanner.v1be" + - "ta.ViolatingResource\022U\n\022vulnerable_heade" + - "rs\030\017 \001(\01329.google.cloud.websecurityscann" + - "er.v1beta.VulnerableHeaders\022[\n\025vulnerabl" + - "e_parameters\030\r \001(\0132<.google.cloud.websec" + - "urityscanner.v1beta.VulnerableParameters" + - "\0228\n\003xss\030\016 \001(\0132+.google.cloud.websecurity" + - "scanner.v1beta.Xss:\204\001\352A\200\001\n)websecuritysc" + - "anner.googleapis.com/Finding\022Sprojects/{" + - "project}/scanConfigs/{scan_config}/scanR" + - "uns/{scan_run}/findings/{finding}B\224\002\n*co" + - "m.google.cloud.websecurityscanner.v1beta" + - "B\014FindingProtoP\001ZXgoogle.golang.org/genp" + - "roto/googleapis/cloud/websecurityscanner" + - "/v1beta;websecurityscanner\252\002&Google.Clou" + - "d.WebSecurityScanner.V1Beta\312\002&Google\\Clo" + - "ud\\WebSecurityScanner\\V1beta\352\002)Google::C" + - "loud::WebSecurityScanner::V1betab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor, - new java.lang.String[] { "Name", "FindingType", "HttpMethod", "FuzzedUrl", "Body", "Description", "ReproductionUrl", "FrameUrl", "FinalUrl", "TrackingId", "Form", "OutdatedLibrary", "ViolatingResource", "VulnerableHeaders", "VulnerableParameters", "Xss", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java deleted file mode 100644 index 61295590..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/finding_type_stats.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class FindingTypeStatsProto { - private FindingTypeStatsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n?google/cloud/websecurityscanner/v1beta" + - "/finding_type_stats.proto\022&google.cloud." + - "websecurityscanner.v1beta\"?\n\020FindingType" + - "Stats\022\024\n\014finding_type\030\001 \001(\t\022\025\n\rfinding_c" + - "ount\030\002 \001(\005B\235\002\n*com.google.cloud.websecur" + - "ityscanner.v1betaB\025FindingTypeStatsProto" + - "P\001ZXgoogle.golang.org/genproto/googleapi" + - "s/cloud/websecurityscanner/v1beta;websec" + - "urityscanner\252\002&Google.Cloud.WebSecurityS" + - "canner.V1Beta\312\002&Google\\Cloud\\WebSecurity" + - "Scanner\\V1beta\352\002)Google::Cloud::WebSecur" + - "ityScanner::V1betab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor, - new java.lang.String[] { "FindingType", "FindingCount", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java deleted file mode 100644 index 82d82324..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface GetFindingRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetFindingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the Finding to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the Finding to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java deleted file mode 100644 index 51da9ac4..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface GetScanConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the ScanConfig to be returned. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the ScanConfig to be returned. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java deleted file mode 100644 index a2400447..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface GetScanRunRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the ScanRun to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the ScanRun to be returned. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java deleted file mode 100644 index dc0b39df..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface ListFindingTypeStatsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent resource name, which should be a scan run resource name in the
-   * format
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent resource name, which should be a scan run resource name in the
-   * format
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java deleted file mode 100644 index d075bcb5..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java +++ /dev/null @@ -1,93 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/scan_config_error.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class ScanConfigErrorProto { - private ScanConfigErrorProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n>google/cloud/websecurityscanner/v1beta" + - "/scan_config_error.proto\022&google.cloud.w" + - "ebsecurityscanner.v1beta\"\355\013\n\017ScanConfigE" + - "rror\022J\n\004code\030\001 \001(\0162<.google.cloud.websec" + - "urityscanner.v1beta.ScanConfigError.Code" + - "\022\022\n\nfield_name\030\002 \001(\t\"\371\n\n\004Code\022\024\n\020CODE_UN" + - "SPECIFIED\020\000\022\006\n\002OK\020\000\022\022\n\016INTERNAL_ERROR\020\001\022" + - "\037\n\033APPENGINE_API_BACKEND_ERROR\020\002\022 \n\034APPE" + - "NGINE_API_NOT_ACCESSIBLE\020\003\022\"\n\036APPENGINE_" + - "DEFAULT_HOST_MISSING\020\004\022!\n\035CANNOT_USE_GOO" + - "GLE_COM_ACCOUNT\020\006\022\034\n\030CANNOT_USE_OWNER_AC" + - "COUNT\020\007\022\035\n\031COMPUTE_API_BACKEND_ERROR\020\010\022\036" + - "\n\032COMPUTE_API_NOT_ACCESSIBLE\020\t\0227\n3CUSTOM" + - "_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PR" + - "OJECT\020\n\022\036\n\032CUSTOM_LOGIN_URL_MALFORMED\020\013\022" + - "3\n/CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTAB" + - "LE_ADDRESS\020\014\0221\n-CUSTOM_LOGIN_URL_MAPPED_" + - "TO_UNRESERVED_ADDRESS\020\r\0220\n,CUSTOM_LOGIN_" + - "URL_HAS_NON_ROUTABLE_IP_ADDRESS\020\016\022.\n*CUS" + - "TOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS\020" + - "\017\022\027\n\023DUPLICATE_SCAN_NAME\020\020\022\027\n\023INVALID_FI" + - "ELD_VALUE\020\022\022$\n FAILED_TO_AUTHENTICATE_TO" + - "_TARGET\020\023\022\034\n\030FINDING_TYPE_UNSPECIFIED\020\024\022" + - "\035\n\031FORBIDDEN_TO_SCAN_COMPUTE\020\025\022$\n FORBID" + - "DEN_UPDATE_TO_MANAGED_SCAN\020+\022\024\n\020MALFORME" + - "D_FILTER\020\026\022\033\n\027MALFORMED_RESOURCE_NAME\020\027\022" + - "\024\n\020PROJECT_INACTIVE\020\030\022\022\n\016REQUIRED_FIELD\020" + - "\031\022\036\n\032RESOURCE_NAME_INCONSISTENT\020\032\022\030\n\024SCA" + - "N_ALREADY_RUNNING\020\033\022\024\n\020SCAN_NOT_RUNNING\020" + - "\034\022/\n+SEED_URL_DOES_NOT_BELONG_TO_CURRENT" + - "_PROJECT\020\035\022\026\n\022SEED_URL_MALFORMED\020\036\022+\n\'SE" + - "ED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\020\037\022" + - ")\n%SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS" + - "\020 \022(\n$SEED_URL_HAS_NON_ROUTABLE_IP_ADDRE" + - "SS\020!\022&\n\"SEED_URL_HAS_UNRESERVED_IP_ADDRE" + - "SS\020#\022\"\n\036SERVICE_ACCOUNT_NOT_CONFIGURED\020$" + - "\022\022\n\016TOO_MANY_SCANS\020%\022\"\n\036UNABLE_TO_RESOLV" + - "E_PROJECT_INFO\020&\022(\n$UNSUPPORTED_BLACKLIS" + - "T_PATTERN_FORMAT\020\'\022\026\n\022UNSUPPORTED_FILTER" + - "\020(\022\034\n\030UNSUPPORTED_FINDING_TYPE\020)\022\032\n\026UNSU" + - "PPORTED_URL_SCHEME\020*\032\002\020\001B\234\002\n*com.google." + - "cloud.websecurityscanner.v1betaB\024ScanCon" + - "figErrorProtoP\001ZXgoogle.golang.org/genpr" + - "oto/googleapis/cloud/websecurityscanner/" + - "v1beta;websecurityscanner\252\002&Google.Cloud" + - ".WebSecurityScanner.V1Beta\312\002&Google\\Clou" + - "d\\WebSecurityScanner\\V1beta\352\002)Google::Cl" + - "oud::WebSecurityScanner::V1betab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor, - new java.lang.String[] { "Code", "FieldName", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java deleted file mode 100644 index 95c4e259..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java +++ /dev/null @@ -1,160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/scan_config.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class ScanConfigProto { - private ScanConfigProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/websecurityscanner/v1beta" + - "/scan_config.proto\022&google.cloud.websecu" + - "rityscanner.v1beta\032\037google/api/field_beh" + - "avior.proto\032\031google/api/resource.proto\0325" + - "google/cloud/websecurityscanner/v1beta/s" + - "can_run.proto\032\037google/protobuf/timestamp" + - ".proto\"\246\r\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\031\n\014d" + - "isplay_name\030\002 \001(\tB\003\340A\002\022\017\n\007max_qps\030\003 \001(\005\022" + - "\032\n\rstarting_urls\030\004 \003(\tB\003\340A\002\022Y\n\016authentic" + - "ation\030\005 \001(\0132A.google.cloud.websecuritysc" + - "anner.v1beta.ScanConfig.Authentication\022P" + - "\n\nuser_agent\030\006 \001(\0162<.google.cloud.websec" + - "urityscanner.v1beta.ScanConfig.UserAgent" + - "\022\032\n\022blacklist_patterns\030\007 \003(\t\022M\n\010schedule" + - "\030\010 \001(\0132;.google.cloud.websecurityscanner" + - ".v1beta.ScanConfig.Schedule\022[\n\020target_pl" + - "atforms\030\t \003(\0162A.google.cloud.websecurity" + - "scanner.v1beta.ScanConfig.TargetPlatform" + - "\022{\n!export_to_security_command_center\030\n " + - "\001(\0162P.google.cloud.websecurityscanner.v1" + - "beta.ScanConfig.ExportToSecurityCommandC" + - "enter\022C\n\nlatest_run\030\013 \001(\0132/.google.cloud" + - ".websecurityscanner.v1beta.ScanRun\022P\n\nri" + - "sk_level\030\014 \001(\0162<.google.cloud.websecurit" + - "yscanner.v1beta.ScanConfig.RiskLevel\032\224\003\n" + - "\016Authentication\022i\n\016google_account\030\001 \001(\0132" + - "O.google.cloud.websecurityscanner.v1beta" + - ".ScanConfig.Authentication.GoogleAccount" + - "H\000\022i\n\016custom_account\030\002 \001(\0132O.google.clou" + - "d.websecurityscanner.v1beta.ScanConfig.A" + - "uthentication.CustomAccountH\000\032@\n\rGoogleA" + - "ccount\022\025\n\010username\030\001 \001(\tB\003\340A\002\022\030\n\010passwor" + - "d\030\002 \001(\tB\006\340A\002\340A\004\032X\n\rCustomAccount\022\025\n\010user" + - "name\030\001 \001(\tB\003\340A\002\022\030\n\010password\030\002 \001(\tB\006\340A\002\340A" + - "\004\022\026\n\tlogin_url\030\003 \001(\tB\003\340A\002B\020\n\016authenticat" + - "ion\032b\n\010Schedule\0221\n\rschedule_time\030\001 \001(\0132\032" + - ".google.protobuf.Timestamp\022#\n\026interval_d" + - "uration_days\030\002 \001(\005B\003\340A\002\"`\n\tUserAgent\022\032\n\026" + - "USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LINUX" + - "\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHONE\020" + - "\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFORM_U" + - "NSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMPUTE\020" + - "\002\"<\n\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED" + - "\020\000\022\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecur" + - "ityCommandCenter\0221\n-EXPORT_TO_SECURITY_C" + - "OMMAND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001" + - "\022\014\n\010DISABLED\020\002:_\352A\\\n,websecurityscanner." + - "googleapis.com/ScanConfig\022,projects/{pro" + - "ject}/scanConfigs/{scan_config}B\227\002\n*com." + - "google.cloud.websecurityscanner.v1betaB\017" + - "ScanConfigProtoP\001ZXgoogle.golang.org/gen" + - "proto/googleapis/cloud/websecurityscanne" + - "r/v1beta;websecurityscanner\252\002&Google.Clo" + - "ud.WebSecurityScanner.V1Beta\312\002&Google\\Cl" + - "oud\\WebSecurityScanner\\V1beta\352\002)Google::" + - "Cloud::WebSecurityScanner::V1betab\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor, - new java.lang.String[] { "Name", "DisplayName", "MaxQps", "StartingUrls", "Authentication", "UserAgent", "BlacklistPatterns", "Schedule", "TargetPlatforms", "ExportToSecurityCommandCenter", "LatestRun", "RiskLevel", }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor = - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor, - new java.lang.String[] { "GoogleAccount", "CustomAccount", "Authentication", }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor, - new java.lang.String[] { "Username", "Password", }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor = - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor, - new java.lang.String[] { "Username", "Password", "LoginUrl", }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor = - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor, - new java.lang.String[] { "ScheduleTime", "IntervalDurationDays", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java deleted file mode 100644 index 39dd06a4..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class ScanRunErrorTraceProto { - private ScanRunErrorTraceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nAgoogle/cloud/websecurityscanner/v1beta" + - "/scan_run_error_trace.proto\022&google.clou" + - "d.websecurityscanner.v1beta\032>google/clou" + - "d/websecurityscanner/v1beta/scan_config_" + - "error.proto\"\225\003\n\021ScanRunErrorTrace\022L\n\004cod" + - "e\030\001 \001(\0162>.google.cloud.websecurityscanne" + - "r.v1beta.ScanRunErrorTrace.Code\022R\n\021scan_" + - "config_error\030\002 \001(\01327.google.cloud.websec" + - "urityscanner.v1beta.ScanConfigError\022#\n\033m" + - "ost_common_http_error_code\030\003 \001(\005\"\270\001\n\004Cod" + - "e\022\024\n\020CODE_UNSPECIFIED\020\000\022\022\n\016INTERNAL_ERRO" + - "R\020\001\022\025\n\021SCAN_CONFIG_ISSUE\020\002\022\037\n\033AUTHENTICA" + - "TION_CONFIG_ISSUE\020\003\022\034\n\030TIMED_OUT_WHILE_S" + - "CANNING\020\004\022\026\n\022TOO_MANY_REDIRECTS\020\005\022\030\n\024TOO" + - "_MANY_HTTP_ERRORS\020\006B\236\002\n*com.google.cloud" + - ".websecurityscanner.v1betaB\026ScanRunError" + - "TraceProtoP\001ZXgoogle.golang.org/genproto" + - "/googleapis/cloud/websecurityscanner/v1b" + - "eta;websecurityscanner\252\002&Google.Cloud.We" + - "bSecurityScanner.V1Beta\312\002&Google\\Cloud\\W" + - "ebSecurityScanner\\V1beta\352\002)Google::Cloud" + - "::WebSecurityScanner::V1betab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor, - new java.lang.String[] { "Code", "ScanConfigError", "MostCommonHttpErrorCode", }); - com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java deleted file mode 100644 index 3768b129..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java +++ /dev/null @@ -1,94 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/scan_run.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class ScanRunProto { - private ScanRunProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n5google/cloud/websecurityscanner/v1beta" + - "/scan_run.proto\022&google.cloud.websecurit" + - "yscanner.v1beta\032\031google/api/resource.pro" + - "to\032Agoogle/cloud/websecurityscanner/v1be" + - "ta/scan_run_error_trace.proto\032Cgoogle/cl" + - "oud/websecurityscanner/v1beta/scan_run_w" + - "arning_trace.proto\032\037google/protobuf/time" + - "stamp.proto\"\322\006\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022W\n" + - "\017execution_state\030\002 \001(\0162>.google.cloud.we" + - "bsecurityscanner.v1beta.ScanRun.Executio" + - "nState\022Q\n\014result_state\030\003 \001(\0162;.google.cl" + - "oud.websecurityscanner.v1beta.ScanRun.Re" + - "sultState\022.\n\nstart_time\030\004 \001(\0132\032.google.p" + - "rotobuf.Timestamp\022,\n\010end_time\030\005 \001(\0132\032.go" + - "ogle.protobuf.Timestamp\022\032\n\022urls_crawled_" + - "count\030\006 \001(\003\022\031\n\021urls_tested_count\030\007 \001(\003\022\033" + - "\n\023has_vulnerabilities\030\010 \001(\010\022\030\n\020progress_" + - "percent\030\t \001(\005\022N\n\013error_trace\030\n \001(\01329.goo" + - "gle.cloud.websecurityscanner.v1beta.Scan" + - "RunErrorTrace\022S\n\016warning_traces\030\013 \003(\0132;." + - "google.cloud.websecurityscanner.v1beta.S" + - "canRunWarningTrace\"Y\n\016ExecutionState\022\037\n\033" + - "EXECUTION_STATE_UNSPECIFIED\020\000\022\n\n\006QUEUED\020" + - "\001\022\014\n\010SCANNING\020\002\022\014\n\010FINISHED\020\003\"O\n\013ResultS" + - "tate\022\034\n\030RESULT_STATE_UNSPECIFIED\020\000\022\013\n\007SU" + - "CCESS\020\001\022\t\n\005ERROR\020\002\022\n\n\006KILLED\020\003:p\352Am\n)web" + - "securityscanner.googleapis.com/ScanRun\022@" + - "projects/{project}/scanConfigs/{scan_con" + - "fig}/scanRuns/{scan_run}B\224\002\n*com.google." + - "cloud.websecurityscanner.v1betaB\014ScanRun" + - "ProtoP\001ZXgoogle.golang.org/genproto/goog" + - "leapis/cloud/websecurityscanner/v1beta;w" + - "ebsecurityscanner\252\002&Google.Cloud.WebSecu" + - "rityScanner.V1Beta\312\002&Google\\Cloud\\WebSec" + - "urityScanner\\V1beta\352\002)Google::Cloud::Web" + - "SecurityScanner::V1betab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor, - new java.lang.String[] { "Name", "ExecutionState", "ResultState", "StartTime", "EndTime", "UrlsCrawledCount", "UrlsTestedCount", "HasVulnerabilities", "ProgressPercent", "ErrorTrace", "WarningTraces", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java deleted file mode 100644 index 4e6cfa02..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java +++ /dev/null @@ -1,62 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class ScanRunWarningTraceProto { - private ScanRunWarningTraceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nCgoogle/cloud/websecurityscanner/v1beta" + - "/scan_run_warning_trace.proto\022&google.cl" + - "oud.websecurityscanner.v1beta\"\355\001\n\023ScanRu" + - "nWarningTrace\022N\n\004code\030\001 \001(\0162@.google.clo" + - "ud.websecurityscanner.v1beta.ScanRunWarn" + - "ingTrace.Code\"\205\001\n\004Code\022\024\n\020CODE_UNSPECIFI" + - "ED\020\000\022\036\n\032INSUFFICIENT_CRAWL_RESULTS\020\001\022\032\n\026" + - "TOO_MANY_CRAWL_RESULTS\020\002\022\027\n\023TOO_MANY_FUZ" + - "Z_TASKS\020\003\022\022\n\016BLOCKED_BY_IAP\020\004B\240\002\n*com.go" + - "ogle.cloud.websecurityscanner.v1betaB\030Sc" + - "anRunWarningTraceProtoP\001ZXgoogle.golang." + - "org/genproto/googleapis/cloud/websecurit" + - "yscanner/v1beta;websecurityscanner\252\002&Goo" + - "gle.Cloud.WebSecurityScanner.V1Beta\312\002&Go" + - "ogle\\Cloud\\WebSecurityScanner\\V1beta\352\002)G" + - "oogle::Cloud::WebSecurityScanner::V1beta" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor, - new java.lang.String[] { "Code", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java deleted file mode 100644 index ad91dfc0..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface StartScanRunRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the ScanConfig to be used. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the ScanConfig to be used. The name follows the
-   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java deleted file mode 100644 index 451ee9bd..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public interface StopScanRunRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the ScanRun to be stopped. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the ScanRun to be stopped. The name follows the
-   * format of
-   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java b/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java deleted file mode 100644 index 696f0e6e..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java +++ /dev/null @@ -1,410 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto - -package com.google.cloud.websecurityscanner.v1beta; - -public final class WebSecurityScannerProto { - private WebSecurityScannerProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nAgoogle/cloud/websecurityscanner/v1beta" + - "/web_security_scanner.proto\022&google.clou" + - "d.websecurityscanner.v1beta\032\034google/api/" + - "annotations.proto\032\027google/api/client.pro" + - "to\032\037google/api/field_behavior.proto\032\031goo" + - "gle/api/resource.proto\0328google/cloud/web" + - "securityscanner/v1beta/crawled_url.proto" + - "\0324google/cloud/websecurityscanner/v1beta" + - "/finding.proto\032?google/cloud/websecurity" + - "scanner/v1beta/finding_type_stats.proto\032" + - "8google/cloud/websecurityscanner/v1beta/" + - "scan_config.proto\0325google/cloud/websecur" + - "ityscanner/v1beta/scan_run.proto\032\033google" + - "/protobuf/empty.proto\032 google/protobuf/f" + - "ield_mask.proto\"\254\001\n\027CreateScanConfigRequ" + - "est\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresour" + - "cemanager.googleapis.com/Project\022L\n\013scan" + - "_config\030\002 \001(\01322.google.cloud.websecurity" + - "scanner.v1beta.ScanConfigB\003\340A\002\"]\n\027Delete" + - "ScanConfigRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n" + - ",websecurityscanner.googleapis.com/ScanC" + - "onfig\"Z\n\024GetScanConfigRequest\022B\n\004name\030\001 " + - "\001(\tB4\340A\002\372A.\n,websecurityscanner.googleap" + - "is.com/ScanConfig\"\204\001\n\026ListScanConfigsReq" + - "uest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresou" + - "rcemanager.googleapis.com/Project\022\022\n\npag" + - "e_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\235\001\n\027Upd" + - "ateScanConfigRequest\022L\n\013scan_config\030\002 \001(" + - "\01322.google.cloud.websecurityscanner.v1be" + - "ta.ScanConfigB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132" + - "\032.google.protobuf.FieldMaskB\003\340A\002\"|\n\027List" + - "ScanConfigsResponse\022H\n\014scan_configs\030\001 \003(" + - "\01322.google.cloud.websecurityscanner.v1be" + - "ta.ScanConfig\022\027\n\017next_page_token\030\002 \001(\t\"Y" + - "\n\023StartScanRunRequest\022B\n\004name\030\001 \001(\tB4\340A\002" + - "\372A.\n,websecurityscanner.googleapis.com/S" + - "canConfig\"T\n\021GetScanRunRequest\022?\n\004name\030\001" + - " \001(\tB1\340A\002\372A+\n)websecurityscanner.googlea" + - "pis.com/ScanRun\"\202\001\n\023ListScanRunsRequest\022" + - "D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,websecurityscan" + - "ner.googleapis.com/ScanConfig\022\022\n\npage_to" + - "ken\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"s\n\024ListScan" + - "RunsResponse\022B\n\tscan_runs\030\001 \003(\0132/.google" + - ".cloud.websecurityscanner.v1beta.ScanRun" + - "\022\027\n\017next_page_token\030\002 \001(\t\"U\n\022StopScanRun" + - "Request\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecuri" + - "tyscanner.googleapis.com/ScanRun\"\202\001\n\026Lis" + - "tCrawledUrlsRequest\022A\n\006parent\030\001 \001(\tB1\340A\002" + - "\372A+\n)websecurityscanner.googleapis.com/S" + - "canRun\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030" + - "\003 \001(\005\"|\n\027ListCrawledUrlsResponse\022H\n\014craw" + - "led_urls\030\001 \003(\01322.google.cloud.websecurit" + - "yscanner.v1beta.CrawledUrl\022\027\n\017next_page_" + - "token\030\002 \001(\t\"T\n\021GetFindingRequest\022?\n\004name" + - "\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner.googl" + - "eapis.com/Finding\"\224\001\n\023ListFindingsReques" + - "t\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)websecuritysc" + - "anner.googleapis.com/ScanRun\022\023\n\006filter\030\002" + - " \001(\tB\003\340A\002\022\022\n\npage_token\030\003 \001(\t\022\021\n\tpage_si" + - "ze\030\004 \001(\005\"r\n\024ListFindingsResponse\022A\n\010find" + - "ings\030\001 \003(\0132/.google.cloud.websecuritysca" + - "nner.v1beta.Finding\022\027\n\017next_page_token\030\002" + - " \001(\t\"`\n\033ListFindingTypeStatsRequest\022A\n\006p" + - "arent\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner." + - "googleapis.com/ScanRun\"t\n\034ListFindingTyp" + - "eStatsResponse\022T\n\022finding_type_stats\030\001 \003" + - "(\01328.google.cloud.websecurityscanner.v1b" + - "eta.FindingTypeStats2\216\026\n\022WebSecurityScan" + - "ner\022\332\001\n\020CreateScanConfig\022?.google.cloud." + - "websecurityscanner.v1beta.CreateScanConf" + - "igRequest\0322.google.cloud.websecurityscan" + - "ner.v1beta.ScanConfig\"Q\202\323\344\223\0026\"\'/v1beta/{" + - "parent=projects/*}/scanConfigs:\013scan_con" + - "fig\332A\022parent,scan_config\022\243\001\n\020DeleteScanC" + - "onfig\022?.google.cloud.websecurityscanner." + - "v1beta.DeleteScanConfigRequest\032\026.google." + - "protobuf.Empty\"6\202\323\344\223\002)*\'/v1beta/{name=pr" + - "ojects/*/scanConfigs/*}\332A\004name\022\271\001\n\rGetSc" + - "anConfig\022<.google.cloud.websecurityscann" + - "er.v1beta.GetScanConfigRequest\0322.google." + - "cloud.websecurityscanner.v1beta.ScanConf" + - "ig\"6\202\323\344\223\002)\022\'/v1beta/{name=projects/*/sca" + - "nConfigs/*}\332A\004name\022\314\001\n\017ListScanConfigs\022>" + - ".google.cloud.websecurityscanner.v1beta." + - "ListScanConfigsRequest\032?.google.cloud.we" + - "bsecurityscanner.v1beta.ListScanConfigsR" + - "esponse\"8\202\323\344\223\002)\022\'/v1beta/{parent=project" + - "s/*}/scanConfigs\332A\006parent\022\353\001\n\020UpdateScan" + - "Config\022?.google.cloud.websecurityscanner" + - ".v1beta.UpdateScanConfigRequest\0322.google" + - ".cloud.websecurityscanner.v1beta.ScanCon" + - "fig\"b\202\323\344\223\002B23/v1beta/{scan_config.name=p" + - "rojects/*/scanConfigs/*}:\013scan_config\332A\027" + - "scan_config,update_mask\022\275\001\n\014StartScanRun" + - "\022;.google.cloud.websecurityscanner.v1bet" + - "a.StartScanRunRequest\032/.google.cloud.web" + - "securityscanner.v1beta.ScanRun\"?\202\323\344\223\0022\"-" + - "/v1beta/{name=projects/*/scanConfigs/*}:" + - "start:\001*\332A\004name\022\273\001\n\nGetScanRun\0229.google." + - "cloud.websecurityscanner.v1beta.GetScanR" + - "unRequest\032/.google.cloud.websecurityscan" + - "ner.v1beta.ScanRun\"A\202\323\344\223\0024\0222/v1beta/{nam" + - "e=projects/*/scanConfigs/*/scanRuns/*}\332A" + - "\004name\022\316\001\n\014ListScanRuns\022;.google.cloud.we" + - "bsecurityscanner.v1beta.ListScanRunsRequ" + - "est\032<.google.cloud.websecurityscanner.v1" + - "beta.ListScanRunsResponse\"C\202\323\344\223\0024\0222/v1be" + - "ta/{parent=projects/*/scanConfigs/*}/sca" + - "nRuns\332A\006parent\022\305\001\n\013StopScanRun\022:.google." + - "cloud.websecurityscanner.v1beta.StopScan" + - "RunRequest\032/.google.cloud.websecuritysca" + - "nner.v1beta.ScanRun\"I\202\323\344\223\002<\"7/v1beta/{na" + - "me=projects/*/scanConfigs/*/scanRuns/*}:" + - "stop:\001*\332A\004name\022\345\001\n\017ListCrawledUrls\022>.goo" + - "gle.cloud.websecurityscanner.v1beta.List" + - "CrawledUrlsRequest\032?.google.cloud.websec" + - "urityscanner.v1beta.ListCrawledUrlsRespo" + - "nse\"Q\202\323\344\223\002B\022@/v1beta/{parent=projects/*/" + - "scanConfigs/*/scanRuns/*}/crawledUrls\332A\006" + - "parent\022\306\001\n\nGetFinding\0229.google.cloud.web" + - "securityscanner.v1beta.GetFindingRequest" + - "\032/.google.cloud.websecurityscanner.v1bet" + - "a.Finding\"L\202\323\344\223\002?\022=/v1beta/{name=project" + - "s/*/scanConfigs/*/scanRuns/*/findings/*}" + - "\332A\004name\022\340\001\n\014ListFindings\022;.google.cloud." + - "websecurityscanner.v1beta.ListFindingsRe" + - "quest\032<.google.cloud.websecurityscanner." + - "v1beta.ListFindingsResponse\"U\202\323\344\223\002?\022=/v1" + - "beta/{parent=projects/*/scanConfigs/*/sc" + - "anRuns/*}/findings\332A\rparent,filter\022\371\001\n\024L" + - "istFindingTypeStats\022C.google.cloud.webse" + - "curityscanner.v1beta.ListFindingTypeStat" + - "sRequest\032D.google.cloud.websecurityscann" + - "er.v1beta.ListFindingTypeStatsResponse\"V" + - "\202\323\344\223\002G\022E/v1beta/{parent=projects/*/scanC" + - "onfigs/*/scanRuns/*}/findingTypeStats\332A\006" + - "parent\032U\312A!websecurityscanner.googleapis" + - ".com\322A.https://www.googleapis.com/auth/c" + - "loud-platformB\237\002\n*com.google.cloud.webse" + - "curityscanner.v1betaB\027WebSecurityScanner" + - "ProtoP\001ZXgoogle.golang.org/genproto/goog" + - "leapis/cloud/websecurityscanner/v1beta;w" + - "ebsecurityscanner\252\002&Google.Cloud.WebSecu" + - "rityScanner.V1Beta\312\002&Google\\Cloud\\WebSec" + - "urityScanner\\V1beta\352\002)Google::Cloud::Web" + - "SecurityScanner::V1betab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.FindingProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.getDescriptor(), - com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor, - new java.lang.String[] { "Parent", "ScanConfig", }); - internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); - internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor, - new java.lang.String[] { "ScanConfig", "UpdateMask", }); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor, - new java.lang.String[] { "ScanConfigs", "NextPageToken", }); - internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor, - new java.lang.String[] { "ScanRuns", "NextPageToken", }); - internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor, - new java.lang.String[] { "CrawledUrls", "NextPageToken", }); - internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "PageToken", "PageSize", }); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor, - new java.lang.String[] { "Findings", "NextPageToken", }); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor, - new java.lang.String[] { "Parent", }); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor, - new java.lang.String[] { "FindingTypeStats", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.FindingProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.getDescriptor(); - com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java index 905cbc09..366a26a4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/crawled_url.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
  * Security Scanner Service crawls the web applications, following all links
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.CrawledUrl}
  */
-public final class CrawledUrl extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CrawledUrl extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.CrawledUrl)
     CrawledUrlOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CrawledUrl.newBuilder() to construct.
   private CrawledUrl(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CrawledUrl() {
     httpMethod_ = "";
     url_ = "";
@@ -29,16 +47,15 @@ private CrawledUrl() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CrawledUrl();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CrawledUrl(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,31 +74,34 @@ private CrawledUrl(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            httpMethod_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              httpMethod_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            url_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              url_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            body_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              body_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -89,35 +109,40 @@ private CrawledUrl(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.CrawledUrlProto
+        .internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.CrawledUrlProto
+        .internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.CrawledUrl.class, com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder.class);
+            com.google.cloud.websecurityscanner.v1.CrawledUrl.class,
+            com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder.class);
   }
 
   public static final int HTTP_METHOD_FIELD_NUMBER = 1;
   private volatile java.lang.Object httpMethod_;
   /**
+   *
+   *
    * 
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; + * * @return The httpMethod. */ @java.lang.Override @@ -126,30 +151,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** + * + * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; + * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString - getHttpMethodBytes() { + public com.google.protobuf.ByteString getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -160,11 +185,14 @@ public java.lang.String getHttpMethod() { public static final int URL_FIELD_NUMBER = 2; private volatile java.lang.Object url_; /** + * + * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; + * * @return The url. */ @java.lang.Override @@ -173,29 +201,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** + * + * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; + * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -206,11 +234,14 @@ public java.lang.String getUrl() { public static final int BODY_FIELD_NUMBER = 3; private volatile java.lang.Object body_; /** + * + * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; + * * @return The body. */ @java.lang.Override @@ -219,29 +250,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** + * + * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; + * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString - getBodyBytes() { + public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); body_ = b; return b; } else { @@ -250,6 +281,7 @@ public java.lang.String getBody() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +293,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpMethod_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpMethod_); } @@ -298,19 +329,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.CrawledUrl)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.CrawledUrl other = (com.google.cloud.websecurityscanner.v1.CrawledUrl) obj; + com.google.cloud.websecurityscanner.v1.CrawledUrl other = + (com.google.cloud.websecurityscanner.v1.CrawledUrl) obj; - if (!getHttpMethod() - .equals(other.getHttpMethod())) return false; - if (!getUrl() - .equals(other.getUrl())) return false; - if (!getBody() - .equals(other.getBody())) return false; + if (!getHttpMethod().equals(other.getHttpMethod())) return false; + if (!getUrl().equals(other.getUrl())) return false; + if (!getBody().equals(other.getBody())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,96 +363,103 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.CrawledUrl parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.CrawledUrl prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
    * Security Scanner Service crawls the web applications, following all links
@@ -432,21 +468,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.CrawledUrl}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.CrawledUrl)
       com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto
+          .internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto
+          .internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.CrawledUrl.class, com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder.class);
+              com.google.cloud.websecurityscanner.v1.CrawledUrl.class,
+              com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.CrawledUrl.newBuilder()
@@ -454,16 +492,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -477,9 +514,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.CrawledUrlProto
+          .internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
@@ -498,7 +535,8 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.CrawledUrl buildPartial() {
-      com.google.cloud.websecurityscanner.v1.CrawledUrl result = new com.google.cloud.websecurityscanner.v1.CrawledUrl(this);
+      com.google.cloud.websecurityscanner.v1.CrawledUrl result =
+          new com.google.cloud.websecurityscanner.v1.CrawledUrl(this);
       result.httpMethod_ = httpMethod_;
       result.url_ = url_;
       result.body_ = body_;
@@ -510,38 +548,39 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.CrawledUrl) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.CrawledUrl)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.CrawledUrl) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -549,7 +588,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.CrawledUrl other) {
-      if (other == com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance()) return this;
+      if (other == com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance())
+        return this;
       if (!other.getHttpMethod().isEmpty()) {
         httpMethod_ = other.httpMethod_;
         onChanged();
@@ -581,7 +621,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1.CrawledUrl) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1.CrawledUrl) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -593,19 +634,21 @@ public Builder mergeFrom(
 
     private java.lang.Object httpMethod_ = "";
     /**
+     *
+     *
      * 
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; + * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -614,21 +657,22 @@ public java.lang.String getHttpMethod() { } } /** + * + * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; + * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString - getHttpMethodBytes() { + public com.google.protobuf.ByteString getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -636,57 +680,64 @@ public java.lang.String getHttpMethod() { } } /** + * + * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; + * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod( - java.lang.String value) { + public Builder setHttpMethod(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; + * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** + * + * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; + * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes( - com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -694,18 +745,20 @@ public Builder setHttpMethodBytes( private java.lang.Object url_ = ""; /** + * + * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; + * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -714,20 +767,21 @@ public java.lang.String getUrl() { } } /** + * + * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; + * * @return The bytes for url. */ - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -735,54 +789,61 @@ public java.lang.String getUrl() { } } /** + * + * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; + * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl( - java.lang.String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; + * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** + * + * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; + * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; @@ -790,18 +851,20 @@ public Builder setUrlBytes( private java.lang.Object body_ = ""; /** + * + * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; + * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -810,20 +873,21 @@ public java.lang.String getBody() { } } /** + * + * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; + * * @return The bytes for body. */ - public com.google.protobuf.ByteString - getBodyBytes() { + public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); body_ = b; return b; } else { @@ -831,61 +895,68 @@ public java.lang.String getBody() { } } /** + * + * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; + * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody( - java.lang.String value) { + public Builder setBody(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; + * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** + * + * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; + * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes( - com.google.protobuf.ByteString value) { + public Builder setBodyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -895,12 +966,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.CrawledUrl) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.CrawledUrl) private static final com.google.cloud.websecurityscanner.v1.CrawledUrl DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.CrawledUrl(); } @@ -909,16 +980,16 @@ public static com.google.cloud.websecurityscanner.v1.CrawledUrl getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CrawledUrl parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CrawledUrl(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CrawledUrl parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CrawledUrl(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -933,6 +1004,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.CrawledUrl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java index 1ded75ef..b72ebfe7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java @@ -1,71 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/crawled_url.proto package com.google.cloud.websecurityscanner.v1; -public interface CrawledUrlOrBuilder extends +public interface CrawledUrlOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.CrawledUrl) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; + * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** + * + * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; + * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString - getHttpMethodBytes(); + com.google.protobuf.ByteString getHttpMethodBytes(); /** + * + * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; + * * @return The url. */ java.lang.String getUrl(); /** + * + * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; + * * @return The bytes for url. */ - com.google.protobuf.ByteString - getUrlBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** + * + * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; + * * @return The body. */ java.lang.String getBody(); /** + * + * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; + * * @return The bytes for body. */ - com.google.protobuf.ByteString - getBodyBytes(); + com.google.protobuf.ByteString getBodyBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java new file mode 100644 index 00000000..be61a411 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java @@ -0,0 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/crawled_url.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class CrawledUrlProto { + private CrawledUrlProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/websecurityscanner/v1/cra" + + "wled_url.proto\022\"google.cloud.websecurity" + + "scanner.v1\"<\n\nCrawledUrl\022\023\n\013http_method\030" + + "\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001(\tB\203\002\n&com" + + ".google.cloud.websecurityscanner.v1B\017Cra" + + "wledUrlProtoP\001ZTgoogle.golang.org/genpro" + + "to/googleapis/cloud/websecurityscanner/v" + + "1;websecurityscanner\252\002\"Google.Cloud.WebS" + + "ecurityScanner.V1\312\002\"Google\\Cloud\\WebSecu" + + "rityScanner\\V1\352\002%Google::Cloud::WebSecur" + + "ityScanner::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_CrawledUrl_descriptor, + new java.lang.String[] { + "HttpMethod", "Url", "Body", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java index 423a5f40..ee5a13c4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Request for the `CreateScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.CreateScanConfigRequest} */ -public final class CreateScanConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.CreateScanConfigRequest) CreateScanConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateScanConfigRequest.newBuilder() to construct. private CreateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateScanConfigRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,37 @@ private CreateScanConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); + parent_ = s; + break; } - scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.websecurityscanner.v1.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); + } + scanConfig_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +108,40 @@ private CreateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* * string parent = 1; + * * @return The parent. */ @java.lang.Override @@ -123,30 +150,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* * string parent = 1; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -157,11 +184,14 @@ public java.lang.String getParent() { public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1.ScanConfig scanConfig_; /** + * + * *
    * Required. The ScanConfig to be created.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; + * * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -169,18 +199,25 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** + * + * *
    * Required. The ScanConfig to be created.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; + * * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig() { - return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() + : scanConfig_; } /** + * + * *
    * Required. The ScanConfig to be created.
    * 
@@ -193,6 +230,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +242,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -225,8 +262,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (scanConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getScanConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,19 +272,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest other = + (com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasScanConfig() != other.hasScanConfig()) return false; if (hasScanConfig()) { - if (!getScanConfig() - .equals(other.getScanConfig())) return false; + if (!getScanConfig().equals(other.getScanConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,117 +308,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `CreateScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.CreateScanConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.CreateScanConfigRequest) com.google.cloud.websecurityscanner.v1.CreateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.newBuilder() @@ -391,16 +436,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,13 +460,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.getDefaultInstance(); } @@ -437,7 +482,8 @@ public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest(this); result.parent_ = parent_; if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; @@ -452,38 +498,39 @@ public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -491,7 +538,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -518,7 +567,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -530,19 +581,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* * string parent = 1; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -551,21 +604,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* * string parent = 1; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -573,57 +627,64 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* * string parent = 1; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* * string parent = 1; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* * string parent = 1; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -631,34 +692,47 @@ public Builder setParentBytes( private com.google.cloud.websecurityscanner.v1.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig, + com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> + scanConfigBuilder_; /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; + * * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; + * * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() + : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
@@ -679,6 +753,8 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig v return this; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
@@ -697,6 +773,8 @@ public Builder setScanConfig( return this; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
@@ -707,7 +785,9 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig if (scanConfigBuilder_ == null) { if (scanConfig_ != null) { scanConfig_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1.ScanConfig.newBuilder(scanConfig_) + .mergeFrom(value) + .buildPartial(); } else { scanConfig_ = value; } @@ -719,6 +799,8 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig return this; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
@@ -737,6 +819,8 @@ public Builder clearScanConfig() { return this; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
@@ -744,11 +828,13 @@ public Builder clearScanConfig() { * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigBuilder() { - + onChanged(); return getScanConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
@@ -759,11 +845,14 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO if (scanConfigBuilder_ != null) { return scanConfigBuilder_.getMessageOrBuilder(); } else { - return scanConfig_ == null ? - com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() + : scanConfig_; } } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
@@ -771,21 +860,24 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig, + com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> getScanConfigFieldBuilder() { if (scanConfigBuilder_ == null) { - scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>( - getScanConfig(), - getParentForChildren(), - isClean()); + scanConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig, + com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>( + getScanConfig(), getParentForChildren(), isClean()); scanConfig_ = null; } return scanConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,30 +887,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.CreateScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.CreateScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,9 +924,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java index ea34e72e..65bbadbe 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java @@ -1,53 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface CreateScanConfigRequestOrBuilder extends +public interface CreateScanConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.CreateScanConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* * string parent = 1; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* * string parent = 1; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The ScanConfig to be created.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; + * * @return Whether the scanConfig field is set. */ boolean hasScanConfig(); /** + * + * *
    * Required. The ScanConfig to be created.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; + * * @return The scanConfig. */ com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig(); /** + * + * *
    * Required. The ScanConfig to be created.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java index 5e0ac59b..8e4e92cc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Request for the `DeleteScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.DeleteScanConfigRequest} */ -public final class DeleteScanConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) DeleteScanConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteScanConfigRequest.newBuilder() to construct. private DeleteScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteScanConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ private DeleteScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -110,30 +133,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest other = (com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest other = + (com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +229,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `DeleteScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.DeleteScanConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.newBuilder() @@ -324,16 +357,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,13 +375,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.getDefaultInstance(); } @@ -364,7 +397,8 @@ public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest result = new com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +408,39 @@ public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +448,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +474,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +488,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +511,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +534,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +608,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +645,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java index ddf41703..06f88c17 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface DeleteScanConfigRequestOrBuilder extends +public interface DeleteScanConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.DeleteScanConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java index 4075757e..958b1bc5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * A Finding resource represents a vulnerability instance identified during a
  * ScanRun.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.Finding}
  */
-public final class Finding extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Finding extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.Finding)
     FindingOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Finding.newBuilder() to construct.
   private Finding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Finding() {
     name_ = "";
     findingType_ = "";
@@ -36,16 +54,15 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Finding();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Finding(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -64,157 +81,190 @@ private Finding(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            findingType_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            httpMethod_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            fuzzedUrl_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            body_ = s;
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            description_ = s;
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            reproductionUrl_ = s;
-            break;
-          }
-          case 66: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            frameUrl_ = s;
-            break;
-          }
-          case 74: {
-            java.lang.String s = input.readStringRequireUtf8();
+              findingType_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            finalUrl_ = s;
-            break;
-          }
-          case 82: {
-            java.lang.String s = input.readStringRequireUtf8();
+              httpMethod_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            trackingId_ = s;
-            break;
-          }
-          case 90: {
-            com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder subBuilder = null;
-            if (outdatedLibrary_ != null) {
-              subBuilder = outdatedLibrary_.toBuilder();
+              fuzzedUrl_ = s;
+              break;
             }
-            outdatedLibrary_ = input.readMessage(com.google.cloud.websecurityscanner.v1.OutdatedLibrary.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outdatedLibrary_);
-              outdatedLibrary_ = subBuilder.buildPartial();
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              body_ = s;
+              break;
             }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 98: {
-            com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder subBuilder = null;
-            if (violatingResource_ != null) {
-              subBuilder = violatingResource_.toBuilder();
+              description_ = s;
+              break;
             }
-            violatingResource_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ViolatingResource.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(violatingResource_);
-              violatingResource_ = subBuilder.buildPartial();
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              reproductionUrl_ = s;
+              break;
             }
+          case 66:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 106: {
-            com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder subBuilder = null;
-            if (vulnerableParameters_ != null) {
-              subBuilder = vulnerableParameters_.toBuilder();
+              frameUrl_ = s;
+              break;
             }
-            vulnerableParameters_ = input.readMessage(com.google.cloud.websecurityscanner.v1.VulnerableParameters.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(vulnerableParameters_);
-              vulnerableParameters_ = subBuilder.buildPartial();
+          case 74:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              finalUrl_ = s;
+              break;
             }
+          case 82:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 114: {
-            com.google.cloud.websecurityscanner.v1.Xss.Builder subBuilder = null;
-            if (xss_ != null) {
-              subBuilder = xss_.toBuilder();
+              trackingId_ = s;
+              break;
             }
-            xss_ = input.readMessage(com.google.cloud.websecurityscanner.v1.Xss.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(xss_);
-              xss_ = subBuilder.buildPartial();
+          case 90:
+            {
+              com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder subBuilder = null;
+              if (outdatedLibrary_ != null) {
+                subBuilder = outdatedLibrary_.toBuilder();
+              }
+              outdatedLibrary_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1.OutdatedLibrary.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outdatedLibrary_);
+                outdatedLibrary_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 122: {
-            com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder subBuilder = null;
-            if (vulnerableHeaders_ != null) {
-              subBuilder = vulnerableHeaders_.toBuilder();
+          case 98:
+            {
+              com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder subBuilder = null;
+              if (violatingResource_ != null) {
+                subBuilder = violatingResource_.toBuilder();
+              }
+              violatingResource_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1.ViolatingResource.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(violatingResource_);
+                violatingResource_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            vulnerableHeaders_ = input.readMessage(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(vulnerableHeaders_);
-              vulnerableHeaders_ = subBuilder.buildPartial();
+          case 106:
+            {
+              com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder subBuilder = null;
+              if (vulnerableParameters_ != null) {
+                subBuilder = vulnerableParameters_.toBuilder();
+              }
+              vulnerableParameters_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1.VulnerableParameters.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(vulnerableParameters_);
+                vulnerableParameters_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 130: {
-            com.google.cloud.websecurityscanner.v1.Form.Builder subBuilder = null;
-            if (form_ != null) {
-              subBuilder = form_.toBuilder();
+          case 114:
+            {
+              com.google.cloud.websecurityscanner.v1.Xss.Builder subBuilder = null;
+              if (xss_ != null) {
+                subBuilder = xss_.toBuilder();
+              }
+              xss_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1.Xss.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(xss_);
+                xss_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            form_ = input.readMessage(com.google.cloud.websecurityscanner.v1.Form.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(form_);
-              form_ = subBuilder.buildPartial();
+          case 122:
+            {
+              com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder subBuilder = null;
+              if (vulnerableHeaders_ != null) {
+                subBuilder = vulnerableHeaders_.toBuilder();
+              }
+              vulnerableHeaders_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1.VulnerableHeaders.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(vulnerableHeaders_);
+                vulnerableHeaders_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 130:
+            {
+              com.google.cloud.websecurityscanner.v1.Form.Builder subBuilder = null;
+              if (form_ != null) {
+                subBuilder = form_.toBuilder();
+              }
+              form_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1.Form.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(form_);
+                form_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 136:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 136: {
-            int rawValue = input.readEnum();
-
-            severity_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              severity_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -222,36 +272,41 @@ private Finding(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.FindingProto.internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.FindingProto
+        .internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.FindingProto.internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.FindingProto
+        .internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.Finding.class, com.google.cloud.websecurityscanner.v1.Finding.Builder.class);
+            com.google.cloud.websecurityscanner.v1.Finding.class,
+            com.google.cloud.websecurityscanner.v1.Finding.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The severity level of a vulnerability.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.Finding.Severity} */ - public enum Severity - implements com.google.protobuf.ProtocolMessageEnum { + public enum Severity implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * No severity specified. The default value.
      * 
@@ -260,6 +315,8 @@ public enum Severity */ SEVERITY_UNSPECIFIED(0), /** + * + * *
      * Critical severity.
      * 
@@ -268,6 +325,8 @@ public enum Severity */ CRITICAL(1), /** + * + * *
      * High severity.
      * 
@@ -276,6 +335,8 @@ public enum Severity */ HIGH(2), /** + * + * *
      * Medium severity.
      * 
@@ -284,6 +345,8 @@ public enum Severity */ MEDIUM(3), /** + * + * *
      * Low severity.
      * 
@@ -295,6 +358,8 @@ public enum Severity ; /** + * + * *
      * No severity specified. The default value.
      * 
@@ -303,6 +368,8 @@ public enum Severity */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Critical severity.
      * 
@@ -311,6 +378,8 @@ public enum Severity */ public static final int CRITICAL_VALUE = 1; /** + * + * *
      * High severity.
      * 
@@ -319,6 +388,8 @@ public enum Severity */ public static final int HIGH_VALUE = 2; /** + * + * *
      * Medium severity.
      * 
@@ -327,6 +398,8 @@ public enum Severity */ public static final int MEDIUM_VALUE = 3; /** + * + * *
      * Low severity.
      * 
@@ -335,7 +408,6 @@ public enum Severity */ public static final int LOW_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -360,51 +432,53 @@ public static Severity valueOf(int value) { */ public static Severity forNumber(int value) { switch (value) { - case 0: return SEVERITY_UNSPECIFIED; - case 1: return CRITICAL; - case 2: return HIGH; - case 3: return MEDIUM; - case 4: return LOW; - default: return null; + case 0: + return SEVERITY_UNSPECIFIED; + case 1: + return CRITICAL; + case 2: + return HIGH; + case 3: + return MEDIUM; + case 4: + return LOW; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Severity> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Severity findValueByNumber(int number) { - return Severity.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.Finding.getDescriptor().getEnumTypes().get(0); } private static final Severity[] VALUES = values(); - public static Severity valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -424,6 +498,8 @@ private Severity(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -431,6 +507,7 @@ private Severity(int value) {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -439,14 +516,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -454,16 +532,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -474,6 +551,8 @@ public java.lang.String getName() { public static final int FINDING_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object findingType_; /** + * + * *
    * Output only. The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -481,6 +560,7 @@ public java.lang.String getName() {
    * 
* * string finding_type = 2; + * * @return The findingType. */ @java.lang.Override @@ -489,14 +569,15 @@ public java.lang.String getFindingType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; } } /** + * + * *
    * Output only. The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -504,16 +585,15 @@ public java.lang.String getFindingType() {
    * 
* * string finding_type = 2; + * * @return The bytes for findingType. */ @java.lang.Override - public com.google.protobuf.ByteString - getFindingTypeBytes() { + public com.google.protobuf.ByteString getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); findingType_ = b; return b; } else { @@ -524,39 +604,57 @@ public java.lang.String getFindingType() { public static final int SEVERITY_FIELD_NUMBER = 17; private int severity_; /** + * + * *
    * Output only. The severity level of the reported vulnerability.
    * 
* - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
    * Output only. The severity level of the reported vulnerability.
    * 
* - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The severity. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.Finding.Severity getSeverity() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Finding.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.Finding.Severity result = com.google.cloud.websecurityscanner.v1.Finding.Severity.valueOf(severity_); - return result == null ? com.google.cloud.websecurityscanner.v1.Finding.Severity.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.Finding.Severity result = + com.google.cloud.websecurityscanner.v1.Finding.Severity.valueOf(severity_); + return result == null + ? com.google.cloud.websecurityscanner.v1.Finding.Severity.UNRECOGNIZED + : result; } public static final int HTTP_METHOD_FIELD_NUMBER = 3; private volatile java.lang.Object httpMethod_; /** + * + * *
    * Output only. The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; + * * @return The httpMethod. */ @java.lang.Override @@ -565,30 +663,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** + * + * *
    * Output only. The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; + * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString - getHttpMethodBytes() { + public com.google.protobuf.ByteString getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -599,12 +697,15 @@ public java.lang.String getHttpMethod() { public static final int FUZZED_URL_FIELD_NUMBER = 4; private volatile java.lang.Object fuzzedUrl_; /** + * + * *
    * Output only. The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; + * * @return The fuzzedUrl. */ @java.lang.Override @@ -613,30 +714,30 @@ public java.lang.String getFuzzedUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; } } /** + * + * *
    * Output only. The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; + * * @return The bytes for fuzzedUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getFuzzedUrlBytes() { + public com.google.protobuf.ByteString getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -647,11 +748,14 @@ public java.lang.String getFuzzedUrl() { public static final int BODY_FIELD_NUMBER = 5; private volatile java.lang.Object body_; /** + * + * *
    * Output only. The body of the request that triggered the vulnerability.
    * 
* * string body = 5; + * * @return The body. */ @java.lang.Override @@ -660,29 +764,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** + * + * *
    * Output only. The body of the request that triggered the vulnerability.
    * 
* * string body = 5; + * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString - getBodyBytes() { + public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); body_ = b; return b; } else { @@ -693,11 +797,14 @@ public java.lang.String getBody() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** + * + * *
    * Output only. The description of the vulnerability.
    * 
* * string description = 6; + * * @return The description. */ @java.lang.Override @@ -706,29 +813,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Output only. The description of the vulnerability.
    * 
* * string description = 6; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -739,12 +846,15 @@ public java.lang.String getDescription() { public static final int REPRODUCTION_URL_FIELD_NUMBER = 7; private volatile java.lang.Object reproductionUrl_; /** + * + * *
    * Output only. The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; + * * @return The reproductionUrl. */ @java.lang.Override @@ -753,30 +863,30 @@ public java.lang.String getReproductionUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; } } /** + * + * *
    * Output only. The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; + * * @return The bytes for reproductionUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getReproductionUrlBytes() { + public com.google.protobuf.ByteString getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -787,12 +897,15 @@ public java.lang.String getReproductionUrl() { public static final int FRAME_URL_FIELD_NUMBER = 8; private volatile java.lang.Object frameUrl_; /** + * + * *
    * Output only. If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; + * * @return The frameUrl. */ @java.lang.Override @@ -801,30 +914,30 @@ public java.lang.String getFrameUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; } } /** + * + * *
    * Output only. If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; + * * @return The bytes for frameUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getFrameUrlBytes() { + public com.google.protobuf.ByteString getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -835,11 +948,14 @@ public java.lang.String getFrameUrl() { public static final int FINAL_URL_FIELD_NUMBER = 9; private volatile java.lang.Object finalUrl_; /** + * + * *
    * Output only. The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; + * * @return The finalUrl. */ @java.lang.Override @@ -848,29 +964,29 @@ public java.lang.String getFinalUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; } } /** + * + * *
    * Output only. The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; + * * @return The bytes for finalUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getFinalUrlBytes() { + public com.google.protobuf.ByteString getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -881,12 +997,15 @@ public java.lang.String getFinalUrl() { public static final int TRACKING_ID_FIELD_NUMBER = 10; private volatile java.lang.Object trackingId_; /** + * + * *
    * Output only. The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; + * * @return The trackingId. */ @java.lang.Override @@ -895,30 +1014,30 @@ public java.lang.String getTrackingId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; } } /** + * + * *
    * Output only. The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; + * * @return The bytes for trackingId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTrackingIdBytes() { + public com.google.protobuf.ByteString getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); trackingId_ = b; return b; } else { @@ -929,12 +1048,15 @@ public java.lang.String getTrackingId() { public static final int FORM_FIELD_NUMBER = 16; private com.google.cloud.websecurityscanner.v1.Form form_; /** + * + * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; + * * @return Whether the form field is set. */ @java.lang.Override @@ -942,12 +1064,15 @@ public boolean hasForm() { return form_ != null; } /** + * + * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; + * * @return The form. */ @java.lang.Override @@ -955,6 +1080,8 @@ public com.google.cloud.websecurityscanner.v1.Form getForm() { return form_ == null ? com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance() : form_; } /** + * + * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
@@ -970,11 +1097,14 @@ public com.google.cloud.websecurityscanner.v1.FormOrBuilder getFormOrBuilder() {
   public static final int OUTDATED_LIBRARY_FIELD_NUMBER = 11;
   private com.google.cloud.websecurityscanner.v1.OutdatedLibrary outdatedLibrary_;
   /**
+   *
+   *
    * 
    * Output only. An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; + * * @return Whether the outdatedLibrary field is set. */ @java.lang.Override @@ -982,18 +1112,25 @@ public boolean hasOutdatedLibrary() { return outdatedLibrary_ != null; } /** + * + * *
    * Output only. An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; + * * @return The outdatedLibrary. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.OutdatedLibrary getOutdatedLibrary() { - return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; + return outdatedLibrary_ == null + ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() + : outdatedLibrary_; } /** + * + * *
    * Output only. An addon containing information about outdated libraries.
    * 
@@ -1001,19 +1138,23 @@ public com.google.cloud.websecurityscanner.v1.OutdatedLibrary getOutdatedLibrary * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder + getOutdatedLibraryOrBuilder() { return getOutdatedLibrary(); } public static final int VIOLATING_RESOURCE_FIELD_NUMBER = 12; private com.google.cloud.websecurityscanner.v1.ViolatingResource violatingResource_; /** + * + * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; + * * @return Whether the violatingResource field is set. */ @java.lang.Override @@ -1021,19 +1162,26 @@ public boolean hasViolatingResource() { return violatingResource_ != null; } /** + * + * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; + * * @return The violatingResource. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ViolatingResource getViolatingResource() { - return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance() : violatingResource_; + return violatingResource_ == null + ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance() + : violatingResource_; } /** + * + * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -1042,18 +1190,22 @@ public com.google.cloud.websecurityscanner.v1.ViolatingResource getViolatingReso
    * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder
+      getViolatingResourceOrBuilder() {
     return getViolatingResource();
   }
 
   public static final int VULNERABLE_HEADERS_FIELD_NUMBER = 15;
   private com.google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerableHeaders_;
   /**
+   *
+   *
    * 
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; + * * @return Whether the vulnerableHeaders field is set. */ @java.lang.Override @@ -1061,18 +1213,25 @@ public boolean hasVulnerableHeaders() { return vulnerableHeaders_ != null; } /** + * + * *
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; + * * @return The vulnerableHeaders. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.VulnerableHeaders getVulnerableHeaders() { - return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; + return vulnerableHeaders_ == null + ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() + : vulnerableHeaders_; } /** + * + * *
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
@@ -1080,19 +1239,24 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders getVulnerableHea * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder + getVulnerableHeadersOrBuilder() { return getVulnerableHeaders(); } public static final int VULNERABLE_PARAMETERS_FIELD_NUMBER = 13; private com.google.cloud.websecurityscanner.v1.VulnerableParameters vulnerableParameters_; /** + * + * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * + * * @return Whether the vulnerableParameters field is set. */ @java.lang.Override @@ -1100,39 +1264,52 @@ public boolean hasVulnerableParameters() { return vulnerableParameters_ != null; } /** + * + * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * + * * @return The vulnerableParameters. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.VulnerableParameters getVulnerableParameters() { - return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; + return vulnerableParameters_ == null + ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() + : vulnerableParameters_; } /** + * + * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder + getVulnerableParametersOrBuilder() { return getVulnerableParameters(); } public static final int XSS_FIELD_NUMBER = 14; private com.google.cloud.websecurityscanner.v1.Xss xss_; /** + * + * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; + * * @return Whether the xss field is set. */ @java.lang.Override @@ -1140,11 +1317,14 @@ public boolean hasXss() { return xss_ != null; } /** + * + * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; + * * @return The xss. */ @java.lang.Override @@ -1152,6 +1332,8 @@ public com.google.cloud.websecurityscanner.v1.Xss getXss() { return xss_ == null ? com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance() : xss_; } /** + * + * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
@@ -1164,6 +1346,7 @@ public com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1175,8 +1358,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1225,7 +1407,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (form_ != null) { output.writeMessage(16, getForm()); } - if (severity_ != com.google.cloud.websecurityscanner.v1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + if (severity_ + != com.google.cloud.websecurityscanner.v1.Finding.Severity.SEVERITY_UNSPECIFIED + .getNumber()) { output.writeEnum(17, severity_); } unknownFields.writeTo(output); @@ -1268,32 +1452,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, trackingId_); } if (outdatedLibrary_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getOutdatedLibrary()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getOutdatedLibrary()); } if (violatingResource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getViolatingResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getViolatingResource()); } if (vulnerableParameters_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getVulnerableParameters()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(13, getVulnerableParameters()); } if (xss_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getXss()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getXss()); } if (vulnerableHeaders_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getVulnerableHeaders()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getVulnerableHeaders()); } if (form_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getForm()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getForm()); } - if (severity_ != com.google.cloud.websecurityscanner.v1.Finding.Severity.SEVERITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(17, severity_); + if (severity_ + != com.google.cloud.websecurityscanner.v1.Finding.Severity.SEVERITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, severity_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1303,63 +1483,48 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.Finding)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.Finding other = (com.google.cloud.websecurityscanner.v1.Finding) obj; + com.google.cloud.websecurityscanner.v1.Finding other = + (com.google.cloud.websecurityscanner.v1.Finding) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getFindingType() - .equals(other.getFindingType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getFindingType().equals(other.getFindingType())) return false; if (severity_ != other.severity_) return false; - if (!getHttpMethod() - .equals(other.getHttpMethod())) return false; - if (!getFuzzedUrl() - .equals(other.getFuzzedUrl())) return false; - if (!getBody() - .equals(other.getBody())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getReproductionUrl() - .equals(other.getReproductionUrl())) return false; - if (!getFrameUrl() - .equals(other.getFrameUrl())) return false; - if (!getFinalUrl() - .equals(other.getFinalUrl())) return false; - if (!getTrackingId() - .equals(other.getTrackingId())) return false; + if (!getHttpMethod().equals(other.getHttpMethod())) return false; + if (!getFuzzedUrl().equals(other.getFuzzedUrl())) return false; + if (!getBody().equals(other.getBody())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getReproductionUrl().equals(other.getReproductionUrl())) return false; + if (!getFrameUrl().equals(other.getFrameUrl())) return false; + if (!getFinalUrl().equals(other.getFinalUrl())) return false; + if (!getTrackingId().equals(other.getTrackingId())) return false; if (hasForm() != other.hasForm()) return false; if (hasForm()) { - if (!getForm() - .equals(other.getForm())) return false; + if (!getForm().equals(other.getForm())) return false; } if (hasOutdatedLibrary() != other.hasOutdatedLibrary()) return false; if (hasOutdatedLibrary()) { - if (!getOutdatedLibrary() - .equals(other.getOutdatedLibrary())) return false; + if (!getOutdatedLibrary().equals(other.getOutdatedLibrary())) return false; } if (hasViolatingResource() != other.hasViolatingResource()) return false; if (hasViolatingResource()) { - if (!getViolatingResource() - .equals(other.getViolatingResource())) return false; + if (!getViolatingResource().equals(other.getViolatingResource())) return false; } if (hasVulnerableHeaders() != other.hasVulnerableHeaders()) return false; if (hasVulnerableHeaders()) { - if (!getVulnerableHeaders() - .equals(other.getVulnerableHeaders())) return false; + if (!getVulnerableHeaders().equals(other.getVulnerableHeaders())) return false; } if (hasVulnerableParameters() != other.hasVulnerableParameters()) return false; if (hasVulnerableParameters()) { - if (!getVulnerableParameters() - .equals(other.getVulnerableParameters())) return false; + if (!getVulnerableParameters().equals(other.getVulnerableParameters())) return false; } if (hasXss() != other.hasXss()) return false; if (hasXss()) { - if (!getXss() - .equals(other.getXss())) return false; + if (!getXss().equals(other.getXss())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1423,97 +1588,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1.Finding parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.Finding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.Finding parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Finding parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.Finding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.Finding parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.Finding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.Finding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A Finding resource represents a vulnerability instance identified during a
    * ScanRun.
@@ -1521,21 +1693,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.Finding}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.Finding)
       com.google.cloud.websecurityscanner.v1.FindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.FindingProto.internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.FindingProto
+          .internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.FindingProto.internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.FindingProto
+          .internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.Finding.class, com.google.cloud.websecurityscanner.v1.Finding.Builder.class);
+              com.google.cloud.websecurityscanner.v1.Finding.class,
+              com.google.cloud.websecurityscanner.v1.Finding.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.Finding.newBuilder()
@@ -1543,16 +1717,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1618,9 +1791,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.FindingProto.internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.FindingProto
+          .internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor;
     }
 
     @java.lang.Override
@@ -1639,7 +1812,8 @@ public com.google.cloud.websecurityscanner.v1.Finding build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.Finding buildPartial() {
-      com.google.cloud.websecurityscanner.v1.Finding result = new com.google.cloud.websecurityscanner.v1.Finding(this);
+      com.google.cloud.websecurityscanner.v1.Finding result =
+          new com.google.cloud.websecurityscanner.v1.Finding(this);
       result.name_ = name_;
       result.findingType_ = findingType_;
       result.severity_ = severity_;
@@ -1689,38 +1863,39 @@ public com.google.cloud.websecurityscanner.v1.Finding buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.Finding) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.Finding)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.Finding) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1821,6 +1996,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1828,13 +2005,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1843,6 +2020,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1850,15 +2029,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1866,6 +2044,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1873,20 +2053,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1894,15 +2076,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1910,16 +2095,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1927,6 +2112,8 @@ public Builder setNameBytes( private java.lang.Object findingType_ = ""; /** + * + * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1934,13 +2121,13 @@ public Builder setNameBytes(
      * 
* * string finding_type = 2; + * * @return The findingType. */ public java.lang.String getFindingType() { java.lang.Object ref = findingType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; @@ -1949,6 +2136,8 @@ public java.lang.String getFindingType() { } } /** + * + * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1956,15 +2145,14 @@ public java.lang.String getFindingType() {
      * 
* * string finding_type = 2; + * * @return The bytes for findingType. */ - public com.google.protobuf.ByteString - getFindingTypeBytes() { + public com.google.protobuf.ByteString getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); findingType_ = b; return b; } else { @@ -1972,6 +2160,8 @@ public java.lang.String getFindingType() { } } /** + * + * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1979,20 +2169,22 @@ public java.lang.String getFindingType() {
      * 
* * string finding_type = 2; + * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType( - java.lang.String value) { + public Builder setFindingType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingType_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -2000,15 +2192,18 @@ public Builder setFindingType(
      * 
* * string finding_type = 2; + * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = getDefaultInstance().getFindingType(); onChanged(); return this; } /** + * + * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -2016,16 +2211,16 @@ public Builder clearFindingType() {
      * 
* * string finding_type = 2; + * * @param value The bytes for findingType to set. * @return This builder for chaining. */ - public Builder setFindingTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingType_ = value; onChanged(); return this; @@ -2033,51 +2228,75 @@ public Builder setFindingTypeBytes( private int severity_ = 0; /** + * + * *
      * Output only. The severity level of the reported vulnerability.
      * 
* - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
      * Output only. The severity level of the reported vulnerability.
      * 
* - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ public Builder setSeverityValue(int value) { - + severity_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The severity level of the reported vulnerability.
      * 
* - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The severity. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.Finding.Severity getSeverity() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.Finding.Severity result = com.google.cloud.websecurityscanner.v1.Finding.Severity.valueOf(severity_); - return result == null ? com.google.cloud.websecurityscanner.v1.Finding.Severity.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.Finding.Severity result = + com.google.cloud.websecurityscanner.v1.Finding.Severity.valueOf(severity_); + return result == null + ? com.google.cloud.websecurityscanner.v1.Finding.Severity.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The severity level of the reported vulnerability.
      * 
* - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The severity to set. * @return This builder for chaining. */ @@ -2085,21 +2304,26 @@ public Builder setSeverity(com.google.cloud.websecurityscanner.v1.Finding.Severi if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The severity level of the reported vulnerability.
      * 
* - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearSeverity() { - + severity_ = 0; onChanged(); return this; @@ -2107,19 +2331,21 @@ public Builder clearSeverity() { private java.lang.Object httpMethod_ = ""; /** + * + * *
      * Output only. The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; + * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -2128,21 +2354,22 @@ public java.lang.String getHttpMethod() { } } /** + * + * *
      * Output only. The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; + * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString - getHttpMethodBytes() { + public com.google.protobuf.ByteString getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -2150,57 +2377,64 @@ public java.lang.String getHttpMethod() { } } /** + * + * *
      * Output only. The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; + * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod( - java.lang.String value) { + public Builder setHttpMethod(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; + * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** + * + * *
      * Output only. The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; + * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes( - com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -2208,19 +2442,21 @@ public Builder setHttpMethodBytes( private java.lang.Object fuzzedUrl_ = ""; /** + * + * *
      * Output only. The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; + * * @return The fuzzedUrl. */ public java.lang.String getFuzzedUrl() { java.lang.Object ref = fuzzedUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; @@ -2229,21 +2465,22 @@ public java.lang.String getFuzzedUrl() { } } /** + * + * *
      * Output only. The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; + * * @return The bytes for fuzzedUrl. */ - public com.google.protobuf.ByteString - getFuzzedUrlBytes() { + public com.google.protobuf.ByteString getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -2251,57 +2488,64 @@ public java.lang.String getFuzzedUrl() { } } /** + * + * *
      * Output only. The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; + * * @param value The fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrl( - java.lang.String value) { + public Builder setFuzzedUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fuzzedUrl_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; + * * @return This builder for chaining. */ public Builder clearFuzzedUrl() { - + fuzzedUrl_ = getDefaultInstance().getFuzzedUrl(); onChanged(); return this; } /** + * + * *
      * Output only. The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; + * * @param value The bytes for fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fuzzedUrl_ = value; onChanged(); return this; @@ -2309,18 +2553,20 @@ public Builder setFuzzedUrlBytes( private java.lang.Object body_ = ""; /** + * + * *
      * Output only. The body of the request that triggered the vulnerability.
      * 
* * string body = 5; + * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -2329,20 +2575,21 @@ public java.lang.String getBody() { } } /** + * + * *
      * Output only. The body of the request that triggered the vulnerability.
      * 
* * string body = 5; + * * @return The bytes for body. */ - public com.google.protobuf.ByteString - getBodyBytes() { + public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); body_ = b; return b; } else { @@ -2350,54 +2597,61 @@ public java.lang.String getBody() { } } /** + * + * *
      * Output only. The body of the request that triggered the vulnerability.
      * 
* * string body = 5; + * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody( - java.lang.String value) { + public Builder setBody(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The body of the request that triggered the vulnerability.
      * 
* * string body = 5; + * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** + * + * *
      * Output only. The body of the request that triggered the vulnerability.
      * 
* * string body = 5; + * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes( - com.google.protobuf.ByteString value) { + public Builder setBodyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; @@ -2405,18 +2659,20 @@ public Builder setBodyBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Output only. The description of the vulnerability.
      * 
* * string description = 6; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2425,20 +2681,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. The description of the vulnerability.
      * 
* * string description = 6; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -2446,54 +2703,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. The description of the vulnerability.
      * 
* * string description = 6; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The description of the vulnerability.
      * 
* * string description = 6; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Output only. The description of the vulnerability.
      * 
* * string description = 6; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2501,19 +2765,21 @@ public Builder setDescriptionBytes( private java.lang.Object reproductionUrl_ = ""; /** + * + * *
      * Output only. The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; + * * @return The reproductionUrl. */ public java.lang.String getReproductionUrl() { java.lang.Object ref = reproductionUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; @@ -2522,21 +2788,22 @@ public java.lang.String getReproductionUrl() { } } /** + * + * *
      * Output only. The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; + * * @return The bytes for reproductionUrl. */ - public com.google.protobuf.ByteString - getReproductionUrlBytes() { + public com.google.protobuf.ByteString getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -2544,57 +2811,64 @@ public java.lang.String getReproductionUrl() { } } /** + * + * *
      * Output only. The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; + * * @param value The reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrl( - java.lang.String value) { + public Builder setReproductionUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reproductionUrl_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; + * * @return This builder for chaining. */ public Builder clearReproductionUrl() { - + reproductionUrl_ = getDefaultInstance().getReproductionUrl(); onChanged(); return this; } /** + * + * *
      * Output only. The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; + * * @param value The bytes for reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reproductionUrl_ = value; onChanged(); return this; @@ -2602,19 +2876,21 @@ public Builder setReproductionUrlBytes( private java.lang.Object frameUrl_ = ""; /** + * + * *
      * Output only. If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; + * * @return The frameUrl. */ public java.lang.String getFrameUrl() { java.lang.Object ref = frameUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; @@ -2623,21 +2899,22 @@ public java.lang.String getFrameUrl() { } } /** + * + * *
      * Output only. If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; + * * @return The bytes for frameUrl. */ - public com.google.protobuf.ByteString - getFrameUrlBytes() { + public com.google.protobuf.ByteString getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -2645,57 +2922,64 @@ public java.lang.String getFrameUrl() { } } /** + * + * *
      * Output only. If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; + * * @param value The frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrl( - java.lang.String value) { + public Builder setFrameUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + frameUrl_ = value; onChanged(); return this; } /** + * + * *
      * Output only. If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; + * * @return This builder for chaining. */ public Builder clearFrameUrl() { - + frameUrl_ = getDefaultInstance().getFrameUrl(); onChanged(); return this; } /** + * + * *
      * Output only. If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; + * * @param value The bytes for frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + frameUrl_ = value; onChanged(); return this; @@ -2703,18 +2987,20 @@ public Builder setFrameUrlBytes( private java.lang.Object finalUrl_ = ""; /** + * + * *
      * Output only. The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; + * * @return The finalUrl. */ public java.lang.String getFinalUrl() { java.lang.Object ref = finalUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; @@ -2723,20 +3009,21 @@ public java.lang.String getFinalUrl() { } } /** + * + * *
      * Output only. The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; + * * @return The bytes for finalUrl. */ - public com.google.protobuf.ByteString - getFinalUrlBytes() { + public com.google.protobuf.ByteString getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -2744,54 +3031,61 @@ public java.lang.String getFinalUrl() { } } /** + * + * *
      * Output only. The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; + * * @param value The finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrl( - java.lang.String value) { + public Builder setFinalUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + finalUrl_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; + * * @return This builder for chaining. */ public Builder clearFinalUrl() { - + finalUrl_ = getDefaultInstance().getFinalUrl(); onChanged(); return this; } /** + * + * *
      * Output only. The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; + * * @param value The bytes for finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + finalUrl_ = value; onChanged(); return this; @@ -2799,19 +3093,21 @@ public Builder setFinalUrlBytes( private java.lang.Object trackingId_ = ""; /** + * + * *
      * Output only. The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; + * * @return The trackingId. */ public java.lang.String getTrackingId() { java.lang.Object ref = trackingId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; @@ -2820,21 +3116,22 @@ public java.lang.String getTrackingId() { } } /** + * + * *
      * Output only. The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; + * * @return The bytes for trackingId. */ - public com.google.protobuf.ByteString - getTrackingIdBytes() { + public com.google.protobuf.ByteString getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); trackingId_ = b; return b; } else { @@ -2842,57 +3139,64 @@ public java.lang.String getTrackingId() { } } /** + * + * *
      * Output only. The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; + * * @param value The trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingId( - java.lang.String value) { + public Builder setTrackingId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trackingId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; + * * @return This builder for chaining. */ public Builder clearTrackingId() { - + trackingId_ = getDefaultInstance().getTrackingId(); onChanged(); return this; } /** + * + * *
      * Output only. The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; + * * @param value The bytes for trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingIdBytes( - com.google.protobuf.ByteString value) { + public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trackingId_ = value; onChanged(); return this; @@ -2900,36 +3204,49 @@ public Builder setTrackingIdBytes( private com.google.cloud.websecurityscanner.v1.Form form_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Form, com.google.cloud.websecurityscanner.v1.Form.Builder, com.google.cloud.websecurityscanner.v1.FormOrBuilder> formBuilder_; + com.google.cloud.websecurityscanner.v1.Form, + com.google.cloud.websecurityscanner.v1.Form.Builder, + com.google.cloud.websecurityscanner.v1.FormOrBuilder> + formBuilder_; /** + * + * *
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; + * * @return Whether the form field is set. */ public boolean hasForm() { return formBuilder_ != null || form_ != null; } /** + * + * *
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; + * * @return The form. */ public com.google.cloud.websecurityscanner.v1.Form getForm() { if (formBuilder_ == null) { - return form_ == null ? com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance() : form_; + return form_ == null + ? com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance() + : form_; } else { return formBuilder_.getMessage(); } } /** + * + * *
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2951,6 +3268,8 @@ public Builder setForm(com.google.cloud.websecurityscanner.v1.Form value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2958,8 +3277,7 @@ public Builder setForm(com.google.cloud.websecurityscanner.v1.Form value) {
      *
      * .google.cloud.websecurityscanner.v1.Form form = 16;
      */
-    public Builder setForm(
-        com.google.cloud.websecurityscanner.v1.Form.Builder builderForValue) {
+    public Builder setForm(com.google.cloud.websecurityscanner.v1.Form.Builder builderForValue) {
       if (formBuilder_ == null) {
         form_ = builderForValue.build();
         onChanged();
@@ -2970,6 +3288,8 @@ public Builder setForm(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2981,7 +3301,9 @@ public Builder mergeForm(com.google.cloud.websecurityscanner.v1.Form value) {
       if (formBuilder_ == null) {
         if (form_ != null) {
           form_ =
-            com.google.cloud.websecurityscanner.v1.Form.newBuilder(form_).mergeFrom(value).buildPartial();
+              com.google.cloud.websecurityscanner.v1.Form.newBuilder(form_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           form_ = value;
         }
@@ -2993,6 +3315,8 @@ public Builder mergeForm(com.google.cloud.websecurityscanner.v1.Form value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3012,6 +3336,8 @@ public Builder clearForm() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3020,11 +3346,13 @@ public Builder clearForm() {
      * .google.cloud.websecurityscanner.v1.Form form = 16;
      */
     public com.google.cloud.websecurityscanner.v1.Form.Builder getFormBuilder() {
-      
+
       onChanged();
       return getFormFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3036,11 +3364,14 @@ public com.google.cloud.websecurityscanner.v1.FormOrBuilder getFormOrBuilder() {
       if (formBuilder_ != null) {
         return formBuilder_.getMessageOrBuilder();
       } else {
-        return form_ == null ?
-            com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance() : form_;
+        return form_ == null
+            ? com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance()
+            : form_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3049,14 +3380,17 @@ public com.google.cloud.websecurityscanner.v1.FormOrBuilder getFormOrBuilder() {
      * .google.cloud.websecurityscanner.v1.Form form = 16;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.websecurityscanner.v1.Form, com.google.cloud.websecurityscanner.v1.Form.Builder, com.google.cloud.websecurityscanner.v1.FormOrBuilder> 
+            com.google.cloud.websecurityscanner.v1.Form,
+            com.google.cloud.websecurityscanner.v1.Form.Builder,
+            com.google.cloud.websecurityscanner.v1.FormOrBuilder>
         getFormFieldBuilder() {
       if (formBuilder_ == null) {
-        formBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.Form, com.google.cloud.websecurityscanner.v1.Form.Builder, com.google.cloud.websecurityscanner.v1.FormOrBuilder>(
-                getForm(),
-                getParentForChildren(),
-                isClean());
+        formBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.websecurityscanner.v1.Form,
+                com.google.cloud.websecurityscanner.v1.Form.Builder,
+                com.google.cloud.websecurityscanner.v1.FormOrBuilder>(
+                getForm(), getParentForChildren(), isClean());
         form_ = null;
       }
       return formBuilder_;
@@ -3064,41 +3398,55 @@ public com.google.cloud.websecurityscanner.v1.FormOrBuilder getFormOrBuilder() {
 
     private com.google.cloud.websecurityscanner.v1.OutdatedLibrary outdatedLibrary_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.websecurityscanner.v1.OutdatedLibrary, com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder> outdatedLibraryBuilder_;
+            com.google.cloud.websecurityscanner.v1.OutdatedLibrary,
+            com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder,
+            com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder>
+        outdatedLibraryBuilder_;
     /**
+     *
+     *
      * 
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; + * * @return Whether the outdatedLibrary field is set. */ public boolean hasOutdatedLibrary() { return outdatedLibraryBuilder_ != null || outdatedLibrary_ != null; } /** + * + * *
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; + * * @return The outdatedLibrary. */ public com.google.cloud.websecurityscanner.v1.OutdatedLibrary getOutdatedLibrary() { if (outdatedLibraryBuilder_ == null) { - return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; + return outdatedLibrary_ == null + ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() + : outdatedLibrary_; } else { return outdatedLibraryBuilder_.getMessage(); } } /** + * + * *
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ - public Builder setOutdatedLibrary(com.google.cloud.websecurityscanner.v1.OutdatedLibrary value) { + public Builder setOutdatedLibrary( + com.google.cloud.websecurityscanner.v1.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3112,6 +3460,8 @@ public Builder setOutdatedLibrary(com.google.cloud.websecurityscanner.v1.Outdate return this; } /** + * + * *
      * Output only. An addon containing information about outdated libraries.
      * 
@@ -3130,17 +3480,22 @@ public Builder setOutdatedLibrary( return this; } /** + * + * *
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ - public Builder mergeOutdatedLibrary(com.google.cloud.websecurityscanner.v1.OutdatedLibrary value) { + public Builder mergeOutdatedLibrary( + com.google.cloud.websecurityscanner.v1.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (outdatedLibrary_ != null) { outdatedLibrary_ = - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.newBuilder(outdatedLibrary_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1.OutdatedLibrary.newBuilder(outdatedLibrary_) + .mergeFrom(value) + .buildPartial(); } else { outdatedLibrary_ = value; } @@ -3152,6 +3507,8 @@ public Builder mergeOutdatedLibrary(com.google.cloud.websecurityscanner.v1.Outda return this; } /** + * + * *
      * Output only. An addon containing information about outdated libraries.
      * 
@@ -3170,33 +3527,42 @@ public Builder clearOutdatedLibrary() { return this; } /** + * + * *
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder getOutdatedLibraryBuilder() { - + public com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder + getOutdatedLibraryBuilder() { + onChanged(); return getOutdatedLibraryFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder + getOutdatedLibraryOrBuilder() { if (outdatedLibraryBuilder_ != null) { return outdatedLibraryBuilder_.getMessageOrBuilder(); } else { - return outdatedLibrary_ == null ? - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; + return outdatedLibrary_ == null + ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() + : outdatedLibrary_; } } /** + * + * *
      * Output only. An addon containing information about outdated libraries.
      * 
@@ -3204,14 +3570,17 @@ public com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder getOutdat * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.OutdatedLibrary, com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder> + com.google.cloud.websecurityscanner.v1.OutdatedLibrary, + com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder, + com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder> getOutdatedLibraryFieldBuilder() { if (outdatedLibraryBuilder_ == null) { - outdatedLibraryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.OutdatedLibrary, com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder>( - getOutdatedLibrary(), - getParentForChildren(), - isClean()); + outdatedLibraryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.OutdatedLibrary, + com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder, + com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder>( + getOutdatedLibrary(), getParentForChildren(), isClean()); outdatedLibrary_ = null; } return outdatedLibraryBuilder_; @@ -3219,36 +3588,49 @@ public com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder getOutdat private com.google.cloud.websecurityscanner.v1.ViolatingResource violatingResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ViolatingResource, com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder> violatingResourceBuilder_; + com.google.cloud.websecurityscanner.v1.ViolatingResource, + com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder, + com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder> + violatingResourceBuilder_; /** + * + * *
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; + * * @return Whether the violatingResource field is set. */ public boolean hasViolatingResource() { return violatingResourceBuilder_ != null || violatingResource_ != null; } /** + * + * *
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; + * * @return The violatingResource. */ public com.google.cloud.websecurityscanner.v1.ViolatingResource getViolatingResource() { if (violatingResourceBuilder_ == null) { - return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance() : violatingResource_; + return violatingResource_ == null + ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance() + : violatingResource_; } else { return violatingResourceBuilder_.getMessage(); } } /** + * + * *
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3256,7 +3638,8 @@ public com.google.cloud.websecurityscanner.v1.ViolatingResource getViolatingReso
      *
      * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
      */
-    public Builder setViolatingResource(com.google.cloud.websecurityscanner.v1.ViolatingResource value) {
+    public Builder setViolatingResource(
+        com.google.cloud.websecurityscanner.v1.ViolatingResource value) {
       if (violatingResourceBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3270,6 +3653,8 @@ public Builder setViolatingResource(com.google.cloud.websecurityscanner.v1.Viola
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3289,6 +3674,8 @@ public Builder setViolatingResource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3296,11 +3683,15 @@ public Builder setViolatingResource(
      *
      * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
      */
-    public Builder mergeViolatingResource(com.google.cloud.websecurityscanner.v1.ViolatingResource value) {
+    public Builder mergeViolatingResource(
+        com.google.cloud.websecurityscanner.v1.ViolatingResource value) {
       if (violatingResourceBuilder_ == null) {
         if (violatingResource_ != null) {
           violatingResource_ =
-            com.google.cloud.websecurityscanner.v1.ViolatingResource.newBuilder(violatingResource_).mergeFrom(value).buildPartial();
+              com.google.cloud.websecurityscanner.v1.ViolatingResource.newBuilder(
+                      violatingResource_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           violatingResource_ = value;
         }
@@ -3312,6 +3703,8 @@ public Builder mergeViolatingResource(com.google.cloud.websecurityscanner.v1.Vio
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3331,6 +3724,8 @@ public Builder clearViolatingResource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3338,12 +3733,15 @@ public Builder clearViolatingResource() {
      *
      * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
      */
-    public com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder getViolatingResourceBuilder() {
-      
+    public com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder
+        getViolatingResourceBuilder() {
+
       onChanged();
       return getViolatingResourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3351,15 +3749,19 @@ public com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder getViola
      *
      * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
      */
-    public com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() {
+    public com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder
+        getViolatingResourceOrBuilder() {
       if (violatingResourceBuilder_ != null) {
         return violatingResourceBuilder_.getMessageOrBuilder();
       } else {
-        return violatingResource_ == null ?
-            com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance() : violatingResource_;
+        return violatingResource_ == null
+            ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance()
+            : violatingResource_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -3368,14 +3770,17 @@ public com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder getViol
      * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.websecurityscanner.v1.ViolatingResource, com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder> 
+            com.google.cloud.websecurityscanner.v1.ViolatingResource,
+            com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder,
+            com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder>
         getViolatingResourceFieldBuilder() {
       if (violatingResourceBuilder_ == null) {
-        violatingResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.ViolatingResource, com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder>(
-                getViolatingResource(),
-                getParentForChildren(),
-                isClean());
+        violatingResourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.websecurityscanner.v1.ViolatingResource,
+                com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder,
+                com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder>(
+                getViolatingResource(), getParentForChildren(), isClean());
         violatingResource_ = null;
       }
       return violatingResourceBuilder_;
@@ -3383,41 +3788,55 @@ public com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder getViol
 
     private com.google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerableHeaders_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.websecurityscanner.v1.VulnerableHeaders, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder> vulnerableHeadersBuilder_;
+            com.google.cloud.websecurityscanner.v1.VulnerableHeaders,
+            com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder,
+            com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder>
+        vulnerableHeadersBuilder_;
     /**
+     *
+     *
      * 
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; + * * @return Whether the vulnerableHeaders field is set. */ public boolean hasVulnerableHeaders() { return vulnerableHeadersBuilder_ != null || vulnerableHeaders_ != null; } /** + * + * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; + * * @return The vulnerableHeaders. */ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders getVulnerableHeaders() { if (vulnerableHeadersBuilder_ == null) { - return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; + return vulnerableHeaders_ == null + ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() + : vulnerableHeaders_; } else { return vulnerableHeadersBuilder_.getMessage(); } } /** + * + * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ - public Builder setVulnerableHeaders(com.google.cloud.websecurityscanner.v1.VulnerableHeaders value) { + public Builder setVulnerableHeaders( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3431,6 +3850,8 @@ public Builder setVulnerableHeaders(com.google.cloud.websecurityscanner.v1.Vulne return this; } /** + * + * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
@@ -3449,17 +3870,23 @@ public Builder setVulnerableHeaders( return this; } /** + * + * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ - public Builder mergeVulnerableHeaders(com.google.cloud.websecurityscanner.v1.VulnerableHeaders value) { + public Builder mergeVulnerableHeaders( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (vulnerableHeaders_ != null) { vulnerableHeaders_ = - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.newBuilder(vulnerableHeaders_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.newBuilder( + vulnerableHeaders_) + .mergeFrom(value) + .buildPartial(); } else { vulnerableHeaders_ = value; } @@ -3471,6 +3898,8 @@ public Builder mergeVulnerableHeaders(com.google.cloud.websecurityscanner.v1.Vul return this; } /** + * + * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
@@ -3489,33 +3918,42 @@ public Builder clearVulnerableHeaders() { return this; } /** + * + * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder getVulnerableHeadersBuilder() { - + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder + getVulnerableHeadersBuilder() { + onChanged(); return getVulnerableHeadersFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder + getVulnerableHeadersOrBuilder() { if (vulnerableHeadersBuilder_ != null) { return vulnerableHeadersBuilder_.getMessageOrBuilder(); } else { - return vulnerableHeaders_ == null ? - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; + return vulnerableHeaders_ == null + ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() + : vulnerableHeaders_; } } /** + * + * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
@@ -3523,14 +3961,17 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder getVuln * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder> + com.google.cloud.websecurityscanner.v1.VulnerableHeaders, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder, + com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder> getVulnerableHeadersFieldBuilder() { if (vulnerableHeadersBuilder_ == null) { - vulnerableHeadersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder>( - getVulnerableHeaders(), - getParentForChildren(), - isClean()); + vulnerableHeadersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.VulnerableHeaders, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder, + com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder>( + getVulnerableHeaders(), getParentForChildren(), isClean()); vulnerableHeaders_ = null; } return vulnerableHeadersBuilder_; @@ -3538,44 +3979,61 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder getVuln private com.google.cloud.websecurityscanner.v1.VulnerableParameters vulnerableParameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableParameters, com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder> vulnerableParametersBuilder_; + com.google.cloud.websecurityscanner.v1.VulnerableParameters, + com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, + com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder> + vulnerableParametersBuilder_; /** + * + * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * + * * @return Whether the vulnerableParameters field is set. */ public boolean hasVulnerableParameters() { return vulnerableParametersBuilder_ != null || vulnerableParameters_ != null; } /** + * + * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * + * * @return The vulnerableParameters. */ public com.google.cloud.websecurityscanner.v1.VulnerableParameters getVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { - return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; + return vulnerableParameters_ == null + ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() + : vulnerableParameters_; } else { return vulnerableParametersBuilder_.getMessage(); } } /** + * + * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * */ - public Builder setVulnerableParameters(com.google.cloud.websecurityscanner.v1.VulnerableParameters value) { + public Builder setVulnerableParameters( + com.google.cloud.websecurityscanner.v1.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3589,12 +4047,15 @@ public Builder setVulnerableParameters(com.google.cloud.websecurityscanner.v1.Vu return this; } /** + * + * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * */ public Builder setVulnerableParameters( com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder builderForValue) { @@ -3608,18 +4069,25 @@ public Builder setVulnerableParameters( return this; } /** + * + * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * */ - public Builder mergeVulnerableParameters(com.google.cloud.websecurityscanner.v1.VulnerableParameters value) { + public Builder mergeVulnerableParameters( + com.google.cloud.websecurityscanner.v1.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (vulnerableParameters_ != null) { vulnerableParameters_ = - com.google.cloud.websecurityscanner.v1.VulnerableParameters.newBuilder(vulnerableParameters_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1.VulnerableParameters.newBuilder( + vulnerableParameters_) + .mergeFrom(value) + .buildPartial(); } else { vulnerableParameters_ = value; } @@ -3631,12 +4099,15 @@ public Builder mergeVulnerableParameters(com.google.cloud.websecurityscanner.v1. return this; } /** + * + * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * */ public Builder clearVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { @@ -3650,51 +4121,66 @@ public Builder clearVulnerableParameters() { return this; } /** + * + * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * */ - public com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder getVulnerableParametersBuilder() { - + public com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder + getVulnerableParametersBuilder() { + onChanged(); return getVulnerableParametersFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * */ - public com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder + getVulnerableParametersOrBuilder() { if (vulnerableParametersBuilder_ != null) { return vulnerableParametersBuilder_.getMessageOrBuilder(); } else { - return vulnerableParameters_ == null ? - com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; + return vulnerableParameters_ == null + ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() + : vulnerableParameters_; } } /** + * + * *
      * Output only. An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableParameters, com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder> + com.google.cloud.websecurityscanner.v1.VulnerableParameters, + com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, + com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder> getVulnerableParametersFieldBuilder() { if (vulnerableParametersBuilder_ == null) { - vulnerableParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableParameters, com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder>( - getVulnerableParameters(), - getParentForChildren(), - isClean()); + vulnerableParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.VulnerableParameters, + com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder, + com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder>( + getVulnerableParameters(), getParentForChildren(), isClean()); vulnerableParameters_ = null; } return vulnerableParametersBuilder_; @@ -3702,34 +4188,47 @@ public com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder getV private com.google.cloud.websecurityscanner.v1.Xss xss_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Xss, com.google.cloud.websecurityscanner.v1.Xss.Builder, com.google.cloud.websecurityscanner.v1.XssOrBuilder> xssBuilder_; + com.google.cloud.websecurityscanner.v1.Xss, + com.google.cloud.websecurityscanner.v1.Xss.Builder, + com.google.cloud.websecurityscanner.v1.XssOrBuilder> + xssBuilder_; /** + * + * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; + * * @return Whether the xss field is set. */ public boolean hasXss() { return xssBuilder_ != null || xss_ != null; } /** + * + * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; + * * @return The xss. */ public com.google.cloud.websecurityscanner.v1.Xss getXss() { if (xssBuilder_ == null) { - return xss_ == null ? com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance() : xss_; + return xss_ == null + ? com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance() + : xss_; } else { return xssBuilder_.getMessage(); } } /** + * + * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -3750,14 +4249,15 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1.Xss value) { return this; } /** + * + * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; */ - public Builder setXss( - com.google.cloud.websecurityscanner.v1.Xss.Builder builderForValue) { + public Builder setXss(com.google.cloud.websecurityscanner.v1.Xss.Builder builderForValue) { if (xssBuilder_ == null) { xss_ = builderForValue.build(); onChanged(); @@ -3768,6 +4268,8 @@ public Builder setXss( return this; } /** + * + * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -3778,7 +4280,9 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1.Xss value) { if (xssBuilder_ == null) { if (xss_ != null) { xss_ = - com.google.cloud.websecurityscanner.v1.Xss.newBuilder(xss_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1.Xss.newBuilder(xss_) + .mergeFrom(value) + .buildPartial(); } else { xss_ = value; } @@ -3790,6 +4294,8 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1.Xss value) { return this; } /** + * + * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -3808,6 +4314,8 @@ public Builder clearXss() { return this; } /** + * + * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -3815,11 +4323,13 @@ public Builder clearXss() { * .google.cloud.websecurityscanner.v1.Xss xss = 14; */ public com.google.cloud.websecurityscanner.v1.Xss.Builder getXssBuilder() { - + onChanged(); return getXssFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -3830,11 +4340,14 @@ public com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder() { if (xssBuilder_ != null) { return xssBuilder_.getMessageOrBuilder(); } else { - return xss_ == null ? - com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance() : xss_; + return xss_ == null + ? com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance() + : xss_; } } /** + * + * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -3842,21 +4355,24 @@ public com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder() { * .google.cloud.websecurityscanner.v1.Xss xss = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Xss, com.google.cloud.websecurityscanner.v1.Xss.Builder, com.google.cloud.websecurityscanner.v1.XssOrBuilder> + com.google.cloud.websecurityscanner.v1.Xss, + com.google.cloud.websecurityscanner.v1.Xss.Builder, + com.google.cloud.websecurityscanner.v1.XssOrBuilder> getXssFieldBuilder() { if (xssBuilder_ == null) { - xssBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Xss, com.google.cloud.websecurityscanner.v1.Xss.Builder, com.google.cloud.websecurityscanner.v1.XssOrBuilder>( - getXss(), - getParentForChildren(), - isClean()); + xssBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.Xss, + com.google.cloud.websecurityscanner.v1.Xss.Builder, + com.google.cloud.websecurityscanner.v1.XssOrBuilder>( + getXss(), getParentForChildren(), isClean()); xss_ = null; } return xssBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3866,12 +4382,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.Finding) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.Finding) private static final com.google.cloud.websecurityscanner.v1.Finding DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.Finding(); } @@ -3880,16 +4396,16 @@ public static com.google.cloud.websecurityscanner.v1.Finding getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Finding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Finding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Finding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3904,6 +4420,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java new file mode 100644 index 00000000..cd63245f --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java @@ -0,0 +1,165 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/finding_addon.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class FindingAddonProto { + private FindingAddonProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/websecurityscanner/v1/fin" + + "ding_addon.proto\022\"google.cloud.websecuri" + + "tyscanner.v1\"*\n\004Form\022\022\n\naction_uri\030\001 \001(\t" + + "\022\016\n\006fields\030\002 \003(\t\"Q\n\017OutdatedLibrary\022\024\n\014l" + + "ibrary_name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\027\n\017le" + + "arn_more_urls\030\003 \003(\t\"?\n\021ViolatingResource" + + "\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resource_url\030\002" + + " \001(\t\"/\n\024VulnerableParameters\022\027\n\017paramete" + + "r_names\030\001 \003(\t\"\340\001\n\021VulnerableHeaders\022M\n\007h" + + "eaders\030\001 \003(\0132<.google.cloud.websecuritys" + + "canner.v1.VulnerableHeaders.Header\022U\n\017mi" + + "ssing_headers\030\002 \003(\0132<.google.cloud.webse" + + "curityscanner.v1.VulnerableHeaders.Heade" + + "r\032%\n\006Header\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + "\"\333\003\n\003Xss\022\024\n\014stack_traces\030\001 \003(\t\022\025\n\rerror_" + + "message\030\002 \001(\t\022K\n\rattack_vector\030\003 \001(\01624.g" + + "oogle.cloud.websecurityscanner.v1.Xss.At" + + "tackVector\022\036\n\026stored_xss_seeding_url\030\004 \001" + + "(\t\"\271\002\n\014AttackVector\022\035\n\031ATTACK_VECTOR_UNS" + + "PECIFIED\020\000\022\021\n\rLOCAL_STORAGE\020\001\022\023\n\017SESSION" + + "_STORAGE\020\002\022\017\n\013WINDOW_NAME\020\003\022\014\n\010REFERRER\020" + + "\004\022\016\n\nFORM_INPUT\020\005\022\n\n\006COOKIE\020\006\022\020\n\014POST_ME" + + "SSAGE\020\007\022\022\n\016GET_PARAMETERS\020\010\022\020\n\014URL_FRAGM" + + "ENT\020\t\022\020\n\014HTML_COMMENT\020\n\022\023\n\017POST_PARAMETE" + + "RS\020\013\022\014\n\010PROTOCOL\020\014\022\016\n\nSTORED_XSS\020\r\022\017\n\013SA" + + "ME_ORIGIN\020\016\022\031\n\025USER_CONTROLLABLE_URL\020\017B\205" + + "\002\n&com.google.cloud.websecurityscanner.v" + + "1B\021FindingAddonProtoP\001ZTgoogle.golang.or" + + "g/genproto/googleapis/cloud/websecuritys" + + "canner/v1;websecurityscanner\252\002\"Google.Cl" + + "oud.WebSecurityScanner.V1\312\002\"Google\\Cloud" + + "\\WebSecurityScanner\\V1\352\002%Google::Cloud::" + + "WebSecurityScanner::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_websecurityscanner_v1_Form_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_Form_descriptor, + new java.lang.String[] { + "ActionUri", "Fields", + }); + internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor, + new java.lang.String[] { + "LibraryName", "Version", "LearnMoreUrls", + }); + internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor, + new java.lang.String[] { + "ContentType", "ResourceUrl", + }); + internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor, + new java.lang.String[] { + "ParameterNames", + }); + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor, + new java.lang.String[] { + "Headers", "MissingHeaders", + }); + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor = + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor, + new java.lang.String[] { + "Name", "Value", + }); + internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor, + new java.lang.String[] { + "StackTraces", "ErrorMessage", "AttackVector", "StoredXssSeedingUrl", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java similarity index 83% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java index f6a51533..338bf2e8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding.proto package com.google.cloud.websecurityscanner.v1; -public interface FindingOrBuilder extends +public interface FindingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.Finding) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -15,10 +33,13 @@ public interface FindingOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -26,12 +47,14 @@ public interface FindingOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -39,10 +62,13 @@ public interface FindingOrBuilder extends
    * 
* * string finding_type = 2; + * * @return The findingType. */ java.lang.String getFindingType(); /** + * + * *
    * Output only. The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -50,221 +76,279 @@ public interface FindingOrBuilder extends
    * 
* * string finding_type = 2; + * * @return The bytes for findingType. */ - com.google.protobuf.ByteString - getFindingTypeBytes(); + com.google.protobuf.ByteString getFindingTypeBytes(); /** + * + * *
    * Output only. The severity level of the reported vulnerability.
    * 
* - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** + * + * *
    * Output only. The severity level of the reported vulnerability.
    * 
* - * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Finding.Severity severity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The severity. */ com.google.cloud.websecurityscanner.v1.Finding.Severity getSeverity(); /** + * + * *
    * Output only. The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; + * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** + * + * *
    * Output only. The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; + * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString - getHttpMethodBytes(); + com.google.protobuf.ByteString getHttpMethodBytes(); /** + * + * *
    * Output only. The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; + * * @return The fuzzedUrl. */ java.lang.String getFuzzedUrl(); /** + * + * *
    * Output only. The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; + * * @return The bytes for fuzzedUrl. */ - com.google.protobuf.ByteString - getFuzzedUrlBytes(); + com.google.protobuf.ByteString getFuzzedUrlBytes(); /** + * + * *
    * Output only. The body of the request that triggered the vulnerability.
    * 
* * string body = 5; + * * @return The body. */ java.lang.String getBody(); /** + * + * *
    * Output only. The body of the request that triggered the vulnerability.
    * 
* * string body = 5; + * * @return The bytes for body. */ - com.google.protobuf.ByteString - getBodyBytes(); + com.google.protobuf.ByteString getBodyBytes(); /** + * + * *
    * Output only. The description of the vulnerability.
    * 
* * string description = 6; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Output only. The description of the vulnerability.
    * 
* * string description = 6; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; + * * @return The reproductionUrl. */ java.lang.String getReproductionUrl(); /** + * + * *
    * Output only. The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; + * * @return The bytes for reproductionUrl. */ - com.google.protobuf.ByteString - getReproductionUrlBytes(); + com.google.protobuf.ByteString getReproductionUrlBytes(); /** + * + * *
    * Output only. If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; + * * @return The frameUrl. */ java.lang.String getFrameUrl(); /** + * + * *
    * Output only. If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; + * * @return The bytes for frameUrl. */ - com.google.protobuf.ByteString - getFrameUrlBytes(); + com.google.protobuf.ByteString getFrameUrlBytes(); /** + * + * *
    * Output only. The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; + * * @return The finalUrl. */ java.lang.String getFinalUrl(); /** + * + * *
    * Output only. The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; + * * @return The bytes for finalUrl. */ - com.google.protobuf.ByteString - getFinalUrlBytes(); + com.google.protobuf.ByteString getFinalUrlBytes(); /** + * + * *
    * Output only. The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; + * * @return The trackingId. */ java.lang.String getTrackingId(); /** + * + * *
    * Output only. The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; + * * @return The bytes for trackingId. */ - com.google.protobuf.ByteString - getTrackingIdBytes(); + com.google.protobuf.ByteString getTrackingIdBytes(); /** + * + * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; + * * @return Whether the form field is set. */ boolean hasForm(); /** + * + * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Form form = 16; + * * @return The form. */ com.google.cloud.websecurityscanner.v1.Form getForm(); /** + * + * *
    * Output only. An addon containing information reported for a vulnerability with an HTML
    * form, if any.
@@ -275,24 +359,32 @@ public interface FindingOrBuilder extends
   com.google.cloud.websecurityscanner.v1.FormOrBuilder getFormOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; + * * @return Whether the outdatedLibrary field is set. */ boolean hasOutdatedLibrary(); /** + * + * *
    * Output only. An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1.OutdatedLibrary outdated_library = 11; + * * @return The outdatedLibrary. */ com.google.cloud.websecurityscanner.v1.OutdatedLibrary getOutdatedLibrary(); /** + * + * *
    * Output only. An addon containing information about outdated libraries.
    * 
@@ -302,26 +394,34 @@ public interface FindingOrBuilder extends com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder(); /** + * + * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; + * * @return Whether the violatingResource field is set. */ boolean hasViolatingResource(); /** + * + * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1.ViolatingResource violating_resource = 12; + * * @return The violatingResource. */ com.google.cloud.websecurityscanner.v1.ViolatingResource getViolatingResource(); /** + * + * *
    * Output only. An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -332,24 +432,32 @@ public interface FindingOrBuilder extends
   com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder getViolatingResourceOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; + * * @return Whether the vulnerableHeaders field is set. */ boolean hasVulnerableHeaders(); /** + * + * *
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1.VulnerableHeaders vulnerable_headers = 15; + * * @return The vulnerableHeaders. */ com.google.cloud.websecurityscanner.v1.VulnerableHeaders getVulnerableHeaders(); /** + * + * *
    * Output only. An addon containing information about vulnerable or missing HTTP headers.
    * 
@@ -359,54 +467,74 @@ public interface FindingOrBuilder extends com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder(); /** + * + * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * + * * @return Whether the vulnerableParameters field is set. */ boolean hasVulnerableParameters(); /** + * + * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * + * * @return The vulnerableParameters. */ com.google.cloud.websecurityscanner.v1.VulnerableParameters getVulnerableParameters(); /** + * + * *
    * Output only. An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1.VulnerableParameters vulnerable_parameters = 13; + * */ - com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder(); + com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder + getVulnerableParametersOrBuilder(); /** + * + * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; + * * @return Whether the xss field is set. */ boolean hasXss(); /** + * + * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1.Xss xss = 14; + * * @return The xss. */ com.google.cloud.websecurityscanner.v1.Xss getXss(); /** + * + * *
    * Output only. An addon containing information reported for an XSS, if any.
    * 
diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java new file mode 100644 index 00000000..a94ab1eb --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java @@ -0,0 +1,124 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/finding.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class FindingProto { + private FindingProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/websecurityscanner/v1/fin" + + "ding.proto\022\"google.cloud.websecurityscan" + + "ner.v1\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\0326google/cloud" + + "/websecurityscanner/v1/finding_addon.pro" + + "to\"\261\007\n\007Finding\022\014\n\004name\030\001 \001(\t\022\024\n\014finding_" + + "type\030\002 \001(\t\022K\n\010severity\030\021 \001(\01624.google.cl" + + "oud.websecurityscanner.v1.Finding.Severi" + + "tyB\003\340A\003\022\023\n\013http_method\030\003 \001(\t\022\022\n\nfuzzed_u" + + "rl\030\004 \001(\t\022\014\n\004body\030\005 \001(\t\022\023\n\013description\030\006 " + + "\001(\t\022\030\n\020reproduction_url\030\007 \001(\t\022\021\n\tframe_u" + + "rl\030\010 \001(\t\022\021\n\tfinal_url\030\t \001(\t\022\023\n\013tracking_" + + "id\030\n \001(\t\0226\n\004form\030\020 \001(\0132(.google.cloud.we" + + "bsecurityscanner.v1.Form\022M\n\020outdated_lib" + + "rary\030\013 \001(\01323.google.cloud.websecuritysca" + + "nner.v1.OutdatedLibrary\022Q\n\022violating_res" + + "ource\030\014 \001(\01325.google.cloud.websecuritysc" + + "anner.v1.ViolatingResource\022Q\n\022vulnerable" + + "_headers\030\017 \001(\01325.google.cloud.websecurit" + + "yscanner.v1.VulnerableHeaders\022W\n\025vulnera" + + "ble_parameters\030\r \001(\01328.google.cloud.webs" + + "ecurityscanner.v1.VulnerableParameters\0224" + + "\n\003xss\030\016 \001(\0132\'.google.cloud.websecuritysc" + + "anner.v1.Xss\"Q\n\010Severity\022\030\n\024SEVERITY_UNS" + + "PECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006ME" + + "DIUM\020\003\022\007\n\003LOW\020\004:\204\001\352A\200\001\n)websecurityscann" + + "er.googleapis.com/Finding\022Sprojects/{pro" + + "ject}/scanConfigs/{scan_config}/scanRuns" + + "/{scan_run}/findings/{finding}B\200\002\n&com.g" + + "oogle.cloud.websecurityscanner.v1B\014Findi" + + "ngProtoP\001ZTgoogle.golang.org/genproto/go" + + "ogleapis/cloud/websecurityscanner/v1;web" + + "securityscanner\252\002\"Google.Cloud.WebSecuri" + + "tyScanner.V1\312\002\"Google\\Cloud\\WebSecurityS" + + "canner\\V1\352\002%Google::Cloud::WebSecuritySc" + + "anner::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1.FindingAddonProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_Finding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_Finding_descriptor, + new java.lang.String[] { + "Name", + "FindingType", + "Severity", + "HttpMethod", + "FuzzedUrl", + "Body", + "Description", + "ReproductionUrl", + "FrameUrl", + "FinalUrl", + "TrackingId", + "Form", + "OutdatedLibrary", + "ViolatingResource", + "VulnerableHeaders", + "VulnerableParameters", + "Xss", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1.FindingAddonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java index df1810f2..f9240cef 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * A FindingTypeStats resource represents stats regarding a specific FindingType
  * of Findings under a given ScanRun.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.FindingTypeStats}
  */
-public final class FindingTypeStats extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FindingTypeStats extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.FindingTypeStats)
     FindingTypeStatsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FindingTypeStats.newBuilder() to construct.
   private FindingTypeStats(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FindingTypeStats() {
     findingType_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FindingTypeStats();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private FindingTypeStats(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,24 +71,25 @@ private FindingTypeStats(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            findingType_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            findingCount_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              findingType_ = s;
+              break;
+            }
+          case 16:
+            {
+              findingCount_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -79,34 +97,39 @@ private FindingTypeStats(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto
+        .internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto
+        .internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder.class);
+            com.google.cloud.websecurityscanner.v1.FindingTypeStats.class,
+            com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder.class);
   }
 
   public static final int FINDING_TYPE_FIELD_NUMBER = 1;
   private volatile java.lang.Object findingType_;
   /**
+   *
+   *
    * 
    * Output only. The finding type associated with the stats.
    * 
* * string finding_type = 1; + * * @return The findingType. */ @java.lang.Override @@ -115,29 +138,29 @@ public java.lang.String getFindingType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; } } /** + * + * *
    * Output only. The finding type associated with the stats.
    * 
* * string finding_type = 1; + * * @return The bytes for findingType. */ @java.lang.Override - public com.google.protobuf.ByteString - getFindingTypeBytes() { + public com.google.protobuf.ByteString getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); findingType_ = b; return b; } else { @@ -148,11 +171,14 @@ public java.lang.String getFindingType() { public static final int FINDING_COUNT_FIELD_NUMBER = 2; private int findingCount_; /** + * + * *
    * Output only. The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; + * * @return The findingCount. */ @java.lang.Override @@ -161,6 +187,7 @@ public int getFindingCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +199,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(findingType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, findingType_); } @@ -193,8 +219,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, findingType_); } if (findingCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, findingCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, findingCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -204,17 +229,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.FindingTypeStats)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.FindingTypeStats other = (com.google.cloud.websecurityscanner.v1.FindingTypeStats) obj; + com.google.cloud.websecurityscanner.v1.FindingTypeStats other = + (com.google.cloud.websecurityscanner.v1.FindingTypeStats) obj; - if (!getFindingType() - .equals(other.getFindingType())) return false; - if (getFindingCount() - != other.getFindingCount()) return false; + if (!getFindingType().equals(other.getFindingType())) return false; + if (getFindingCount() != other.getFindingCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -236,96 +260,104 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.FindingTypeStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.FindingTypeStats prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.FindingTypeStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A FindingTypeStats resource represents stats regarding a specific FindingType
    * of Findings under a given ScanRun.
@@ -333,21 +365,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.FindingTypeStats}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.FindingTypeStats)
       com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto
+          .internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto
+          .internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder.class);
+              com.google.cloud.websecurityscanner.v1.FindingTypeStats.class,
+              com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.FindingTypeStats.newBuilder()
@@ -355,16 +389,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -376,9 +409,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.FindingTypeStatsProto
+          .internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
@@ -397,7 +430,8 @@ public com.google.cloud.websecurityscanner.v1.FindingTypeStats build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.FindingTypeStats buildPartial() {
-      com.google.cloud.websecurityscanner.v1.FindingTypeStats result = new com.google.cloud.websecurityscanner.v1.FindingTypeStats(this);
+      com.google.cloud.websecurityscanner.v1.FindingTypeStats result =
+          new com.google.cloud.websecurityscanner.v1.FindingTypeStats(this);
       result.findingType_ = findingType_;
       result.findingCount_ = findingCount_;
       onBuilt();
@@ -408,38 +442,39 @@ public com.google.cloud.websecurityscanner.v1.FindingTypeStats buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.FindingTypeStats) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.FindingTypeStats)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.FindingTypeStats) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -447,7 +482,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.FindingTypeStats other) {
-      if (other == com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance()) return this;
+      if (other == com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance())
+        return this;
       if (!other.getFindingType().isEmpty()) {
         findingType_ = other.findingType_;
         onChanged();
@@ -474,7 +510,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1.FindingTypeStats) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1.FindingTypeStats) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -486,18 +523,20 @@ public Builder mergeFrom(
 
     private java.lang.Object findingType_ = "";
     /**
+     *
+     *
      * 
      * Output only. The finding type associated with the stats.
      * 
* * string finding_type = 1; + * * @return The findingType. */ public java.lang.String getFindingType() { java.lang.Object ref = findingType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; @@ -506,20 +545,21 @@ public java.lang.String getFindingType() { } } /** + * + * *
      * Output only. The finding type associated with the stats.
      * 
* * string finding_type = 1; + * * @return The bytes for findingType. */ - public com.google.protobuf.ByteString - getFindingTypeBytes() { + public com.google.protobuf.ByteString getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); findingType_ = b; return b; } else { @@ -527,66 +567,76 @@ public java.lang.String getFindingType() { } } /** + * + * *
      * Output only. The finding type associated with the stats.
      * 
* * string finding_type = 1; + * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType( - java.lang.String value) { + public Builder setFindingType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingType_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The finding type associated with the stats.
      * 
* * string finding_type = 1; + * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = getDefaultInstance().getFindingType(); onChanged(); return this; } /** + * + * *
      * Output only. The finding type associated with the stats.
      * 
* * string finding_type = 1; + * * @param value The bytes for findingType to set. * @return This builder for chaining. */ - public Builder setFindingTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingType_ = value; onChanged(); return this; } - private int findingCount_ ; + private int findingCount_; /** + * + * *
      * Output only. The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; + * * @return The findingCount. */ @java.lang.Override @@ -594,37 +644,43 @@ public int getFindingCount() { return findingCount_; } /** + * + * *
      * Output only. The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; + * * @param value The findingCount to set. * @return This builder for chaining. */ public Builder setFindingCount(int value) { - + findingCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; + * * @return This builder for chaining. */ public Builder clearFindingCount() { - + findingCount_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -634,12 +690,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.FindingTypeStats) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.FindingTypeStats) private static final com.google.cloud.websecurityscanner.v1.FindingTypeStats DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.FindingTypeStats(); } @@ -648,16 +704,16 @@ public static com.google.cloud.websecurityscanner.v1.FindingTypeStats getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FindingTypeStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FindingTypeStats(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindingTypeStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FindingTypeStats(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -672,6 +728,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.FindingTypeStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java index 23a22c05..e64b9e99 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java @@ -1,38 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1; -public interface FindingTypeStatsOrBuilder extends +public interface FindingTypeStatsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.FindingTypeStats) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The finding type associated with the stats.
    * 
* * string finding_type = 1; + * * @return The findingType. */ java.lang.String getFindingType(); /** + * + * *
    * Output only. The finding type associated with the stats.
    * 
* * string finding_type = 1; + * * @return The bytes for findingType. */ - com.google.protobuf.ByteString - getFindingTypeBytes(); + com.google.protobuf.ByteString getFindingTypeBytes(); /** + * + * *
    * Output only. The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; + * * @return The findingCount. */ int getFindingCount(); diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java new file mode 100644 index 00000000..798dbfa5 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java @@ -0,0 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/finding_type_stats.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class FindingTypeStatsProto { + private FindingTypeStatsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n;google/cloud/websecurityscanner/v1/fin" + + "ding_type_stats.proto\022\"google.cloud.webs" + + "ecurityscanner.v1\"?\n\020FindingTypeStats\022\024\n" + + "\014finding_type\030\001 \001(\t\022\025\n\rfinding_count\030\002 \001" + + "(\005B\211\002\n&com.google.cloud.websecurityscann" + + "er.v1B\025FindingTypeStatsProtoP\001ZTgoogle.g" + + "olang.org/genproto/googleapis/cloud/webs" + + "ecurityscanner/v1;websecurityscanner\252\002\"G" + + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" + + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" + + ":Cloud::WebSecurityScanner::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_FindingTypeStats_descriptor, + new java.lang.String[] { + "FindingType", "FindingCount", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java index 8dc28fa3..82e5baad 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * ! Information about a vulnerability with an HTML.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.Form} */ -public final class Form extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Form extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.Form) FormOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Form.newBuilder() to construct. private Form(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Form() { actionUri_ = ""; fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,16 +44,15 @@ private Form() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Form(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Form( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private Form( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - actionUri_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + actionUri_ = s; + break; } - fields_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fields_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + fields_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private Form( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fields_ = fields_.getUnmodifiableView(); @@ -94,27 +112,33 @@ private Form( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.Form.class, com.google.cloud.websecurityscanner.v1.Form.Builder.class); + com.google.cloud.websecurityscanner.v1.Form.class, + com.google.cloud.websecurityscanner.v1.Form.Builder.class); } public static final int ACTION_URI_FIELD_NUMBER = 1; private volatile java.lang.Object actionUri_; /** + * + * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; + * * @return The actionUri. */ @java.lang.Override @@ -123,29 +147,29 @@ public java.lang.String getActionUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionUri_ = s; return s; } } /** + * + * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; + * * @return The bytes for actionUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getActionUriBytes() { + public com.google.protobuf.ByteString getActionUriBytes() { java.lang.Object ref = actionUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); actionUri_ = b; return b; } else { @@ -156,34 +180,42 @@ public java.lang.String getActionUri() { public static final int FIELDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList fields_; /** + * + * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; + * * @return A list containing the fields. */ - public com.google.protobuf.ProtocolStringList - getFieldsList() { + public com.google.protobuf.ProtocolStringList getFieldsList() { return fields_; } /** + * + * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; + * * @return The count of fields. */ public int getFieldsCount() { return fields_.size(); } /** + * + * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; + * * @param index The index of the element to return. * @return The fields at the given index. */ @@ -191,20 +223,23 @@ public java.lang.String getFields(int index) { return fields_.get(index); } /** + * + * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; + * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - public com.google.protobuf.ByteString - getFieldsBytes(int index) { + public com.google.protobuf.ByteString getFieldsBytes(int index) { return fields_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,8 +251,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actionUri_); } @@ -252,17 +286,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.Form)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.Form other = (com.google.cloud.websecurityscanner.v1.Form) obj; + com.google.cloud.websecurityscanner.v1.Form other = + (com.google.cloud.websecurityscanner.v1.Form) obj; - if (!getActionUri() - .equals(other.getActionUri())) return false; - if (!getFieldsList() - .equals(other.getFieldsList())) return false; + if (!getActionUri().equals(other.getActionUri())) return false; + if (!getFieldsList().equals(other.getFieldsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -285,118 +318,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.Form parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1.Form parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.Form parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.Form parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.Form parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.Form parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.Form parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.Form parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.Form parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Form parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.Form parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.Form parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.Form parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.Form parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.Form prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ! Information about a vulnerability with an HTML.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.Form} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.Form) com.google.cloud.websecurityscanner.v1.FormOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Form_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.Form.class, com.google.cloud.websecurityscanner.v1.Form.Builder.class); + com.google.cloud.websecurityscanner.v1.Form.class, + com.google.cloud.websecurityscanner.v1.Form.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.Form.newBuilder() @@ -404,16 +446,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +466,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Form_descriptor; } @java.lang.Override @@ -446,7 +487,8 @@ public com.google.cloud.websecurityscanner.v1.Form build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.Form buildPartial() { - com.google.cloud.websecurityscanner.v1.Form result = new com.google.cloud.websecurityscanner.v1.Form(this); + com.google.cloud.websecurityscanner.v1.Form result = + new com.google.cloud.websecurityscanner.v1.Form(this); int from_bitField0_ = bitField0_; result.actionUri_ = actionUri_; if (((bitField0_ & 0x00000001) != 0)) { @@ -462,38 +504,39 @@ public com.google.cloud.websecurityscanner.v1.Form buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.Form) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.Form)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.Form) other); } else { super.mergeFrom(other); return this; @@ -544,22 +587,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object actionUri_ = ""; /** + * + * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; + * * @return The actionUri. */ public java.lang.String getActionUri() { java.lang.Object ref = actionUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionUri_ = s; return s; @@ -568,20 +614,21 @@ public java.lang.String getActionUri() { } } /** + * + * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; + * * @return The bytes for actionUri. */ - public com.google.protobuf.ByteString - getActionUriBytes() { + public com.google.protobuf.ByteString getActionUriBytes() { java.lang.Object ref = actionUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); actionUri_ = b; return b; } else { @@ -589,95 +636,112 @@ public java.lang.String getActionUri() { } } /** + * + * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; + * * @param value The actionUri to set. * @return This builder for chaining. */ - public Builder setActionUri( - java.lang.String value) { + public Builder setActionUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + actionUri_ = value; onChanged(); return this; } /** + * + * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; + * * @return This builder for chaining. */ public Builder clearActionUri() { - + actionUri_ = getDefaultInstance().getActionUri(); onChanged(); return this; } /** + * + * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; + * * @param value The bytes for actionUri to set. * @return This builder for chaining. */ - public Builder setActionUriBytes( - com.google.protobuf.ByteString value) { + public Builder setActionUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + actionUri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList fields_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new com.google.protobuf.LazyStringArrayList(fields_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @return A list containing the fields. */ - public com.google.protobuf.ProtocolStringList - getFieldsList() { + public com.google.protobuf.ProtocolStringList getFieldsList() { return fields_.getUnmodifiableView(); } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @return The count of fields. */ public int getFieldsCount() { return fields_.size(); } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @param index The index of the element to return. * @return The fields at the given index. */ @@ -685,80 +749,90 @@ public java.lang.String getFields(int index) { return fields_.get(index); } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - public com.google.protobuf.ByteString - getFieldsBytes(int index) { + public com.google.protobuf.ByteString getFieldsBytes(int index) { return fields_.getByteString(index); } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @param index The index to set the value at. * @param value The fields to set. * @return This builder for chaining. */ - public Builder setFields( - int index, java.lang.String value) { + public Builder setFields(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); + throw new NullPointerException(); + } + ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); return this; } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @param value The fields to add. * @return This builder for chaining. */ - public Builder addFields( - java.lang.String value) { + public Builder addFields(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); + throw new NullPointerException(); + } + ensureFieldsIsMutable(); fields_.add(value); onChanged(); return this; } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @param values The fields to add. * @return This builder for chaining. */ - public Builder addAllFields( - java.lang.Iterable values) { + public Builder addAllFields(java.lang.Iterable values) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); onChanged(); return this; } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @return This builder for chaining. */ public Builder clearFields() { @@ -768,28 +842,30 @@ public Builder clearFields() { return this; } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @param value The bytes of the fields to add. * @return This builder for chaining. */ - public Builder addFieldsBytes( - com.google.protobuf.ByteString value) { + public Builder addFieldsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFieldsIsMutable(); fields_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -799,12 +875,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.Form) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.Form) private static final com.google.cloud.websecurityscanner.v1.Form DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.Form(); } @@ -813,16 +889,16 @@ public static com.google.cloud.websecurityscanner.v1.Form getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Form parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Form(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Form parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Form(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -837,6 +913,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.Form getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java index 07e70a5b..33d3545a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java @@ -1,70 +1,101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface FormOrBuilder extends +public interface FormOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.Form) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; + * * @return The actionUri. */ java.lang.String getActionUri(); /** + * + * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; + * * @return The bytes for actionUri. */ - com.google.protobuf.ByteString - getActionUriBytes(); + com.google.protobuf.ByteString getActionUriBytes(); /** + * + * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; + * * @return A list containing the fields. */ - java.util.List - getFieldsList(); + java.util.List getFieldsList(); /** + * + * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; + * * @return The count of fields. */ int getFieldsCount(); /** + * + * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; + * * @param index The index of the element to return. * @return The fields at the given index. */ java.lang.String getFields(int index); /** + * + * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; + * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - com.google.protobuf.ByteString - getFieldsBytes(int index); + com.google.protobuf.ByteString getFieldsBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java index 82baafda..e66da3df 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Request for the `GetFinding` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetFindingRequest} */ -public final class GetFindingRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetFindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.GetFindingRequest) GetFindingRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetFindingRequest.newBuilder() to construct. private GetFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetFindingRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetFindingRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private GetFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, + com.google.cloud.websecurityscanner.v1.GetFindingRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
@@ -103,6 +125,7 @@ private GetFindingRequest(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -111,14 +134,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
@@ -126,16 +150,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.GetFindingRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.GetFindingRequest other = (com.google.cloud.websecurityscanner.v1.GetFindingRequest) obj; + com.google.cloud.websecurityscanner.v1.GetFindingRequest other = + (com.google.cloud.websecurityscanner.v1.GetFindingRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.GetFindingRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.GetFindingRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.GetFindingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `GetFinding` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetFindingRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.GetFindingRequest) com.google.cloud.websecurityscanner.v1.GetFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetFindingRequest.class, + com.google.cloud.websecurityscanner.v1.GetFindingRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.GetFindingRequest.newBuilder() @@ -326,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; } @java.lang.Override @@ -366,7 +398,8 @@ public com.google.cloud.websecurityscanner.v1.GetFindingRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.GetFindingRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.GetFindingRequest result = new com.google.cloud.websecurityscanner.v1.GetFindingRequest(this); + com.google.cloud.websecurityscanner.v1.GetFindingRequest result = + new com.google.cloud.websecurityscanner.v1.GetFindingRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +409,39 @@ public com.google.cloud.websecurityscanner.v1.GetFindingRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.GetFindingRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.GetFindingRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.GetFindingRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.GetFindingRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.GetFindingRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1.GetFindingRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.GetFindingRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.GetFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,6 +487,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -458,13 +496,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,6 +511,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -480,15 +520,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,6 +535,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -503,20 +544,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -524,15 +567,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -540,23 +586,23 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.GetFindingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.GetFindingRequest) private static final com.google.cloud.websecurityscanner.v1.GetFindingRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.GetFindingRequest(); } @@ -580,16 +626,16 @@ public static com.google.cloud.websecurityscanner.v1.GetFindingRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFindingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFindingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.GetFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java index 0b92e26a..cd73cc3a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface GetFindingRequestOrBuilder extends +public interface GetFindingRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.GetFindingRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
@@ -15,10 +33,13 @@ public interface GetFindingRequestOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
@@ -26,8 +47,8 @@ public interface GetFindingRequestOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java index 43355e9f..d5a7804d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Request for the `GetScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetScanConfigRequest} */ -public final class GetScanConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.GetScanConfigRequest) GetScanConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetScanConfigRequest.newBuilder() to construct. private GetScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetScanConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ private GetScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -110,30 +133,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.GetScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest other = (com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest other = + (com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +229,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `GetScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetScanConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.GetScanConfigRequest) com.google.cloud.websecurityscanner.v1.GetScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.newBuilder() @@ -324,16 +357,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; } @java.lang.Override @@ -364,7 +396,8 @@ public com.google.cloud.websecurityscanner.v1.GetScanConfigRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.GetScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.GetScanConfigRequest result = new com.google.cloud.websecurityscanner.v1.GetScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1.GetScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +407,39 @@ public com.google.cloud.websecurityscanner.v1.GetScanConfigRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.GetScanConfigRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +447,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.GetScanConfigRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1.GetScanConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +472,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.GetScanConfigRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +485,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +508,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +531,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +605,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.GetScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.GetScanConfigRequest) private static final com.google.cloud.websecurityscanner.v1.GetScanConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.GetScanConfigRequest(); } @@ -573,16 +619,16 @@ public static com.google.cloud.websecurityscanner.v1.GetScanConfigRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +643,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.GetScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java index eb1926cd..39bbf9c2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface GetScanConfigRequestOrBuilder extends +public interface GetScanConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.GetScanConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java index 3d147172..7e099644 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Request for the `GetScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetScanRunRequest} */ -public final class GetScanRunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetScanRunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.GetScanRunRequest) GetScanRunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetScanRunRequest.newBuilder() to construct. private GetScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetScanRunRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private GetScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, + com.google.cloud.websecurityscanner.v1.GetScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
@@ -103,6 +125,7 @@ private GetScanRunRequest(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -111,14 +134,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
@@ -126,16 +150,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.GetScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.GetScanRunRequest other = (com.google.cloud.websecurityscanner.v1.GetScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1.GetScanRunRequest other = + (com.google.cloud.websecurityscanner.v1.GetScanRunRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.GetScanRunRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.GetScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `GetScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.GetScanRunRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.GetScanRunRequest) com.google.cloud.websecurityscanner.v1.GetScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.GetScanRunRequest.class, + com.google.cloud.websecurityscanner.v1.GetScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.GetScanRunRequest.newBuilder() @@ -326,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; } @java.lang.Override @@ -366,7 +398,8 @@ public com.google.cloud.websecurityscanner.v1.GetScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.GetScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.GetScanRunRequest result = new com.google.cloud.websecurityscanner.v1.GetScanRunRequest(this); + com.google.cloud.websecurityscanner.v1.GetScanRunRequest result = + new com.google.cloud.websecurityscanner.v1.GetScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +409,39 @@ public com.google.cloud.websecurityscanner.v1.GetScanRunRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.GetScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.GetScanRunRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.GetScanRunRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.GetScanRunRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.GetScanRunRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1.GetScanRunRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.GetScanRunRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.GetScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,6 +487,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -458,13 +496,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,6 +511,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -480,15 +520,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,6 +535,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -503,20 +544,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -524,15 +567,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -540,23 +586,23 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.GetScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.GetScanRunRequest) private static final com.google.cloud.websecurityscanner.v1.GetScanRunRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.GetScanRunRequest(); } @@ -580,16 +626,16 @@ public static com.google.cloud.websecurityscanner.v1.GetScanRunRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.GetScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java index 46d95644..c338f298 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface GetScanRunRequestOrBuilder extends +public interface GetScanRunRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.GetScanRunRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
@@ -15,10 +33,13 @@ public interface GetScanRunRequestOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
@@ -26,8 +47,8 @@ public interface GetScanRunRequestOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java index aadb3f56..bd693672 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Request for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest} */ -public final class ListCrawledUrlsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCrawledUrlsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) ListCrawledUrlsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCrawledUrlsRequest.newBuilder() to construct. private ListCrawledUrlsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCrawledUrlsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListCrawledUrlsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCrawledUrlsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCrawledUrlsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListCrawledUrlsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,29 +104,33 @@ private ListCrawledUrlsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -115,6 +138,7 @@ private ListCrawledUrlsRequest(
    * 
* * string parent = 1; + * * @return The parent. */ @java.lang.Override @@ -123,14 +147,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -138,16 +163,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 1; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -158,6 +182,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -165,6 +191,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -173,14 +200,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -188,16 +216,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -208,6 +235,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -215,6 +244,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -223,6 +253,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,8 +265,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -261,8 +291,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -272,19 +301,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest other = (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) obj; + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest other = + (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -308,117 +335,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.class, + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.newBuilder() @@ -426,16 +463,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -449,13 +485,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.getDefaultInstance(); } @@ -470,7 +507,8 @@ public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest result = new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest(this); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest result = + new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -482,38 +520,39 @@ public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) other); } else { super.mergeFrom(other); return this; @@ -521,7 +560,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -552,7 +593,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -564,6 +607,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -571,13 +616,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -586,6 +631,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -593,15 +640,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -609,6 +655,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -616,20 +664,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 1; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -637,15 +687,18 @@ public Builder setParent(
      * 
* * string parent = 1; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -653,16 +706,16 @@ public Builder clearParent() {
      * 
* * string parent = 1; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -670,6 +723,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -677,13 +732,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -692,6 +747,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -699,15 +756,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -715,6 +771,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -722,20 +780,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -743,15 +803,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -759,23 +822,25 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -783,6 +848,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -790,6 +856,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -797,16 +865,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -814,17 +885,18 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -834,12 +906,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) - private static final com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest(); } @@ -848,16 +921,16 @@ public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -872,6 +945,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java index f7e82ce1..9b03c21d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListCrawledUrlsRequestOrBuilder extends +public interface ListCrawledUrlsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -15,10 +33,13 @@ public interface ListCrawledUrlsRequestOrBuilder extends
    * 
* * string parent = 1; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -26,12 +47,14 @@ public interface ListCrawledUrlsRequestOrBuilder extends
    * 
* * string parent = 1; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -39,10 +62,13 @@ public interface ListCrawledUrlsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -50,12 +76,14 @@ public interface ListCrawledUrlsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -63,6 +91,7 @@ public interface ListCrawledUrlsRequestOrBuilder extends
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java index 965c2f5f..493adc82 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Response for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse} */ -public final class ListCrawledUrlsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCrawledUrlsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) ListCrawledUrlsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCrawledUrlsResponse.newBuilder() to construct. private ListCrawledUrlsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCrawledUrlsResponse() { crawledUrls_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListCrawledUrlsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCrawledUrlsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCrawledUrlsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,33 @@ private ListCrawledUrlsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + crawledUrls_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + crawledUrls_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1.CrawledUrl.parser(), + extensionRegistry)); + break; } - crawledUrls_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1.CrawledUrl.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +106,7 @@ private ListCrawledUrlsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); @@ -94,22 +115,27 @@ private ListCrawledUrlsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.Builder.class); } public static final int CRAWLED_URLS_FIELD_NUMBER = 1; private java.util.List crawledUrls_; /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -121,6 +147,8 @@ public java.util.List getCraw return crawledUrls_; } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -128,11 +156,13 @@ public java.util.List getCraw * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCrawledUrlsOrBuilderList() { return crawledUrls_; } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -144,6 +174,8 @@ public int getCrawledUrlsCount() { return crawledUrls_.size(); } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -155,6 +187,8 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl getCrawledUrls(int inde return crawledUrls_.get(index); } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -170,12 +204,15 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrls public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +221,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +253,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +265,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < crawledUrls_.size(); i++) { output.writeMessage(1, crawledUrls_.get(i)); } @@ -245,8 +282,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < crawledUrls_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, crawledUrls_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, crawledUrls_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +295,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse other = (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) obj; + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse other = + (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) obj; - if (!getCrawledUrlsList() - .equals(other.getCrawledUrlsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getCrawledUrlsList().equals(other.getCrawledUrlsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +328,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.class, + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.newBuilder() @@ -411,17 +456,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCrawledUrlsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,13 +482,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.getDefaultInstance(); } @@ -458,7 +504,8 @@ public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse result = new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse(this); + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse result = + new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse(this); int from_bitField0_ = bitField0_; if (crawledUrlsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +525,39 @@ public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +565,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse.getDefaultInstance()) + return this; if (crawledUrlsBuilder_ == null) { if (!other.crawledUrls_.isEmpty()) { if (crawledUrls_.isEmpty()) { @@ -536,9 +586,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsR crawledUrlsBuilder_ = null; crawledUrls_ = other.crawledUrls_; bitField0_ = (bitField0_ & ~0x00000001); - crawledUrlsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCrawledUrlsFieldBuilder() : null; + crawledUrlsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCrawledUrlsFieldBuilder() + : null; } else { crawledUrlsBuilder_.addAllMessages(other.crawledUrls_); } @@ -567,7 +618,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +629,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List crawledUrls_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCrawledUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = new java.util.ArrayList(crawledUrls_); + crawledUrls_ = + new java.util.ArrayList( + crawledUrls_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.CrawledUrl, com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder> crawledUrlsBuilder_; + com.google.cloud.websecurityscanner.v1.CrawledUrl, + com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, + com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder> + crawledUrlsBuilder_; /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -605,6 +667,8 @@ public java.util.List getCraw } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -619,6 +683,8 @@ public int getCrawledUrlsCount() { } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -633,6 +699,8 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl getCrawledUrls(int inde } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -654,6 +722,8 @@ public Builder setCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -672,6 +742,8 @@ public Builder setCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -692,6 +764,8 @@ public Builder addCrawledUrls(com.google.cloud.websecurityscanner.v1.CrawledUrl return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -713,6 +787,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -731,6 +807,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -749,6 +827,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -759,8 +839,7 @@ public Builder addAllCrawledUrls( java.lang.Iterable values) { if (crawledUrlsBuilder_ == null) { ensureCrawledUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, crawledUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crawledUrls_); onChanged(); } else { crawledUrlsBuilder_.addAllMessages(values); @@ -768,6 +847,8 @@ public Builder addAllCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -785,6 +866,8 @@ public Builder clearCrawledUrls() { return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -802,6 +885,8 @@ public Builder removeCrawledUrls(int index) { return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -813,6 +898,8 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder getCrawledUrlsB return getCrawledUrlsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -822,19 +909,22 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder getCrawledUrlsB public com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrlsOrBuilder( int index) { if (crawledUrlsBuilder_ == null) { - return crawledUrls_.get(index); } else { + return crawledUrls_.get(index); + } else { return crawledUrlsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsOrBuilderList() { + public java.util.List + getCrawledUrlsOrBuilderList() { if (crawledUrlsBuilder_ != null) { return crawledUrlsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +932,8 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrls } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -849,10 +941,12 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrls * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder addCrawledUrlsBuilder() { - return getCrawledUrlsFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder() + .addBuilder(com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance()); } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -861,30 +955,36 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder addCrawledUrlsB */ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder addCrawledUrlsBuilder( int index) { - return getCrawledUrlsFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder() + .addBuilder( + index, com.google.cloud.websecurityscanner.v1.CrawledUrl.getDefaultInstance()); } /** + * + * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsBuilderList() { + public java.util.List + getCrawledUrlsBuilderList() { return getCrawledUrlsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.CrawledUrl, com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder> + com.google.cloud.websecurityscanner.v1.CrawledUrl, + com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, + com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder> getCrawledUrlsFieldBuilder() { if (crawledUrlsBuilder_ == null) { - crawledUrlsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.CrawledUrl, com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder>( - crawledUrls_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + crawledUrlsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.CrawledUrl, + com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder, + com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder>( + crawledUrls_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); crawledUrls_ = null; } return crawledUrlsBuilder_; @@ -892,19 +992,21 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder addCrawledUrlsB private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1015,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1038,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1112,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) - private static final com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse(); } - public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1149,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java index f89e91b7..e59fc74d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListCrawledUrlsResponseOrBuilder extends +public interface ListCrawledUrlsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ - java.util.List - getCrawledUrlsList(); + java.util.List getCrawledUrlsList(); /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -25,6 +44,8 @@ public interface ListCrawledUrlsResponseOrBuilder extends */ com.google.cloud.websecurityscanner.v1.CrawledUrl getCrawledUrls(int index); /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -33,43 +54,51 @@ public interface ListCrawledUrlsResponseOrBuilder extends */ int getCrawledUrlsCount(); /** + * + * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ - java.util.List + java.util.List getCrawledUrlsOrBuilderList(); /** + * + * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.CrawledUrl crawled_urls = 1; */ - com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrlsOrBuilder( - int index); + com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrlsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java index e2d3160e..7b642cfe 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Request for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest} */ -public final class ListFindingTypeStatsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingTypeStatsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) ListFindingTypeStatsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsRequest.newBuilder() to construct. private ListFindingTypeStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingTypeStatsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingTypeStatsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingTypeStatsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private ListFindingTypeStatsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private ListFindingTypeStatsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -103,6 +125,7 @@ private ListFindingTypeStatsRequest(
    * 
* * string parent = 1; + * * @return The parent. */ @java.lang.Override @@ -111,14 +134,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -126,16 +150,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 1; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -144,6 +167,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -180,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest other = (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) obj; + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest other = + (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,134 +231,145 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.class, + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,14 +379,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest + .getDefaultInstance(); } @java.lang.Override @@ -366,7 +402,8 @@ public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest result = new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest(this); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest result = + new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -376,46 +413,51 @@ public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -439,7 +481,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,6 +495,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -458,13 +504,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -473,6 +519,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -480,15 +528,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -496,6 +543,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -503,20 +552,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 1; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -524,15 +575,18 @@ public Builder setParent(
      * 
* * string parent = 1; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -540,23 +594,23 @@ public Builder clearParent() {
      * 
* * string parent = 1; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,30 +620,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) - private static final com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest(); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -601,9 +657,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java index d00ea56d..d75bddba 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListFindingTypeStatsRequestOrBuilder extends +public interface ListFindingTypeStatsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -15,10 +33,13 @@ public interface ListFindingTypeStatsRequestOrBuilder extends
    * 
* * string parent = 1; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -26,8 +47,8 @@ public interface ListFindingTypeStatsRequestOrBuilder extends
    * 
* * string parent = 1; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java index 11a5f4fa..adda8b2d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Response for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse} */ -public final class ListFindingTypeStatsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingTypeStatsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) ListFindingTypeStatsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsResponse.newBuilder() to construct. private ListFindingTypeStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingTypeStatsResponse() { findingTypeStats_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingTypeStatsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingTypeStatsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private ListFindingTypeStatsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findingTypeStats_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1.FindingTypeStats>(); + mutable_bitField0_ |= 0x00000001; + } + findingTypeStats_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1.FindingTypeStats.parser(), + extensionRegistry)); + break; } - findingTypeStats_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1.FindingTypeStats.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private ListFindingTypeStatsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); @@ -87,80 +108,100 @@ private ListFindingTypeStatsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.Builder.class); } public static final int FINDING_TYPE_STATS_FIELD_NUMBER = 1; private java.util.List findingTypeStats_; /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ @java.lang.Override - public java.util.List getFindingTypeStatsList() { + public java.util.List + getFindingTypeStatsList() { return findingTypeStats_; } /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getFindingTypeStatsOrBuilderList() { return findingTypeStats_; } /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ @java.lang.Override public int getFindingTypeStatsCount() { return findingTypeStats_.size(); } /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.FindingTypeStats getFindingTypeStats(int index) { return findingTypeStats_.get(index); } /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder + getFindingTypeStatsOrBuilder(int index) { return findingTypeStats_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < findingTypeStats_.size(); i++) { output.writeMessage(1, findingTypeStats_.get(i)); } @@ -187,8 +227,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findingTypeStats_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, findingTypeStats_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findingTypeStats_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +237,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse other = (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) obj; + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse other = + (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) obj; - if (!getFindingTypeStatsList() - .equals(other.getFindingTypeStatsList())) return false; + if (!getFindingTypeStatsList().equals(other.getFindingTypeStatsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,135 +267,147 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.class, + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFindingTypeStatsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,14 +421,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse + .getDefaultInstance(); } @java.lang.Override @@ -391,7 +444,8 @@ public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse build @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse result = new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse(this); + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse result = + new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse(this); int from_bitField0_ = bitField0_; if (findingTypeStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,46 +464,51 @@ public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse other) { + if (other + == com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse + .getDefaultInstance()) return this; if (findingTypeStatsBuilder_ == null) { if (!other.findingTypeStats_.isEmpty()) { if (findingTypeStats_.isEmpty()) { @@ -468,9 +527,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingTypeS findingTypeStatsBuilder_ = null; findingTypeStats_ = other.findingTypeStats_; bitField0_ = (bitField0_ & ~0x00000001); - findingTypeStatsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFindingTypeStatsFieldBuilder() : null; + findingTypeStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFindingTypeStatsFieldBuilder() + : null; } else { findingTypeStatsBuilder_.addAllMessages(other.findingTypeStats_); } @@ -495,7 +555,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,28 +566,39 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List findingTypeStats_ = - java.util.Collections.emptyList(); + private java.util.List + findingTypeStats_ = java.util.Collections.emptyList(); + private void ensureFindingTypeStatsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = new java.util.ArrayList(findingTypeStats_); + findingTypeStats_ = + new java.util.ArrayList( + findingTypeStats_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.FindingTypeStats, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder> findingTypeStatsBuilder_; + com.google.cloud.websecurityscanner.v1.FindingTypeStats, + com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, + com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder> + findingTypeStatsBuilder_; /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ - public java.util.List getFindingTypeStatsList() { + public java.util.List + getFindingTypeStatsList() { if (findingTypeStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(findingTypeStats_); } else { @@ -533,11 +606,14 @@ public java.util.List g } } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ public int getFindingTypeStatsCount() { if (findingTypeStatsBuilder_ == null) { @@ -547,11 +623,14 @@ public int getFindingTypeStatsCount() { } } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ public com.google.cloud.websecurityscanner.v1.FindingTypeStats getFindingTypeStats(int index) { if (findingTypeStatsBuilder_ == null) { @@ -561,11 +640,14 @@ public com.google.cloud.websecurityscanner.v1.FindingTypeStats getFindingTypeSta } } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ public Builder setFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1.FindingTypeStats value) { @@ -582,14 +664,18 @@ public Builder setFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ public Builder setFindingTypeStats( - int index, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.set(index, builderForValue.build()); @@ -600,13 +686,17 @@ public Builder setFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ - public Builder addFindingTypeStats(com.google.cloud.websecurityscanner.v1.FindingTypeStats value) { + public Builder addFindingTypeStats( + com.google.cloud.websecurityscanner.v1.FindingTypeStats value) { if (findingTypeStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -620,11 +710,14 @@ public Builder addFindingTypeStats(com.google.cloud.websecurityscanner.v1.Findin return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ public Builder addFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1.FindingTypeStats value) { @@ -641,11 +734,14 @@ public Builder addFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ public Builder addFindingTypeStats( com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder builderForValue) { @@ -659,14 +755,18 @@ public Builder addFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ public Builder addFindingTypeStats( - int index, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.add(index, builderForValue.build()); @@ -677,18 +777,21 @@ public Builder addFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ public Builder addAllFindingTypeStats( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, findingTypeStats_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findingTypeStats_); onChanged(); } else { findingTypeStatsBuilder_.addAllMessages(values); @@ -696,11 +799,14 @@ public Builder addAllFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ public Builder clearFindingTypeStats() { if (findingTypeStatsBuilder_ == null) { @@ -713,11 +819,14 @@ public Builder clearFindingTypeStats() { return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ public Builder removeFindingTypeStats(int index) { if (findingTypeStatsBuilder_ == null) { @@ -730,39 +839,50 @@ public Builder removeFindingTypeStats(int index) { return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ - public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder getFindingTypeStatsBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder + getFindingTypeStatsBuilder(int index) { return getFindingTypeStatsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ - public com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder + getFindingTypeStatsOrBuilder(int index) { if (findingTypeStatsBuilder_ == null) { - return findingTypeStats_.get(index); } else { + return findingTypeStats_.get(index); + } else { return findingTypeStatsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ - public java.util.List - getFindingTypeStatsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder> + getFindingTypeStatsOrBuilderList() { if (findingTypeStatsBuilder_ != null) { return findingTypeStatsBuilder_.getMessageOrBuilderList(); } else { @@ -770,45 +890,62 @@ public com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder getFindi } } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ - public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder addFindingTypeStatsBuilder() { - return getFindingTypeStatsFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder + addFindingTypeStatsBuilder() { + return getFindingTypeStatsFieldBuilder() + .addBuilder(com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance()); } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ - public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder addFindingTypeStatsBuilder( - int index) { - return getFindingTypeStatsFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder + addFindingTypeStatsBuilder(int index) { + return getFindingTypeStatsFieldBuilder() + .addBuilder( + index, com.google.cloud.websecurityscanner.v1.FindingTypeStats.getDefaultInstance()); } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ - public java.util.List - getFindingTypeStatsBuilderList() { + public java.util.List + getFindingTypeStatsBuilderList() { return getFindingTypeStatsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.FindingTypeStats, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder> + com.google.cloud.websecurityscanner.v1.FindingTypeStats, + com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, + com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder> getFindingTypeStatsFieldBuilder() { if (findingTypeStatsBuilder_ == null) { - findingTypeStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.FindingTypeStats, com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder>( + findingTypeStatsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.FindingTypeStats, + com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder, + com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder>( findingTypeStats_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -817,9 +954,9 @@ public com.google.cloud.websecurityscanner.v1.FindingTypeStats.Builder addFindin } return findingTypeStatsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,30 +966,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) - private static final com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse(); } - public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -864,9 +1003,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java index 7a7d5d41..26d4bdd6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java @@ -1,52 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListFindingTypeStatsResponseOrBuilder extends +public interface ListFindingTypeStatsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ - java.util.List - getFindingTypeStatsList(); + java.util.List getFindingTypeStatsList(); /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ com.google.cloud.websecurityscanner.v1.FindingTypeStats getFindingTypeStats(int index); /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ int getFindingTypeStatsCount(); /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ - java.util.List + java.util.List getFindingTypeStatsOrBuilderList(); /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1.FindingTypeStats finding_type_stats = 1; + * */ com.google.cloud.websecurityscanner.v1.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( int index); diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java index e494034d..31fca16b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Request for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingsRequest} */ -public final class ListFindingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListFindingsRequest) ListFindingsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingsRequest.newBuilder() to construct. private ListFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingsRequest() { parent_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListFindingsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 32: { + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 32: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +112,33 @@ private ListFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, + com.google.cloud.websecurityscanner.v1.ListFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -122,6 +146,7 @@ private ListFindingsRequest(
    * 
* * string parent = 1; + * * @return The parent. */ @java.lang.Override @@ -130,14 +155,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -145,16 +171,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 1; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -165,6 +190,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -173,6 +200,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -181,14 +209,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -197,16 +226,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -217,6 +245,8 @@ public java.lang.String getFilter() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -224,6 +254,7 @@ public java.lang.String getFilter() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -232,14 +263,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -247,16 +279,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -267,6 +298,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** + * + * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -274,6 +307,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -282,6 +316,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,8 +328,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -326,8 +360,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -337,21 +370,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListFindingsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListFindingsRequest other = (com.google.cloud.websecurityscanner.v1.ListFindingsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + com.google.cloud.websecurityscanner.v1.ListFindingsRequest other = + (com.google.cloud.websecurityscanner.v1.ListFindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -377,117 +407,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListFindingsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ListFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListFindingsRequest) com.google.cloud.websecurityscanner.v1.ListFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingsRequest.class, + com.google.cloud.websecurityscanner.v1.ListFindingsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListFindingsRequest.newBuilder() @@ -495,16 +535,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +559,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; } @java.lang.Override @@ -541,7 +580,8 @@ public com.google.cloud.websecurityscanner.v1.ListFindingsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListFindingsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.ListFindingsRequest result = new com.google.cloud.websecurityscanner.v1.ListFindingsRequest(this); + com.google.cloud.websecurityscanner.v1.ListFindingsRequest result = + new com.google.cloud.websecurityscanner.v1.ListFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageToken_ = pageToken_; @@ -554,38 +594,39 @@ public com.google.cloud.websecurityscanner.v1.ListFindingsRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListFindingsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingsRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingsRequest) other); } else { super.mergeFrom(other); return this; @@ -593,7 +634,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.ListFindingsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1.ListFindingsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -628,7 +670,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ListFindingsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.ListFindingsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -640,6 +683,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -647,13 +692,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -662,6 +707,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -669,15 +716,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -685,6 +731,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -692,20 +740,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 1; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -713,15 +763,18 @@ public Builder setParent(
      * 
* * string parent = 1; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -729,16 +782,16 @@ public Builder clearParent() {
      * 
* * string parent = 1; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -746,6 +799,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -754,13 +809,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -769,6 +824,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -777,15 +834,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -793,6 +849,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -801,20 +859,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -823,15 +883,18 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -840,16 +903,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -857,6 +920,8 @@ public Builder setFilterBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -864,13 +929,13 @@ public Builder setFilterBytes(
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -879,6 +944,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -886,15 +953,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -902,6 +968,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -909,20 +977,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -930,15 +1000,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -946,23 +1019,25 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -970,6 +1045,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -977,6 +1053,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -984,16 +1062,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 4; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1001,17 +1082,18 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1021,12 +1103,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListFindingsRequest) private static final com.google.cloud.websecurityscanner.v1.ListFindingsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListFindingsRequest(); } @@ -1035,16 +1117,16 @@ public static com.google.cloud.websecurityscanner.v1.ListFindingsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1059,6 +1141,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java index 7e5d643b..c15c0164 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListFindingsRequestOrBuilder extends +public interface ListFindingsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListFindingsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -15,10 +33,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string parent = 1; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -26,12 +47,14 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string parent = 1; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -40,10 +63,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -52,12 +78,14 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string filter = 2; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -65,10 +93,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -76,12 +107,14 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -89,6 +122,7 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java index 40fd04b2..c21c582c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Response for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingsResponse} */ -public final class ListFindingsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListFindingsResponse) ListFindingsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingsResponse.newBuilder() to construct. private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingsResponse() { findings_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListFindingsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findings_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findings_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + findings_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1.Finding.parser(), extensionRegistry)); + break; } - findings_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1.Finding.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -94,22 +114,27 @@ private ListFindingsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, + com.google.cloud.websecurityscanner.v1.ListFindingsResponse.Builder.class); } public static final int FINDINGS_FIELD_NUMBER = 1; private java.util.List findings_; /** + * + * *
    * The list of Findings returned.
    * 
@@ -121,6 +146,8 @@ public java.util.List getFinding return findings_; } /** + * + * *
    * The list of Findings returned.
    * 
@@ -128,11 +155,13 @@ public java.util.List getFinding * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFindingsOrBuilderList() { return findings_; } /** + * + * *
    * The list of Findings returned.
    * 
@@ -144,6 +173,8 @@ public int getFindingsCount() { return findings_.size(); } /** + * + * *
    * The list of Findings returned.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.websecurityscanner.v1.Finding getFindings(int index) { return findings_.get(index); } /** + * + * *
    * The list of Findings returned.
    * 
@@ -162,20 +195,22 @@ public com.google.cloud.websecurityscanner.v1.Finding getFindings(int index) { * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder(int index) { return findings_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +219,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +251,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < findings_.size(); i++) { output.writeMessage(1, findings_.get(i)); } @@ -245,8 +280,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, findings_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +293,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListFindingsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListFindingsResponse other = (com.google.cloud.websecurityscanner.v1.ListFindingsResponse) obj; + com.google.cloud.websecurityscanner.v1.ListFindingsResponse other = + (com.google.cloud.websecurityscanner.v1.ListFindingsResponse) obj; - if (!getFindingsList() - .equals(other.getFindingsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getFindingsList().equals(other.getFindingsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +326,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListFindingsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ListFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListFindingsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListFindingsResponse) com.google.cloud.websecurityscanner.v1.ListFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListFindingsResponse.class, + com.google.cloud.websecurityscanner.v1.ListFindingsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListFindingsResponse.newBuilder() @@ -411,17 +454,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFindingsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; } @java.lang.Override @@ -458,7 +501,8 @@ public com.google.cloud.websecurityscanner.v1.ListFindingsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListFindingsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1.ListFindingsResponse result = new com.google.cloud.websecurityscanner.v1.ListFindingsResponse(this); + com.google.cloud.websecurityscanner.v1.ListFindingsResponse result = + new com.google.cloud.websecurityscanner.v1.ListFindingsResponse(this); int from_bitField0_ = bitField0_; if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +522,39 @@ public com.google.cloud.websecurityscanner.v1.ListFindingsResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListFindingsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingsResponse)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListFindingsResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +562,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1.ListFindingsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1.ListFindingsResponse.getDefaultInstance()) + return this; if (findingsBuilder_ == null) { if (!other.findings_.isEmpty()) { if (findings_.isEmpty()) { @@ -536,9 +582,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListFindingsResp findingsBuilder_ = null; findings_ = other.findings_; bitField0_ = (bitField0_ & ~0x00000001); - findingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFindingsFieldBuilder() : null; + findingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFindingsFieldBuilder() + : null; } else { findingsBuilder_.addAllMessages(other.findings_); } @@ -567,7 +614,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ListFindingsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.ListFindingsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +624,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List findings_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFindingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findings_ = new java.util.ArrayList(findings_); + findings_ = + new java.util.ArrayList(findings_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Finding, com.google.cloud.websecurityscanner.v1.Finding.Builder, com.google.cloud.websecurityscanner.v1.FindingOrBuilder> findingsBuilder_; + com.google.cloud.websecurityscanner.v1.Finding, + com.google.cloud.websecurityscanner.v1.Finding.Builder, + com.google.cloud.websecurityscanner.v1.FindingOrBuilder> + findingsBuilder_; /** + * + * *
      * The list of Findings returned.
      * 
@@ -605,6 +661,8 @@ public java.util.List getFinding } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -619,6 +677,8 @@ public int getFindingsCount() { } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -633,14 +693,15 @@ public com.google.cloud.websecurityscanner.v1.Finding getFindings(int index) { } } /** + * + * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public Builder setFindings( - int index, com.google.cloud.websecurityscanner.v1.Finding value) { + public Builder setFindings(int index, com.google.cloud.websecurityscanner.v1.Finding value) { if (findingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +715,8 @@ public Builder setFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -672,6 +735,8 @@ public Builder setFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -692,14 +757,15 @@ public Builder addFindings(com.google.cloud.websecurityscanner.v1.Finding value) return this; } /** + * + * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public Builder addFindings( - int index, com.google.cloud.websecurityscanner.v1.Finding value) { + public Builder addFindings(int index, com.google.cloud.websecurityscanner.v1.Finding value) { if (findingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,6 +779,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -731,6 +799,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -749,6 +819,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -759,8 +831,7 @@ public Builder addAllFindings( java.lang.Iterable values) { if (findingsBuilder_ == null) { ensureFindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, findings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findings_); onChanged(); } else { findingsBuilder_.addAllMessages(values); @@ -768,6 +839,8 @@ public Builder addAllFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -785,6 +858,8 @@ public Builder clearFindings() { return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -802,39 +877,44 @@ public Builder removeFindings(int index) { return this; } /** + * + * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public com.google.cloud.websecurityscanner.v1.Finding.Builder getFindingsBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.Finding.Builder getFindingsBuilder(int index) { return getFindingsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder(int index) { if (findingsBuilder_ == null) { - return findings_.get(index); } else { + return findings_.get(index); + } else { return findingsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public java.util.List - getFindingsOrBuilderList() { + public java.util.List + getFindingsOrBuilderList() { if (findingsBuilder_ != null) { return findingsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +922,8 @@ public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuil } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -849,42 +931,48 @@ public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuil * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ public com.google.cloud.websecurityscanner.v1.Finding.Builder addFindingsBuilder() { - return getFindingsFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance()); + return getFindingsFieldBuilder() + .addBuilder(com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance()); } /** + * + * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public com.google.cloud.websecurityscanner.v1.Finding.Builder addFindingsBuilder( - int index) { - return getFindingsFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.Finding.Builder addFindingsBuilder(int index) { + return getFindingsFieldBuilder() + .addBuilder(index, com.google.cloud.websecurityscanner.v1.Finding.getDefaultInstance()); } /** + * + * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - public java.util.List - getFindingsBuilderList() { + public java.util.List + getFindingsBuilderList() { return getFindingsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Finding, com.google.cloud.websecurityscanner.v1.Finding.Builder, com.google.cloud.websecurityscanner.v1.FindingOrBuilder> + com.google.cloud.websecurityscanner.v1.Finding, + com.google.cloud.websecurityscanner.v1.Finding.Builder, + com.google.cloud.websecurityscanner.v1.FindingOrBuilder> getFindingsFieldBuilder() { if (findingsBuilder_ == null) { - findingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Finding, com.google.cloud.websecurityscanner.v1.Finding.Builder, com.google.cloud.websecurityscanner.v1.FindingOrBuilder>( - findings_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + findingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.Finding, + com.google.cloud.websecurityscanner.v1.Finding.Builder, + com.google.cloud.websecurityscanner.v1.FindingOrBuilder>( + findings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); findings_ = null; } return findingsBuilder_; @@ -892,19 +980,21 @@ public com.google.cloud.websecurityscanner.v1.Finding.Builder addFindingsBuilder private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1003,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1026,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1100,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListFindingsResponse) private static final com.google.cloud.websecurityscanner.v1.ListFindingsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListFindingsResponse(); } @@ -1016,16 +1114,16 @@ public static com.google.cloud.websecurityscanner.v1.ListFindingsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1138,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java index c01bc8a1..84050db4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListFindingsResponseOrBuilder extends +public interface ListFindingsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListFindingsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - java.util.List - getFindingsList(); + java.util.List getFindingsList(); /** + * + * *
    * The list of Findings returned.
    * 
@@ -25,6 +44,8 @@ public interface ListFindingsResponseOrBuilder extends */ com.google.cloud.websecurityscanner.v1.Finding getFindings(int index); /** + * + * *
    * The list of Findings returned.
    * 
@@ -33,43 +54,51 @@ public interface ListFindingsResponseOrBuilder extends */ int getFindingsCount(); /** + * + * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - java.util.List + java.util.List getFindingsOrBuilderList(); /** + * + * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.Finding findings = 1; */ - com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder( - int index); + com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java index e4e99721..af5313b8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Request for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanConfigsRequest} */ -public final class ListScanConfigsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListScanConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListScanConfigsRequest) ListScanConfigsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListScanConfigsRequest.newBuilder() to construct. private ListScanConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListScanConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListScanConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListScanConfigsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListScanConfigsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,40 @@ private ListScanConfigsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* * string parent = 1; + * * @return The parent. */ @java.lang.Override @@ -122,30 +146,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* * string parent = 1; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,6 +180,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -163,6 +189,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -171,14 +198,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -186,16 +214,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -206,6 +233,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -213,6 +242,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -221,6 +251,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -259,8 +289,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -270,19 +299,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest other = (com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) obj; + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest other = + (com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,117 +333,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanConfigsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListScanConfigsRequest) com.google.cloud.websecurityscanner.v1.ListScanConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.class, + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.newBuilder() @@ -424,16 +461,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -447,13 +483,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.getDefaultInstance(); } @@ -468,7 +505,8 @@ public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest result = new com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest(this); + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest result = + new com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -480,38 +518,39 @@ public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) other); } else { super.mergeFrom(other); return this; @@ -519,7 +558,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -550,7 +591,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -562,19 +605,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* * string parent = 1; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -583,21 +628,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* * string parent = 1; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -605,57 +651,64 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* * string parent = 1; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* * string parent = 1; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* * string parent = 1; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -663,6 +716,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -670,13 +725,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -685,6 +740,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -692,15 +749,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -708,6 +764,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -715,20 +773,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -736,15 +796,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -752,23 +815,25 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -776,6 +841,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -783,6 +849,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -790,16 +858,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -807,17 +878,18 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -827,12 +899,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListScanConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListScanConfigsRequest) - private static final com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest(); } @@ -841,16 +914,16 @@ public static com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -865,6 +938,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java index 8f4b7503..5b17e58e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListScanConfigsRequestOrBuilder extends +public interface ListScanConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListScanConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* * string parent = 1; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* * string parent = 1; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -37,10 +60,13 @@ public interface ListScanConfigsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -48,12 +74,14 @@ public interface ListScanConfigsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -61,6 +89,7 @@ public interface ListScanConfigsRequestOrBuilder extends
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java index 2df50469..779fa701 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Response for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanConfigsResponse} */ -public final class ListScanConfigsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListScanConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListScanConfigsResponse) ListScanConfigsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListScanConfigsResponse.newBuilder() to construct. private ListScanConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListScanConfigsResponse() { scanConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListScanConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListScanConfigsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,33 @@ private ListScanConfigsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanConfigs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + scanConfigs_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), + extensionRegistry)); + break; } - scanConfigs_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +106,7 @@ private ListScanConfigsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); @@ -94,22 +115,27 @@ private ListScanConfigsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.Builder.class); } public static final int SCAN_CONFIGS_FIELD_NUMBER = 1; private java.util.List scanConfigs_; /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -121,6 +147,8 @@ public java.util.List getScan return scanConfigs_; } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -128,11 +156,13 @@ public java.util.List getScan * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanConfigsOrBuilderList() { return scanConfigs_; } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -144,6 +174,8 @@ public int getScanConfigsCount() { return scanConfigs_.size(); } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -155,6 +187,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfigs(int inde return scanConfigs_.get(index); } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -170,12 +204,15 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigs public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +221,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +253,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +265,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < scanConfigs_.size(); i++) { output.writeMessage(1, scanConfigs_.get(i)); } @@ -245,8 +282,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, scanConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +295,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse other = (com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) obj; + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse other = + (com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) obj; - if (!getScanConfigsList() - .equals(other.getScanConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getScanConfigsList().equals(other.getScanConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +328,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanConfigsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListScanConfigsResponse) com.google.cloud.websecurityscanner.v1.ListScanConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.class, + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.newBuilder() @@ -411,17 +456,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getScanConfigsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,13 +482,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.getDefaultInstance(); } @@ -458,7 +504,8 @@ public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse result = new com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse(this); + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse result = + new com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse(this); int from_bitField0_ = bitField0_; if (scanConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +525,39 @@ public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +565,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse.getDefaultInstance()) + return this; if (scanConfigsBuilder_ == null) { if (!other.scanConfigs_.isEmpty()) { if (scanConfigs_.isEmpty()) { @@ -536,9 +586,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanConfigsR scanConfigsBuilder_ = null; scanConfigs_ = other.scanConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - scanConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getScanConfigsFieldBuilder() : null; + scanConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getScanConfigsFieldBuilder() + : null; } else { scanConfigsBuilder_.addAllMessages(other.scanConfigs_); } @@ -567,7 +618,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +629,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List scanConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureScanConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = new java.util.ArrayList(scanConfigs_); + scanConfigs_ = + new java.util.ArrayList( + scanConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> scanConfigsBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig, + com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> + scanConfigsBuilder_; /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -605,6 +667,8 @@ public java.util.List getScan } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -619,6 +683,8 @@ public int getScanConfigsCount() { } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -633,6 +699,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfigs(int inde } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -654,6 +722,8 @@ public Builder setScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -672,6 +742,8 @@ public Builder setScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -692,6 +764,8 @@ public Builder addScanConfigs(com.google.cloud.websecurityscanner.v1.ScanConfig return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -713,6 +787,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -731,6 +807,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -749,6 +827,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -759,8 +839,7 @@ public Builder addAllScanConfigs( java.lang.Iterable values) { if (scanConfigsBuilder_ == null) { ensureScanConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, scanConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanConfigs_); onChanged(); } else { scanConfigsBuilder_.addAllMessages(values); @@ -768,6 +847,8 @@ public Builder addAllScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -785,6 +866,8 @@ public Builder clearScanConfigs() { return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -802,6 +885,8 @@ public Builder removeScanConfigs(int index) { return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -813,6 +898,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigsB return getScanConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -822,19 +909,22 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigsB public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigsOrBuilder( int index) { if (scanConfigsBuilder_ == null) { - return scanConfigs_.get(index); } else { + return scanConfigs_.get(index); + } else { return scanConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsOrBuilderList() { + public java.util.List + getScanConfigsOrBuilderList() { if (scanConfigsBuilder_ != null) { return scanConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +932,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigs } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -849,10 +941,12 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigs * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder addScanConfigsBuilder() { - return getScanConfigsFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder() + .addBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()); } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -861,30 +955,36 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder addScanConfigsB */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder addScanConfigsBuilder( int index) { - return getScanConfigsFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()); } /** + * + * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsBuilderList() { + public java.util.List + getScanConfigsBuilderList() { return getScanConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig, + com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> getScanConfigsFieldBuilder() { if (scanConfigsBuilder_ == null) { - scanConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>( - scanConfigs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + scanConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig, + com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>( + scanConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); scanConfigs_ = null; } return scanConfigsBuilder_; @@ -892,19 +992,21 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder addScanConfigsB private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1015,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1038,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1112,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListScanConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListScanConfigsResponse) - private static final com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse(); } - public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1149,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java index 8292317f..37f677ab 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListScanConfigsResponseOrBuilder extends +public interface ListScanConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListScanConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ - java.util.List - getScanConfigsList(); + java.util.List getScanConfigsList(); /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -25,6 +44,8 @@ public interface ListScanConfigsResponseOrBuilder extends */ com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfigs(int index); /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -33,43 +54,51 @@ public interface ListScanConfigsResponseOrBuilder extends */ int getScanConfigsCount(); /** + * + * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ - java.util.List + java.util.List getScanConfigsOrBuilderList(); /** + * + * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanConfig scan_configs = 1; */ - com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigsOrBuilder( - int index); + com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java index efd0dc93..f6629344 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Request for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanRunsRequest} */ -public final class ListScanRunsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListScanRunsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListScanRunsRequest) ListScanRunsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListScanRunsRequest.newBuilder() to construct. private ListScanRunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListScanRunsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListScanRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanRunsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListScanRunsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListScanRunsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,40 @@ private ListScanRunsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string parent = 1; + * * @return The parent. */ @java.lang.Override @@ -122,30 +146,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string parent = 1; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,6 +180,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -163,6 +189,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -171,14 +198,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -186,16 +214,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -206,6 +233,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -213,6 +242,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -221,6 +251,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -259,8 +289,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -270,19 +299,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListScanRunsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest other = (com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) obj; + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest other = + (com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,117 +333,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanRunsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListScanRunsRequest) com.google.cloud.websecurityscanner.v1.ListScanRunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.class, + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.newBuilder() @@ -424,16 +461,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -447,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; } @java.lang.Override @@ -468,7 +504,8 @@ public com.google.cloud.websecurityscanner.v1.ListScanRunsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListScanRunsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.ListScanRunsRequest result = new com.google.cloud.websecurityscanner.v1.ListScanRunsRequest(this); + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest result = + new com.google.cloud.websecurityscanner.v1.ListScanRunsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -480,38 +517,39 @@ public com.google.cloud.websecurityscanner.v1.ListScanRunsRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanRunsRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) other); } else { super.mergeFrom(other); return this; @@ -519,7 +557,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanRunsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1.ListScanRunsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -550,7 +589,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.ListScanRunsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -562,19 +602,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string parent = 1; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -583,21 +625,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string parent = 1; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -605,57 +648,64 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string parent = 1; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string parent = 1; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string parent = 1; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -663,6 +713,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -670,13 +722,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -685,6 +737,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -692,15 +746,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -708,6 +761,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -715,20 +770,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -736,15 +793,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -752,23 +812,25 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -776,6 +838,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -783,6 +846,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -790,16 +855,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -807,17 +875,18 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -827,12 +896,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListScanRunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListScanRunsRequest) private static final com.google.cloud.websecurityscanner.v1.ListScanRunsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListScanRunsRequest(); } @@ -841,16 +910,16 @@ public static com.google.cloud.websecurityscanner.v1.ListScanRunsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -865,6 +934,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListScanRunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java index a460a3f6..bc5e59d7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListScanRunsRequestOrBuilder extends +public interface ListScanRunsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListScanRunsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string parent = 1; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string parent = 1; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -37,10 +60,13 @@ public interface ListScanRunsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -48,12 +74,14 @@ public interface ListScanRunsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -61,6 +89,7 @@ public interface ListScanRunsRequestOrBuilder extends
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java index 26db2ce2..2525eb9f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Response for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanRunsResponse} */ -public final class ListScanRunsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListScanRunsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ListScanRunsResponse) ListScanRunsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListScanRunsResponse.newBuilder() to construct. private ListScanRunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListScanRunsResponse() { scanRuns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListScanRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanRunsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListScanRunsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListScanRunsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanRuns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanRuns_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + scanRuns_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1.ScanRun.parser(), extensionRegistry)); + break; } - scanRuns_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1.ScanRun.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListScanRunsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); @@ -94,22 +114,27 @@ private ListScanRunsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.Builder.class); } public static final int SCAN_RUNS_FIELD_NUMBER = 1; private java.util.List scanRuns_; /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -121,6 +146,8 @@ public java.util.List getScanRun return scanRuns_; } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -128,11 +155,13 @@ public java.util.List getScanRun * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanRunsOrBuilderList() { return scanRuns_; } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -144,6 +173,8 @@ public int getScanRunsCount() { return scanRuns_.size(); } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.websecurityscanner.v1.ScanRun getScanRuns(int index) { return scanRuns_.get(index); } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -162,20 +195,22 @@ public com.google.cloud.websecurityscanner.v1.ScanRun getScanRuns(int index) { * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder(int index) { return scanRuns_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +219,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +251,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < scanRuns_.size(); i++) { output.writeMessage(1, scanRuns_.get(i)); } @@ -245,8 +280,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanRuns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, scanRuns_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanRuns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +293,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ListScanRunsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse other = (com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) obj; + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse other = + (com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) obj; - if (!getScanRunsList() - .equals(other.getScanRunsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getScanRunsList().equals(other.getScanRunsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +326,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ListScanRunsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ListScanRunsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ListScanRunsResponse) com.google.cloud.websecurityscanner.v1.ListScanRunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.class, + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.newBuilder() @@ -411,17 +454,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getScanRunsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; } @java.lang.Override @@ -458,7 +501,8 @@ public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse result = new com.google.cloud.websecurityscanner.v1.ListScanRunsResponse(this); + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse result = + new com.google.cloud.websecurityscanner.v1.ListScanRunsResponse(this); int from_bitField0_ = bitField0_; if (scanRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +522,39 @@ public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanRunsResponse)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +562,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanRunsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1.ListScanRunsResponse.getDefaultInstance()) + return this; if (scanRunsBuilder_ == null) { if (!other.scanRuns_.isEmpty()) { if (scanRuns_.isEmpty()) { @@ -536,9 +582,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ListScanRunsResp scanRunsBuilder_ = null; scanRuns_ = other.scanRuns_; bitField0_ = (bitField0_ & ~0x00000001); - scanRunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getScanRunsFieldBuilder() : null; + scanRunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getScanRunsFieldBuilder() + : null; } else { scanRunsBuilder_.addAllMessages(other.scanRuns_); } @@ -567,7 +614,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.ListScanRunsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +624,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List scanRuns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureScanRunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanRuns_ = new java.util.ArrayList(scanRuns_); + scanRuns_ = + new java.util.ArrayList(scanRuns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRun, com.google.cloud.websecurityscanner.v1.ScanRun.Builder, com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder> scanRunsBuilder_; + com.google.cloud.websecurityscanner.v1.ScanRun, + com.google.cloud.websecurityscanner.v1.ScanRun.Builder, + com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder> + scanRunsBuilder_; /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -605,6 +661,8 @@ public java.util.List getScanRun } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -619,6 +677,8 @@ public int getScanRunsCount() { } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -633,14 +693,15 @@ public com.google.cloud.websecurityscanner.v1.ScanRun getScanRuns(int index) { } } /** + * + * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public Builder setScanRuns( - int index, com.google.cloud.websecurityscanner.v1.ScanRun value) { + public Builder setScanRuns(int index, com.google.cloud.websecurityscanner.v1.ScanRun value) { if (scanRunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +715,8 @@ public Builder setScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -672,6 +735,8 @@ public Builder setScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -692,14 +757,15 @@ public Builder addScanRuns(com.google.cloud.websecurityscanner.v1.ScanRun value) return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public Builder addScanRuns( - int index, com.google.cloud.websecurityscanner.v1.ScanRun value) { + public Builder addScanRuns(int index, com.google.cloud.websecurityscanner.v1.ScanRun value) { if (scanRunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,6 +779,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -731,6 +799,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -749,6 +819,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -759,8 +831,7 @@ public Builder addAllScanRuns( java.lang.Iterable values) { if (scanRunsBuilder_ == null) { ensureScanRunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, scanRuns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanRuns_); onChanged(); } else { scanRunsBuilder_.addAllMessages(values); @@ -768,6 +839,8 @@ public Builder addAllScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -785,6 +858,8 @@ public Builder clearScanRuns() { return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -802,39 +877,44 @@ public Builder removeScanRuns(int index) { return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public com.google.cloud.websecurityscanner.v1.ScanRun.Builder getScanRunsBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.ScanRun.Builder getScanRunsBuilder(int index) { return getScanRunsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder(int index) { if (scanRunsBuilder_ == null) { - return scanRuns_.get(index); } else { + return scanRuns_.get(index); + } else { return scanRunsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsOrBuilderList() { + public java.util.List + getScanRunsOrBuilderList() { if (scanRunsBuilder_ != null) { return scanRunsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +922,8 @@ public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuil } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -849,42 +931,48 @@ public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuil * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ public com.google.cloud.websecurityscanner.v1.ScanRun.Builder addScanRunsBuilder() { - return getScanRunsFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance()); + return getScanRunsFieldBuilder() + .addBuilder(com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance()); } /** + * + * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public com.google.cloud.websecurityscanner.v1.ScanRun.Builder addScanRunsBuilder( - int index) { - return getScanRunsFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.ScanRun.Builder addScanRunsBuilder(int index) { + return getScanRunsFieldBuilder() + .addBuilder(index, com.google.cloud.websecurityscanner.v1.ScanRun.getDefaultInstance()); } /** + * + * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsBuilderList() { + public java.util.List + getScanRunsBuilderList() { return getScanRunsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRun, com.google.cloud.websecurityscanner.v1.ScanRun.Builder, com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanRun, + com.google.cloud.websecurityscanner.v1.ScanRun.Builder, + com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder> getScanRunsFieldBuilder() { if (scanRunsBuilder_ == null) { - scanRunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRun, com.google.cloud.websecurityscanner.v1.ScanRun.Builder, com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder>( - scanRuns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + scanRunsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanRun, + com.google.cloud.websecurityscanner.v1.ScanRun.Builder, + com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder>( + scanRuns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); scanRuns_ = null; } return scanRunsBuilder_; @@ -892,19 +980,21 @@ public com.google.cloud.websecurityscanner.v1.ScanRun.Builder addScanRunsBuilder private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1003,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1026,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1100,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ListScanRunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ListScanRunsResponse) private static final com.google.cloud.websecurityscanner.v1.ListScanRunsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ListScanRunsResponse(); } @@ -1016,16 +1114,16 @@ public static com.google.cloud.websecurityscanner.v1.ListScanRunsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1138,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java index d453492c..d4e4c85b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface ListScanRunsResponseOrBuilder extends +public interface ListScanRunsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ListScanRunsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - java.util.List - getScanRunsList(); + java.util.List getScanRunsList(); /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -25,6 +44,8 @@ public interface ListScanRunsResponseOrBuilder extends */ com.google.cloud.websecurityscanner.v1.ScanRun getScanRuns(int index); /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -33,43 +54,51 @@ public interface ListScanRunsResponseOrBuilder extends */ int getScanRunsCount(); /** + * + * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - java.util.List + java.util.List getScanRunsOrBuilderList(); /** + * + * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1.ScanRun scan_runs = 1; */ - com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder( - int index); + com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java index 4e919f8a..e0c24a29 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Information reported for an outdated library.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.OutdatedLibrary} */ -public final class OutdatedLibrary extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutdatedLibrary extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.OutdatedLibrary) OutdatedLibraryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutdatedLibrary.newBuilder() to construct. private OutdatedLibrary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OutdatedLibrary() { libraryName_ = ""; version_ = ""; @@ -27,16 +45,15 @@ private OutdatedLibrary() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutdatedLibrary(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OutdatedLibrary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,34 +73,37 @@ private OutdatedLibrary( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - libraryName_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + libraryName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + version_ = s; + break; } - learnMoreUrls_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + learnMoreUrls_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,8 +111,7 @@ private OutdatedLibrary( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = learnMoreUrls_.getUnmodifiableView(); @@ -101,27 +120,33 @@ private OutdatedLibrary( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1.OutdatedLibrary.class, + com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder.class); } public static final int LIBRARY_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object libraryName_; /** + * + * *
    * The name of the outdated library.
    * 
* * string library_name = 1; + * * @return The libraryName. */ @java.lang.Override @@ -130,29 +155,29 @@ public java.lang.String getLibraryName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; } } /** + * + * *
    * The name of the outdated library.
    * 
* * string library_name = 1; + * * @return The bytes for libraryName. */ @java.lang.Override - public com.google.protobuf.ByteString - getLibraryNameBytes() { + public com.google.protobuf.ByteString getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); libraryName_ = b; return b; } else { @@ -163,11 +188,14 @@ public java.lang.String getLibraryName() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** + * + * *
    * The version number.
    * 
* * string version = 2; + * * @return The version. */ @java.lang.Override @@ -176,29 +204,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * The version number.
    * 
* * string version = 2; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -209,34 +237,42 @@ public java.lang.String getVersion() { public static final int LEARN_MORE_URLS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList learnMoreUrls_; /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList - getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { return learnMoreUrls_; } /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -244,20 +280,23 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString - getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,8 +308,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(libraryName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, libraryName_); } @@ -311,19 +349,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.OutdatedLibrary)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.OutdatedLibrary other = (com.google.cloud.websecurityscanner.v1.OutdatedLibrary) obj; + com.google.cloud.websecurityscanner.v1.OutdatedLibrary other = + (com.google.cloud.websecurityscanner.v1.OutdatedLibrary) obj; - if (!getLibraryName() - .equals(other.getLibraryName())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getLearnMoreUrlsList() - .equals(other.getLearnMoreUrlsList())) return false; + if (!getLibraryName().equals(other.getLibraryName())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getLearnMoreUrlsList().equals(other.getLearnMoreUrlsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -349,117 +385,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.OutdatedLibrary prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.OutdatedLibrary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information reported for an outdated library.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.OutdatedLibrary} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.OutdatedLibrary) com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1.OutdatedLibrary.class, + com.google.cloud.websecurityscanner.v1.OutdatedLibrary.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.OutdatedLibrary.newBuilder() @@ -467,16 +513,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +535,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_OutdatedLibrary_descriptor; } @java.lang.Override @@ -511,7 +556,8 @@ public com.google.cloud.websecurityscanner.v1.OutdatedLibrary build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.OutdatedLibrary buildPartial() { - com.google.cloud.websecurityscanner.v1.OutdatedLibrary result = new com.google.cloud.websecurityscanner.v1.OutdatedLibrary(this); + com.google.cloud.websecurityscanner.v1.OutdatedLibrary result = + new com.google.cloud.websecurityscanner.v1.OutdatedLibrary(this); int from_bitField0_ = bitField0_; result.libraryName_ = libraryName_; result.version_ = version_; @@ -528,38 +574,39 @@ public com.google.cloud.websecurityscanner.v1.OutdatedLibrary buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.OutdatedLibrary) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.OutdatedLibrary)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.OutdatedLibrary) other); } else { super.mergeFrom(other); return this; @@ -567,7 +614,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.OutdatedLibrary other) { - if (other == com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance()) + return this; if (!other.getLibraryName().isEmpty()) { libraryName_ = other.libraryName_; onChanged(); @@ -605,7 +653,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.OutdatedLibrary) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.OutdatedLibrary) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -614,22 +663,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object libraryName_ = ""; /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @return The libraryName. */ public java.lang.String getLibraryName() { java.lang.Object ref = libraryName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; @@ -638,20 +690,21 @@ public java.lang.String getLibraryName() { } } /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @return The bytes for libraryName. */ - public com.google.protobuf.ByteString - getLibraryNameBytes() { + public com.google.protobuf.ByteString getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); libraryName_ = b; return b; } else { @@ -659,54 +712,61 @@ public java.lang.String getLibraryName() { } } /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @param value The libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryName( - java.lang.String value) { + public Builder setLibraryName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + libraryName_ = value; onChanged(); return this; } /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @return This builder for chaining. */ public Builder clearLibraryName() { - + libraryName_ = getDefaultInstance().getLibraryName(); onChanged(); return this; } /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @param value The bytes for libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryNameBytes( - com.google.protobuf.ByteString value) { + public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + libraryName_ = value; onChanged(); return this; @@ -714,18 +774,20 @@ public Builder setLibraryNameBytes( private java.lang.Object version_ = ""; /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -734,20 +796,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -755,95 +818,112 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList learnMoreUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLearnMoreUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(learnMoreUrls_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList - getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { return learnMoreUrls_.getUnmodifiableView(); } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -851,80 +931,90 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString - getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param index The index to set the value at. * @param value The learnMoreUrls to set. * @return This builder for chaining. */ - public Builder setLearnMoreUrls( - int index, java.lang.String value) { + public Builder setLearnMoreUrls(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.set(index, value); onChanged(); return this; } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param value The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrls( - java.lang.String value) { + public Builder addLearnMoreUrls(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param values The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addAllLearnMoreUrls( - java.lang.Iterable values) { + public Builder addAllLearnMoreUrls(java.lang.Iterable values) { ensureLearnMoreUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, learnMoreUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, learnMoreUrls_); onChanged(); return this; } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @return This builder for chaining. */ public Builder clearLearnMoreUrls() { @@ -934,28 +1024,30 @@ public Builder clearLearnMoreUrls() { return this; } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param value The bytes of the learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrlsBytes( - com.google.protobuf.ByteString value) { + public Builder addLearnMoreUrlsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -965,12 +1057,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.OutdatedLibrary) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.OutdatedLibrary) private static final com.google.cloud.websecurityscanner.v1.OutdatedLibrary DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.OutdatedLibrary(); } @@ -979,16 +1071,16 @@ public static com.google.cloud.websecurityscanner.v1.OutdatedLibrary getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutdatedLibrary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutdatedLibrary(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutdatedLibrary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutdatedLibrary(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1003,6 +1095,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.OutdatedLibrary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java index cd49366c..1cf40c09 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java @@ -1,90 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface OutdatedLibraryOrBuilder extends +public interface OutdatedLibraryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.OutdatedLibrary) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the outdated library.
    * 
* * string library_name = 1; + * * @return The libraryName. */ java.lang.String getLibraryName(); /** + * + * *
    * The name of the outdated library.
    * 
* * string library_name = 1; + * * @return The bytes for libraryName. */ - com.google.protobuf.ByteString - getLibraryNameBytes(); + com.google.protobuf.ByteString getLibraryNameBytes(); /** + * + * *
    * The version number.
    * 
* * string version = 2; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * The version number.
    * 
* * string version = 2; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @return A list containing the learnMoreUrls. */ - java.util.List - getLearnMoreUrlsList(); + java.util.List getLearnMoreUrlsList(); /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @return The count of learnMoreUrls. */ int getLearnMoreUrlsCount(); /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ java.lang.String getLearnMoreUrls(int index); /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - com.google.protobuf.ByteString - getLearnMoreUrlsBytes(int index); + com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java index fa6af21f..a7d9a82a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_config.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * A ScanConfig resource contains the configurations to launch a scan.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig} */ -public final class ScanConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ScanConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig) ScanConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ScanConfig.newBuilder() to construct. private ScanConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ScanConfig() { name_ = ""; displayName_ = ""; @@ -31,16 +49,15 @@ private ScanConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ScanConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ScanConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -60,102 +77,118 @@ private ScanConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; - } - case 24: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - maxQps_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - startingUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + displayName_ = s; + break; } - startingUrls_.add(s); - break; - } - case 42: { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder subBuilder = null; - if (authentication_ != null) { - subBuilder = authentication_.toBuilder(); + case 24: + { + maxQps_ = input.readInt32(); + break; } - authentication_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authentication_); - authentication_ = subBuilder.buildPartial(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + startingUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + startingUrls_.add(s); + break; } + case 42: + { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder subBuilder = + null; + if (authentication_ != null) { + subBuilder = authentication_.toBuilder(); + } + authentication_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authentication_); + authentication_ = subBuilder.buildPartial(); + } - break; - } - case 48: { - int rawValue = input.readEnum(); - - userAgent_ = rawValue; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + break; } - blacklistPatterns_.add(s); - break; - } - case 66: { - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder subBuilder = null; - if (schedule_ != null) { - subBuilder = schedule_.toBuilder(); + case 48: + { + int rawValue = input.readEnum(); + + userAgent_ = rawValue; + break; } - schedule_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schedule_); - schedule_ = subBuilder.buildPartial(); + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + blacklistPatterns_.add(s); + break; } + case 66: + { + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder subBuilder = null; + if (schedule_ != null) { + subBuilder = schedule_.toBuilder(); + } + schedule_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schedule_); + schedule_ = subBuilder.buildPartial(); + } - break; - } - case 80: { - int rawValue = input.readEnum(); - - exportToSecurityCommandCenter_ = rawValue; - break; - } - case 96: { - int rawValue = input.readEnum(); - - riskLevel_ = rawValue; - break; - } - case 104: { + break; + } + case 80: + { + int rawValue = input.readEnum(); - managedScan_ = input.readBool(); - break; - } - case 112: { + exportToSecurityCommandCenter_ = rawValue; + break; + } + case 96: + { + int rawValue = input.readEnum(); - staticIpScan_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + riskLevel_ = rawValue; + break; + } + case 104: + { + managedScan_ = input.readBool(); + break; + } + case 112: + { + staticIpScan_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -163,8 +196,7 @@ private ScanConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { startingUrls_ = startingUrls_.getUnmodifiableView(); @@ -176,29 +208,35 @@ private ScanConfig( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.class, + com.google.cloud.websecurityscanner.v1.ScanConfig.Builder.class); } /** + * + * *
    * Type of user agents used for scanning.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanConfig.UserAgent} */ - public enum UserAgent - implements com.google.protobuf.ProtocolMessageEnum { + public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -207,6 +245,8 @@ public enum UserAgent */ USER_AGENT_UNSPECIFIED(0), /** + * + * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -215,6 +255,8 @@ public enum UserAgent */ CHROME_LINUX(1), /** + * + * *
      * Chrome on Android.
      * 
@@ -223,6 +265,8 @@ public enum UserAgent */ CHROME_ANDROID(2), /** + * + * *
      * Safari on IPhone.
      * 
@@ -234,6 +278,8 @@ public enum UserAgent ; /** + * + * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -242,6 +288,8 @@ public enum UserAgent */ public static final int USER_AGENT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -250,6 +298,8 @@ public enum UserAgent */ public static final int CHROME_LINUX_VALUE = 1; /** + * + * *
      * Chrome on Android.
      * 
@@ -258,6 +308,8 @@ public enum UserAgent */ public static final int CHROME_ANDROID_VALUE = 2; /** + * + * *
      * Safari on IPhone.
      * 
@@ -266,7 +318,6 @@ public enum UserAgent */ public static final int SAFARI_IPHONE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -291,50 +342,53 @@ public static UserAgent valueOf(int value) { */ public static UserAgent forNumber(int value) { switch (value) { - case 0: return USER_AGENT_UNSPECIFIED; - case 1: return CHROME_LINUX; - case 2: return CHROME_ANDROID; - case 3: return SAFARI_IPHONE; - default: return null; + case 0: + return USER_AGENT_UNSPECIFIED; + case 1: + return CHROME_LINUX; + case 2: + return CHROME_ANDROID; + case 3: + return SAFARI_IPHONE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - UserAgent> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public UserAgent findValueByNumber(int number) { - return UserAgent.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UserAgent findValueByNumber(int number) { + return UserAgent.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor() + .getEnumTypes() + .get(0); } private static final UserAgent[] VALUES = values(); - public static UserAgent valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static UserAgent valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -352,6 +406,8 @@ private UserAgent(int value) { } /** + * + * *
    * Scan risk levels supported by Web Security Scanner. LOW impact
    * scanning will minimize requests with the potential to modify data. To
@@ -360,9 +416,10 @@ private UserAgent(int value) {
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel}
    */
-  public enum RiskLevel
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Use default, which is NORMAL.
      * 
@@ -371,6 +428,8 @@ public enum RiskLevel */ RISK_LEVEL_UNSPECIFIED(0), /** + * + * *
      * Normal scanning (Recommended)
      * 
@@ -379,6 +438,8 @@ public enum RiskLevel */ NORMAL(1), /** + * + * *
      * Lower impact scanning
      * 
@@ -390,6 +451,8 @@ public enum RiskLevel ; /** + * + * *
      * Use default, which is NORMAL.
      * 
@@ -398,6 +461,8 @@ public enum RiskLevel */ public static final int RISK_LEVEL_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Normal scanning (Recommended)
      * 
@@ -406,6 +471,8 @@ public enum RiskLevel */ public static final int NORMAL_VALUE = 1; /** + * + * *
      * Lower impact scanning
      * 
@@ -414,7 +481,6 @@ public enum RiskLevel */ public static final int LOW_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -439,49 +505,51 @@ public static RiskLevel valueOf(int value) { */ public static RiskLevel forNumber(int value) { switch (value) { - case 0: return RISK_LEVEL_UNSPECIFIED; - case 1: return NORMAL; - case 2: return LOW; - default: return null; + case 0: + return RISK_LEVEL_UNSPECIFIED; + case 1: + return NORMAL; + case 2: + return LOW; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - RiskLevel> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RiskLevel findValueByNumber(int number) { - return RiskLevel.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RiskLevel findValueByNumber(int number) { + return RiskLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor() + .getEnumTypes() + .get(1); } private static final RiskLevel[] VALUES = values(); - public static RiskLevel valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RiskLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -499,16 +567,20 @@ private RiskLevel(int value) { } /** + * + * *
    * Controls export of scan configurations and results to Security
    * Command Center.
    * 
* - * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter} + * Protobuf enum {@code + * google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter} */ - public enum ExportToSecurityCommandCenter - implements com.google.protobuf.ProtocolMessageEnum { + public enum ExportToSecurityCommandCenter implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Use default, which is ENABLED.
      * 
@@ -517,6 +589,8 @@ public enum ExportToSecurityCommandCenter */ EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED(0), /** + * + * *
      * Export results of this scan to Security Command Center.
      * 
@@ -525,6 +599,8 @@ public enum ExportToSecurityCommandCenter */ ENABLED(1), /** + * + * *
      * Do not export results of this scan to Security Command Center.
      * 
@@ -536,6 +612,8 @@ public enum ExportToSecurityCommandCenter ; /** + * + * *
      * Use default, which is ENABLED.
      * 
@@ -544,6 +622,8 @@ public enum ExportToSecurityCommandCenter */ public static final int EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Export results of this scan to Security Command Center.
      * 
@@ -552,6 +632,8 @@ public enum ExportToSecurityCommandCenter */ public static final int ENABLED_VALUE = 1; /** + * + * *
      * Do not export results of this scan to Security Command Center.
      * 
@@ -560,7 +642,6 @@ public enum ExportToSecurityCommandCenter */ public static final int DISABLED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -585,10 +666,14 @@ public static ExportToSecurityCommandCenter valueOf(int value) { */ public static ExportToSecurityCommandCenter forNumber(int value) { switch (value) { - case 0: return EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED; - case 1: return ENABLED; - case 2: return DISABLED; - default: return null; + case 0: + return EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED; + case 1: + return ENABLED; + case 2: + return DISABLED; + default: + return null; } } @@ -596,29 +681,31 @@ public static ExportToSecurityCommandCenter forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ExportToSecurityCommandCenter> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExportToSecurityCommandCenter findValueByNumber(int number) { - return ExportToSecurityCommandCenter.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExportToSecurityCommandCenter findValueByNumber(int number) { + return ExportToSecurityCommandCenter.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor().getEnumTypes().get(2); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.getDescriptor() + .getEnumTypes() + .get(2); } private static final ExportToSecurityCommandCenter[] VALUES = values(); @@ -626,8 +713,7 @@ public ExportToSecurityCommandCenter findValueByNumber(int number) { public static ExportToSecurityCommandCenter valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -644,124 +730,175 @@ private ExportToSecurityCommandCenter(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter) } - public interface AuthenticationOrBuilder extends + public interface AuthenticationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Authentication) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return Whether the googleAccount field is set. */ boolean hasGoogleAccount(); /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return The googleAccount. */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + getGoogleAccount(); /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder + getGoogleAccountOrBuilder(); /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return Whether the customAccount field is set. */ boolean hasCustomAccount(); /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return The customAccount. */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getCustomAccount(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + getCustomAccount(); /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder + getCustomAccountOrBuilder(); /** + * + * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * * @return Whether the iapCredential field is set. */ boolean hasIapCredential(); /** + * + * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * * @return The iapCredential. */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getIapCredential(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + getIapCredential(); /** + * + * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder getIapCredentialOrBuilder(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder + getIapCredentialOrBuilder(); - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.AuthenticationCase getAuthenticationCase(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.AuthenticationCase + getAuthenticationCase(); } /** + * + * *
    * Scan authentication configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication} */ - public static final class Authentication extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Authentication extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication) AuthenticationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Authentication.newBuilder() to construct. private Authentication(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Authentication() { - } + + private Authentication() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Authentication(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Authentication( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -780,55 +917,94 @@ private Authentication( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder subBuilder = null; - if (authenticationCase_ == 1) { - subBuilder = ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_).toBuilder(); - } - authentication_ = - input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 1; - break; - } - case 18: { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder subBuilder = null; - if (authenticationCase_ == 2) { - subBuilder = ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_).toBuilder(); - } - authentication_ = - input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_); - authentication_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .Builder + subBuilder = null; + if (authenticationCase_ == 1) { + subBuilder = + ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .GoogleAccount) + authentication_) + .toBuilder(); + } + authentication_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .GoogleAccount.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .GoogleAccount) + authentication_); + authentication_ = subBuilder.buildPartial(); + } + authenticationCase_ = 1; + break; } - authenticationCase_ = 2; - break; - } - case 34: { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder subBuilder = null; - if (authenticationCase_ == 4) { - subBuilder = ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_).toBuilder(); + case 18: + { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .Builder + subBuilder = null; + if (authenticationCase_ == 2) { + subBuilder = + ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .CustomAccount) + authentication_) + .toBuilder(); + } + authentication_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .CustomAccount.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .CustomAccount) + authentication_); + authentication_ = subBuilder.buildPartial(); + } + authenticationCase_ = 2; + break; } - authentication_ = - input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_); - authentication_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .Builder + subBuilder = null; + if (authenticationCase_ == 4) { + subBuilder = + ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .IapCredential) + authentication_) + .toBuilder(); + } + authentication_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .IapCredential.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .IapCredential) + authentication_); + authentication_ = subBuilder.buildPartial(); + } + authenticationCase_ = 4; + break; } - authenticationCase_ = 4; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -836,88 +1012,105 @@ private Authentication( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.class, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder.class); } - public interface GoogleAccountOrBuilder extends + public interface GoogleAccountOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The user name of the Google account.
        * 
* * string username = 1; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
        * Required. The user name of the Google account.
        * 
* * string username = 1; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); } /** + * + * *
      * Describes authentication configuration that uses a Google account.
      * 
* - * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code + * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} */ - public static final class GoogleAccount extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GoogleAccount extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) GoogleAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GoogleAccount.newBuilder() to construct. private GoogleAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GoogleAccount() { username_ = ""; password_ = ""; @@ -925,16 +1118,15 @@ private GoogleAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GoogleAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GoogleAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -953,25 +1145,27 @@ private GoogleAccount( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + password_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -979,34 +1173,42 @@ private GoogleAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .class, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** + * + * *
        * Required. The user name of the Google account.
        * 
* * string username = 1; + * * @return The username. */ @java.lang.Override @@ -1015,29 +1217,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** + * + * *
        * Required. The user name of the Google account.
        * 
* * string username = 1; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -1048,12 +1250,15 @@ public java.lang.String getUsername() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** + * + * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; + * * @return The password. */ @java.lang.Override @@ -1062,30 +1267,30 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** + * + * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -1094,6 +1299,7 @@ public java.lang.String getPassword() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1105,8 +1311,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -1136,17 +1341,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount)) { + if (!(obj + instanceof + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount other = + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) obj; - if (!getUsername() - .equals(other.getUsername())) return false; - if (!getPassword() - .equals(other.getPassword())) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1167,88 +1373,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1258,44 +1480,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Describes authentication configuration that uses a Google account.
        * 
* - * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code + * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .class, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1307,19 +1537,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount build() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount result = buildPartial(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + build() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1327,8 +1561,11 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAc } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount(this); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + buildPartial() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount result = + new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount( + this); result.username_ = username_; result.password_ = password_; onBuilt(); @@ -1339,46 +1576,56 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAc public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount)other); + if (other + instanceof + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) { + return mergeFrom( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount other) { - if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount other) { + if (other + == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -1402,11 +1649,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount parsedMessage = null; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1418,18 +1668,20 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** + * + * *
          * Required. The user name of the Google account.
          * 
* * string username = 1; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1438,20 +1690,21 @@ public java.lang.String getUsername() { } } /** + * + * *
          * Required. The user name of the Google account.
          * 
* * string username = 1; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -1459,54 +1712,61 @@ public java.lang.String getUsername() { } } /** + * + * *
          * Required. The user name of the Google account.
          * 
* * string username = 1; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { + public Builder setUsername(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** + * + * *
          * Required. The user name of the Google account.
          * 
* * string username = 1; + * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** + * + * *
          * Required. The user name of the Google account.
          * 
* * string username = 1; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -1514,19 +1774,21 @@ public Builder setUsernameBytes( private java.lang.Object password_ = ""; /** + * + * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; + * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1535,21 +1797,22 @@ public java.lang.String getPassword() { } } /** + * + * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -1557,61 +1820,69 @@ public java.lang.String getPassword() { } } /** + * + * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { + public Builder setPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** + * + * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; + * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** + * + * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1624,30 +1895,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .GoogleAccount + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount(); + DEFAULT_INSTANCE = + new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount(); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GoogleAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GoogleAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GoogleAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1659,94 +1934,114 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CustomAccountOrBuilder extends + public interface CustomAccountOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The user name of the custom account.
        * 
* * string username = 1; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
        * Required. The user name of the custom account.
        * 
* * string username = 1; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); /** + * + * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3; + * * @return The loginUrl. */ java.lang.String getLoginUrl(); /** + * + * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3; + * * @return The bytes for loginUrl. */ - com.google.protobuf.ByteString - getLoginUrlBytes(); + com.google.protobuf.ByteString getLoginUrlBytes(); } /** + * + * *
      * Describes authentication configuration that uses a custom account.
      * 
* - * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code + * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount} */ - public static final class CustomAccount extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CustomAccount extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) CustomAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomAccount.newBuilder() to construct. private CustomAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CustomAccount() { username_ = ""; password_ = ""; @@ -1755,16 +2050,15 @@ private CustomAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CustomAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CustomAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1783,31 +2077,34 @@ private CustomAccount( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + password_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - loginUrl_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + loginUrl_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1815,34 +2112,42 @@ private CustomAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .class, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** + * + * *
        * Required. The user name of the custom account.
        * 
* * string username = 1; + * * @return The username. */ @java.lang.Override @@ -1851,29 +2156,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** + * + * *
        * Required. The user name of the custom account.
        * 
* * string username = 1; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -1884,12 +2189,15 @@ public java.lang.String getUsername() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** + * + * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; + * * @return The password. */ @java.lang.Override @@ -1898,30 +2206,30 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** + * + * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* * string password = 2; + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -1932,11 +2240,14 @@ public java.lang.String getPassword() { public static final int LOGIN_URL_FIELD_NUMBER = 3; private volatile java.lang.Object loginUrl_; /** + * + * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3; + * * @return The loginUrl. */ @java.lang.Override @@ -1945,29 +2256,29 @@ public java.lang.String getLoginUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; } } /** + * + * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3; + * * @return The bytes for loginUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getLoginUrlBytes() { + public com.google.protobuf.ByteString getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); loginUrl_ = b; return b; } else { @@ -1976,6 +2287,7 @@ public java.lang.String getLoginUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1987,8 +2299,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -2024,19 +2335,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount)) { + if (!(obj + instanceof + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount other = + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) obj; - if (!getUsername() - .equals(other.getUsername())) return false; - if (!getPassword() - .equals(other.getPassword())) return false; - if (!getLoginUrl() - .equals(other.getLoginUrl())) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; + if (!getLoginUrl().equals(other.getLoginUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2059,88 +2370,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2150,44 +2477,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Describes authentication configuration that uses a custom account.
        * 
* - * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code + * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .class, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2201,19 +2536,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount build() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount result = buildPartial(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + build() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2221,8 +2560,11 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAc } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount(this); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + buildPartial() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount result = + new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount( + this); result.username_ = username_; result.password_ = password_; result.loginUrl_ = loginUrl_; @@ -2234,46 +2576,56 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAc public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount)other); + if (other + instanceof + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) { + return mergeFrom( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount other) { - if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount other) { + if (other + == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -2301,11 +2653,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount parsedMessage = null; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2317,18 +2672,20 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** + * + * *
          * Required. The user name of the custom account.
          * 
* * string username = 1; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -2337,20 +2694,21 @@ public java.lang.String getUsername() { } } /** + * + * *
          * Required. The user name of the custom account.
          * 
* * string username = 1; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -2358,54 +2716,61 @@ public java.lang.String getUsername() { } } /** + * + * *
          * Required. The user name of the custom account.
          * 
* * string username = 1; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { + public Builder setUsername(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** + * + * *
          * Required. The user name of the custom account.
          * 
* * string username = 1; + * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** + * + * *
          * Required. The user name of the custom account.
          * 
* * string username = 1; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -2413,19 +2778,21 @@ public Builder setUsernameBytes( private java.lang.Object password_ = ""; /** + * + * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; + * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -2434,21 +2801,22 @@ public java.lang.String getPassword() { } } /** + * + * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -2456,57 +2824,64 @@ public java.lang.String getPassword() { } } /** + * + * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { + public Builder setPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** + * + * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; + * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** + * + * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* * string password = 2; + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; @@ -2514,18 +2889,20 @@ public Builder setPasswordBytes( private java.lang.Object loginUrl_ = ""; /** + * + * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3; + * * @return The loginUrl. */ public java.lang.String getLoginUrl() { java.lang.Object ref = loginUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; @@ -2534,20 +2911,21 @@ public java.lang.String getLoginUrl() { } } /** + * + * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3; + * * @return The bytes for loginUrl. */ - public com.google.protobuf.ByteString - getLoginUrlBytes() { + public com.google.protobuf.ByteString getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); loginUrl_ = b; return b; } else { @@ -2555,58 +2933,66 @@ public java.lang.String getLoginUrl() { } } /** + * + * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3; + * * @param value The loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrl( - java.lang.String value) { + public Builder setLoginUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + loginUrl_ = value; onChanged(); return this; } /** + * + * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3; + * * @return This builder for chaining. */ public Builder clearLoginUrl() { - + loginUrl_ = getDefaultInstance().getLoginUrl(); onChanged(); return this; } /** + * + * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3; + * * @param value The bytes for loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setLoginUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + loginUrl_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2619,30 +3005,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .CustomAccount + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount(); + DEFAULT_INSTANCE = + new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount(); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2654,79 +3044,102 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface IapCredentialOrBuilder extends + public interface IapCredentialOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * * @return Whether the iapTestServiceAccountInfo field is set. */ boolean hasIapTestServiceAccountInfo(); /** + * + * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * * @return The iapTestServiceAccountInfo. */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getIapTestServiceAccountInfo(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + getIapTestServiceAccountInfo(); /** + * + * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * */ - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder getIapTestServiceAccountInfoOrBuilder(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfoOrBuilder + getIapTestServiceAccountInfoOrBuilder(); - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapCredentialsCase getIapCredentialsCase(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapCredentialsCase + getIapCredentialsCase(); } /** + * + * *
      * Describes authentication configuration for Identity-Aware-Proxy (IAP).
      * 
* - * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential} + * Protobuf type {@code + * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential} */ - public static final class IapCredential extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class IapCredential extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) IapCredentialOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IapCredential.newBuilder() to construct. private IapCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IapCredential() { - } + + private IapCredential() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IapCredential(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private IapCredential( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2745,27 +3158,40 @@ private IapCredential( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder subBuilder = null; - if (iapCredentialsCase_ == 1) { - subBuilder = ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_).toBuilder(); - } - iapCredentials_ = - input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_); - iapCredentials_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.Builder + subBuilder = null; + if (iapCredentialsCase_ == 1) { + subBuilder = + ((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .IapCredential.IapTestServiceAccountInfo) + iapCredentials_) + .toBuilder(); + } + iapCredentials_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .IapCredential.IapTestServiceAccountInfo.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .IapCredential.IapTestServiceAccountInfo) + iapCredentials_); + iapCredentials_ = subBuilder.buildPartial(); + } + iapCredentialsCase_ = 1; + break; } - iapCredentialsCase_ = 1; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2773,85 +3199,103 @@ private IapCredential( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .class, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .Builder.class); } - public interface IapTestServiceAccountInfoOrBuilder extends + public interface IapTestServiceAccountInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Required. Describes OAuth2 client id of resources protected by
          * Identity-Aware-Proxy (IAP).
          * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The targetAudienceClientId. */ java.lang.String getTargetAudienceClientId(); /** + * + * *
          * Required. Describes OAuth2 client id of resources protected by
          * Identity-Aware-Proxy (IAP).
          * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for targetAudienceClientId. */ - com.google.protobuf.ByteString - getTargetAudienceClientIdBytes(); + com.google.protobuf.ByteString getTargetAudienceClientIdBytes(); } /** + * + * *
        * Describes authentication configuration when Web-Security-Scanner
        * service account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo} + * Protobuf type {@code + * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo} */ - public static final class IapTestServiceAccountInfo extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class IapTestServiceAccountInfo + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) IapTestServiceAccountInfoOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IapTestServiceAccountInfo.newBuilder() to construct. - private IapTestServiceAccountInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IapTestServiceAccountInfo( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IapTestServiceAccountInfo() { targetAudienceClientId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IapTestServiceAccountInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private IapTestServiceAccountInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2870,19 +3314,20 @@ private IapTestServiceAccountInfo( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - targetAudienceClientId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + targetAudienceClientId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2890,35 +3335,44 @@ private IapTestServiceAccountInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.class, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.Builder.class); } public static final int TARGET_AUDIENCE_CLIENT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object targetAudienceClientId_; /** + * + * *
          * Required. Describes OAuth2 client id of resources protected by
          * Identity-Aware-Proxy (IAP).
          * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The targetAudienceClientId. */ @java.lang.Override @@ -2927,30 +3381,31 @@ public java.lang.String getTargetAudienceClientId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetAudienceClientId_ = s; return s; } } /** + * + * *
          * Required. Describes OAuth2 client id of resources protected by
          * Identity-Aware-Proxy (IAP).
          * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for targetAudienceClientId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetAudienceClientIdBytes() { + public com.google.protobuf.ByteString getTargetAudienceClientIdBytes() { java.lang.Object ref = targetAudienceClientId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetAudienceClientId_ = b; return b; } else { @@ -2959,6 +3414,7 @@ public java.lang.String getTargetAudienceClientId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2971,7 +3427,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetAudienceClientId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetAudienceClientId_); } @@ -2985,7 +3441,9 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetAudienceClientId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, targetAudienceClientId_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 1, targetAudienceClientId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2995,15 +3453,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo)) { + if (!(obj + instanceof + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + other = + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo) + obj; - if (!getTargetAudienceClientId() - .equals(other.getTargetAudienceClientId())) return false; + if (!getTargetAudienceClientId().equals(other.getTargetAudienceClientId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3022,88 +3487,119 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3113,45 +3609,54 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * Describes authentication configuration when Web-Security-Scanner
          * service account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo} + * Protobuf type {@code + * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.class, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -3161,19 +3666,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo build() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo result = buildPartial(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + build() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3181,8 +3693,14 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCrede } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo(this); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + buildPartial() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + result = + new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .IapCredential.IapTestServiceAccountInfo(this); result.targetAudienceClientId_ = targetAudienceClientId_; onBuilt(); return result; @@ -3192,46 +3710,60 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCrede public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo)other); + if (other + instanceof + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo) { + return mergeFrom( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo other) { - if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + other) { + if (other + == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.getDefaultInstance()) return this; if (!other.getTargetAudienceClientId().isEmpty()) { targetAudienceClientId_ = other.targetAudienceClientId_; onChanged(); @@ -3251,11 +3783,16 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo parsedMessage = null; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3267,19 +3804,22 @@ public Builder mergeFrom( private java.lang.Object targetAudienceClientId_ = ""; /** + * + * *
            * Required. Describes OAuth2 client id of resources protected by
            * Identity-Aware-Proxy (IAP).
            * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The targetAudienceClientId. */ public java.lang.String getTargetAudienceClientId() { java.lang.Object ref = targetAudienceClientId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetAudienceClientId_ = s; return s; @@ -3288,21 +3828,23 @@ public java.lang.String getTargetAudienceClientId() { } } /** + * + * *
            * Required. Describes OAuth2 client id of resources protected by
            * Identity-Aware-Proxy (IAP).
            * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for targetAudienceClientId. */ - public com.google.protobuf.ByteString - getTargetAudienceClientIdBytes() { + public com.google.protobuf.ByteString getTargetAudienceClientIdBytes() { java.lang.Object ref = targetAudienceClientId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetAudienceClientId_ = b; return b; } else { @@ -3310,61 +3852,72 @@ public java.lang.String getTargetAudienceClientId() { } } /** + * + * *
            * Required. Describes OAuth2 client id of resources protected by
            * Identity-Aware-Proxy (IAP).
            * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The targetAudienceClientId to set. * @return This builder for chaining. */ - public Builder setTargetAudienceClientId( - java.lang.String value) { + public Builder setTargetAudienceClientId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetAudienceClientId_ = value; onChanged(); return this; } /** + * + * *
            * Required. Describes OAuth2 client id of resources protected by
            * Identity-Aware-Proxy (IAP).
            * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearTargetAudienceClientId() { - + targetAudienceClientId_ = getDefaultInstance().getTargetAudienceClientId(); onChanged(); return this; } /** + * + * *
            * Required. Describes OAuth2 client id of resources protected by
            * Identity-Aware-Proxy (IAP).
            * 
* - * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * string target_audience_client_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes for targetAudienceClientId to set. * @return This builder for chaining. */ - public Builder setTargetAudienceClientIdBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetAudienceClientIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetAudienceClientId_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3377,30 +3930,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .IapCredential.IapTestServiceAccountInfo + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo(); + DEFAULT_INSTANCE = + new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo(); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IapTestServiceAccountInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IapTestServiceAccountInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IapTestServiceAccountInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IapTestServiceAccountInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3412,20 +3971,24 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int iapCredentialsCase_ = 0; private java.lang.Object iapCredentials_; + public enum IapCredentialsCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IAP_TEST_SERVICE_ACCOUNT_INFO(1), IAPCREDENTIALS_NOT_SET(0); private final int value; + private IapCredentialsCase(int value) { this.value = value; } @@ -3441,30 +4004,37 @@ public static IapCredentialsCase valueOf(int value) { public static IapCredentialsCase forNumber(int value) { switch (value) { - case 1: return IAP_TEST_SERVICE_ACCOUNT_INFO; - case 0: return IAPCREDENTIALS_NOT_SET; - default: return null; + case 1: + return IAP_TEST_SERVICE_ACCOUNT_INFO; + case 0: + return IAPCREDENTIALS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public IapCredentialsCase - getIapCredentialsCase() { - return IapCredentialsCase.forNumber( - iapCredentialsCase_); + public IapCredentialsCase getIapCredentialsCase() { + return IapCredentialsCase.forNumber(iapCredentialsCase_); } public static final int IAP_TEST_SERVICE_ACCOUNT_INFO_FIELD_NUMBER = 1; /** + * + * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * * @return Whether the iapTestServiceAccountInfo field is set. */ @java.lang.Override @@ -3472,38 +4042,58 @@ public boolean hasIapTestServiceAccountInfo() { return iapCredentialsCase_ == 1; } /** + * + * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * * @return The iapTestServiceAccountInfo. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getIapTestServiceAccountInfo() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + getIapTestServiceAccountInfo() { if (iapCredentialsCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo) + iapCredentials_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.getDefaultInstance(); } /** + * + * *
        * Authentication configuration when Web-Security-Scanner service
        * account is added in Identity-Aware-Proxy (IAP) access policies.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder getIapTestServiceAccountInfoOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfoOrBuilder + getIapTestServiceAccountInfoOrBuilder() { if (iapCredentialsCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo) + iapCredentials_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3515,10 +4105,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (iapCredentialsCase_ == 1) { - output.writeMessage(1, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_); + output.writeMessage( + 1, + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo) + iapCredentials_); } unknownFields.writeTo(output); } @@ -3530,8 +4123,12 @@ public int getSerializedSize() { size = 0; if (iapCredentialsCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo) + iapCredentials_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3541,18 +4138,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential)) { + if (!(obj + instanceof + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential other = + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) obj; if (!getIapCredentialsCase().equals(other.getIapCredentialsCase())) return false; switch (iapCredentialsCase_) { case 1: - if (!getIapTestServiceAccountInfo() - .equals(other.getIapTestServiceAccountInfo())) return false; + if (!getIapTestServiceAccountInfo().equals(other.getIapTestServiceAccountInfo())) + return false; break; case 0: default: @@ -3581,88 +4181,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3672,44 +4288,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Describes authentication configuration for Identity-Aware-Proxy (IAP).
        * 
* - * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential} + * Protobuf type {@code + * google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .class, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -3719,19 +4343,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential build() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result = buildPartial(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + build() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3739,8 +4367,11 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCrede } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential(this); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + buildPartial() { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result = + new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential( + this); if (iapCredentialsCase_ == 1) { if (iapTestServiceAccountInfoBuilder_ == null) { result.iapCredentials_ = iapCredentials_; @@ -3757,54 +4388,66 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCrede public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential)other); + if (other + instanceof + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) { + return mergeFrom( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential other) { - if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential other) { + if (other + == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .getDefaultInstance()) return this; switch (other.getIapCredentialsCase()) { - case IAP_TEST_SERVICE_ACCOUNT_INFO: { - mergeIapTestServiceAccountInfo(other.getIapTestServiceAccountInfo()); - break; - } - case IAPCREDENTIALS_NOT_SET: { - break; - } + case IAP_TEST_SERVICE_ACCOUNT_INFO: + { + mergeIapTestServiceAccountInfo(other.getIapTestServiceAccountInfo()); + break; + } + case IAPCREDENTIALS_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3821,11 +4464,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential parsedMessage = null; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3834,12 +4480,12 @@ public Builder mergeFrom( } return this; } + private int iapCredentialsCase_ = 0; private java.lang.Object iapCredentials_; - public IapCredentialsCase - getIapCredentialsCase() { - return IapCredentialsCase.forNumber( - iapCredentialsCase_); + + public IapCredentialsCase getIapCredentialsCase() { + return IapCredentialsCase.forNumber(iapCredentialsCase_); } public Builder clearIapCredentials() { @@ -3849,16 +4495,26 @@ public Builder clearIapCredentials() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder> iapTestServiceAccountInfoBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfoOrBuilder> + iapTestServiceAccountInfoBuilder_; /** + * + * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * * @return Whether the iapTestServiceAccountInfo field is set. */ @java.lang.Override @@ -3866,37 +4522,55 @@ public boolean hasIapTestServiceAccountInfo() { return iapCredentialsCase_ == 1; } /** + * + * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * * @return The iapTestServiceAccountInfo. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo getIapTestServiceAccountInfo() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + getIapTestServiceAccountInfo() { if (iapTestServiceAccountInfoBuilder_ == null) { if (iapCredentialsCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo) + iapCredentials_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.getDefaultInstance(); } else { if (iapCredentialsCase_ == 1) { return iapTestServiceAccountInfoBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.getDefaultInstance(); } } /** + * + * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * */ - public Builder setIapTestServiceAccountInfo(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo value) { + public Builder setIapTestServiceAccountInfo( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + value) { if (iapTestServiceAccountInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3910,15 +4584,21 @@ public Builder setIapTestServiceAccountInfo(com.google.cloud.websecurityscanner. return this; } /** + * + * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * */ public Builder setIapTestServiceAccountInfo( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder builderForValue) { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.Builder + builderForValue) { if (iapTestServiceAccountInfoBuilder_ == null) { iapCredentials_ = builderForValue.build(); onChanged(); @@ -3929,19 +4609,34 @@ public Builder setIapTestServiceAccountInfo( return this; } /** + * + * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * */ - public Builder mergeIapTestServiceAccountInfo(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo value) { + public Builder mergeIapTestServiceAccountInfo( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + value) { if (iapTestServiceAccountInfoBuilder_ == null) { - if (iapCredentialsCase_ == 1 && - iapCredentials_ != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance()) { - iapCredentials_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.newBuilder((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_) - .mergeFrom(value).buildPartial(); + if (iapCredentialsCase_ == 1 + && iapCredentials_ + != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .IapCredential.IapTestServiceAccountInfo.getDefaultInstance()) { + iapCredentials_ = + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.newBuilder( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .IapCredential.IapTestServiceAccountInfo) + iapCredentials_) + .mergeFrom(value) + .buildPartial(); } else { iapCredentials_ = value; } @@ -3957,12 +4652,16 @@ public Builder mergeIapTestServiceAccountInfo(com.google.cloud.websecurityscanne return this; } /** + * + * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * */ public Builder clearIapTestServiceAccountInfo() { if (iapTestServiceAccountInfoBuilder_ == null) { @@ -3981,61 +4680,97 @@ public Builder clearIapTestServiceAccountInfo() { return this; } /** + * + * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder getIapTestServiceAccountInfoBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.Builder + getIapTestServiceAccountInfoBuilder() { return getIapTestServiceAccountInfoFieldBuilder().getBuilder(); } /** + * + * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder getIapTestServiceAccountInfoOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfoOrBuilder + getIapTestServiceAccountInfoOrBuilder() { if ((iapCredentialsCase_ == 1) && (iapTestServiceAccountInfoBuilder_ != null)) { return iapTestServiceAccountInfoBuilder_.getMessageOrBuilder(); } else { if (iapCredentialsCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo) + iapCredentials_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.getDefaultInstance(); } } /** + * + * *
          * Authentication configuration when Web-Security-Scanner service
          * account is added in Identity-Aware-Proxy (IAP) access policies.
          * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo iap_test_service_account_info = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfoOrBuilder> getIapTestServiceAccountInfoFieldBuilder() { if (iapTestServiceAccountInfoBuilder_ == null) { if (!(iapCredentialsCase_ == 1)) { - iapCredentials_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.getDefaultInstance(); + iapCredentials_ = + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.getDefaultInstance(); } - iapTestServiceAccountInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfoOrBuilder>( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo) iapCredentials_, + iapTestServiceAccountInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo.Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfoOrBuilder>( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo) + iapCredentials_, getParentForChildren(), isClean()); iapCredentials_ = null; } iapCredentialsCase_ = 1; - onChanged();; + onChanged(); + ; return iapTestServiceAccountInfoBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4048,30 +4783,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .IapCredential + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential(); + DEFAULT_INSTANCE = + new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential(); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IapCredential parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IapCredential(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IapCredential parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new IapCredential(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4083,22 +4822,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int authenticationCase_ = 0; private java.lang.Object authentication_; + public enum AuthenticationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GOOGLE_ACCOUNT(1), CUSTOM_ACCOUNT(2), IAP_CREDENTIAL(4), AUTHENTICATION_NOT_SET(0); private final int value; + private AuthenticationCase(int value) { this.value = value; } @@ -4114,31 +4856,40 @@ public static AuthenticationCase valueOf(int value) { public static AuthenticationCase forNumber(int value) { switch (value) { - case 1: return GOOGLE_ACCOUNT; - case 2: return CUSTOM_ACCOUNT; - case 4: return IAP_CREDENTIAL; - case 0: return AUTHENTICATION_NOT_SET; - default: return null; + case 1: + return GOOGLE_ACCOUNT; + case 2: + return CUSTOM_ACCOUNT; + case 4: + return IAP_CREDENTIAL; + case 0: + return AUTHENTICATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public AuthenticationCase - getAuthenticationCase() { - return AuthenticationCase.forNumber( - authenticationCase_); + public AuthenticationCase getAuthenticationCase() { + return AuthenticationCase.forNumber(authenticationCase_); } public static final int GOOGLE_ACCOUNT_FIELD_NUMBER = 1; /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return Whether the googleAccount field is set. */ @java.lang.Override @@ -4146,42 +4897,62 @@ public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + getGoogleAccount() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder + getGoogleAccountOrBuilder() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } public static final int CUSTOM_ACCOUNT_FIELD_NUMBER = 2; /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return Whether the customAccount field is set. */ @java.lang.Override @@ -4189,42 +4960,62 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getCustomAccount() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + getCustomAccount() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder + getCustomAccountOrBuilder() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } public static final int IAP_CREDENTIAL_FIELD_NUMBER = 4; /** + * + * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * * @return Whether the iapCredential field is set. */ @java.lang.Override @@ -4232,36 +5023,52 @@ public boolean hasIapCredential() { return authenticationCase_ == 4; } /** + * + * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * * @return The iapCredential. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getIapCredential() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + getIapCredential() { if (authenticationCase_ == 4) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) + authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .getDefaultInstance(); } /** + * + * *
      * Authentication using Identity-Aware-Proxy (IAP).
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder getIapCredentialOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder + getIapCredentialOrBuilder() { if (authenticationCase_ == 4) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) + authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4273,16 +5080,24 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (authenticationCase_ == 1) { - output.writeMessage(1, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_); + output.writeMessage( + 1, + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) + authentication_); } if (authenticationCase_ == 2) { - output.writeMessage(2, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_); + output.writeMessage( + 2, + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) + authentication_); } if (authenticationCase_ == 4) { - output.writeMessage(4, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_); + output.writeMessage( + 4, + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) + authentication_); } unknownFields.writeTo(output); } @@ -4294,16 +5109,25 @@ public int getSerializedSize() { size = 0; if (authenticationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) + authentication_); } if (authenticationCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) + authentication_); } if (authenticationCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) + authentication_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4313,26 +5137,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication other = + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) obj; if (!getAuthenticationCase().equals(other.getAuthenticationCase())) return false; switch (authenticationCase_) { case 1: - if (!getGoogleAccount() - .equals(other.getGoogleAccount())) return false; + if (!getGoogleAccount().equals(other.getGoogleAccount())) return false; break; case 2: - if (!getCustomAccount() - .equals(other.getCustomAccount())) return false; + if (!getCustomAccount().equals(other.getCustomAccount())) return false; break; case 4: - if (!getIapCredential() - .equals(other.getIapCredential())) return false; + if (!getIapCredential().equals(other.getIapCredential())) return false; break; case 0: default: @@ -4370,87 +5192,95 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4460,44 +5290,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Scan authentication configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Authentication} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Authentication) com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.class, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -4507,14 +5342,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .getDefaultInstance(); } @java.lang.Override @@ -4528,7 +5365,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication build() @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication(this); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication result = + new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication(this); if (authenticationCase_ == 1) { if (googleAccountBuilder_ == null) { result.authentication_ = authentication_; @@ -4559,62 +5397,73 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication other) { - if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication other) { + if (other + == com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .getDefaultInstance()) return this; switch (other.getAuthenticationCase()) { - case GOOGLE_ACCOUNT: { - mergeGoogleAccount(other.getGoogleAccount()); - break; - } - case CUSTOM_ACCOUNT: { - mergeCustomAccount(other.getCustomAccount()); - break; - } - case IAP_CREDENTIAL: { - mergeIapCredential(other.getIapCredential()); - break; - } - case AUTHENTICATION_NOT_SET: { - break; - } + case GOOGLE_ACCOUNT: + { + mergeGoogleAccount(other.getGoogleAccount()); + break; + } + case CUSTOM_ACCOUNT: + { + mergeCustomAccount(other.getCustomAccount()); + break; + } + case IAP_CREDENTIAL: + { + mergeIapCredential(other.getIapCredential()); + break; + } + case AUTHENTICATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -4635,7 +5484,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4644,12 +5495,12 @@ public Builder mergeFrom( } return this; } + private int authenticationCase_ = 0; private java.lang.Object authentication_; - public AuthenticationCase - getAuthenticationCase() { - return AuthenticationCase.forNumber( - authenticationCase_); + + public AuthenticationCase getAuthenticationCase() { + return AuthenticationCase.forNumber(authenticationCase_); } public Builder clearAuthentication() { @@ -4659,15 +5510,24 @@ public Builder clearAuthentication() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder> googleAccountBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .GoogleAccountOrBuilder> + googleAccountBuilder_; /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return Whether the googleAccount field is set. */ @java.lang.Override @@ -4675,35 +5535,49 @@ public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + getGoogleAccount() { if (googleAccountBuilder_ == null) { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } else { if (authenticationCase_ == 1) { return googleAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ - public Builder setGoogleAccount(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { + public Builder setGoogleAccount( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4717,14 +5591,19 @@ public Builder setGoogleAccount(com.google.cloud.websecurityscanner.v1.ScanConfi return this; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder builderForValue) { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder + builderForValue) { if (googleAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -4735,18 +5614,31 @@ public Builder setGoogleAccount( return this; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ - public Builder mergeGoogleAccount(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { + public Builder mergeGoogleAccount( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { - if (authenticationCase_ == 1 && - authentication_ != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) { - authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.newBuilder((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_) - .mergeFrom(value).buildPartial(); + if (authenticationCase_ == 1 + && authentication_ + != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance()) { + authentication_ = + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .newBuilder( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .GoogleAccount) + authentication_) + .mergeFrom(value) + .buildPartial(); } else { authentication_ = value; } @@ -4762,11 +5654,15 @@ public Builder mergeGoogleAccount(com.google.cloud.websecurityscanner.v1.ScanCon return this; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ public Builder clearGoogleAccount() { if (googleAccountBuilder_ == null) { @@ -4785,67 +5681,106 @@ public Builder clearGoogleAccount() { return this; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder getGoogleAccountBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder + getGoogleAccountBuilder() { return getGoogleAccountFieldBuilder().getBuilder(); } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder + getGoogleAccountOrBuilder() { if ((authenticationCase_ == 1) && (googleAccountBuilder_ != null)) { return googleAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .GoogleAccountOrBuilder> getGoogleAccountFieldBuilder() { if (googleAccountBuilder_ == null) { if (!(authenticationCase_ == 1)) { - authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); - } - googleAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) authentication_, + authentication_ = + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); + } + googleAccountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + .Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .GoogleAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount) + authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 1; - onChanged();; + onChanged(); + ; return googleAccountBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder> customAccountBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .CustomAccountOrBuilder> + customAccountBuilder_; /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return Whether the customAccount field is set. */ @java.lang.Override @@ -4853,35 +5788,49 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount getCustomAccount() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + getCustomAccount() { if (customAccountBuilder_ == null) { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } else { if (authenticationCase_ == 2) { return customAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ - public Builder setCustomAccount(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount value) { + public Builder setCustomAccount( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount value) { if (customAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4895,14 +5844,19 @@ public Builder setCustomAccount(com.google.cloud.websecurityscanner.v1.ScanConfi return this; } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ public Builder setCustomAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder builderForValue) { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder + builderForValue) { if (customAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -4913,18 +5867,31 @@ public Builder setCustomAccount( return this; } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ - public Builder mergeCustomAccount(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount value) { + public Builder mergeCustomAccount( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount value) { if (customAccountBuilder_ == null) { - if (authenticationCase_ == 2 && - authentication_ != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) { - authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.newBuilder((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_) - .mergeFrom(value).buildPartial(); + if (authenticationCase_ == 2 + && authentication_ + != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .getDefaultInstance()) { + authentication_ = + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .newBuilder( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .CustomAccount) + authentication_) + .mergeFrom(value) + .buildPartial(); } else { authentication_ = value; } @@ -4940,11 +5907,15 @@ public Builder mergeCustomAccount(com.google.cloud.websecurityscanner.v1.ScanCon return this; } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ public Builder clearCustomAccount() { if (customAccountBuilder_ == null) { @@ -4963,67 +5934,106 @@ public Builder clearCustomAccount() { return this; } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder getCustomAccountBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder + getCustomAccountBuilder() { return getCustomAccountFieldBuilder().getBuilder(); } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder + getCustomAccountOrBuilder() { if ((authenticationCase_ == 2) && (customAccountBuilder_ != null)) { return customAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .CustomAccountOrBuilder> getCustomAccountFieldBuilder() { if (customAccountBuilder_ == null) { if (!(authenticationCase_ == 2)) { - authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); - } - customAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) authentication_, + authentication_ = + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); + } + customAccountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount + .Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .CustomAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount) + authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 2; - onChanged();; + onChanged(); + ; return customAccountBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder> iapCredentialBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .IapCredentialOrBuilder> + iapCredentialBuilder_; /** + * + * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * * @return Whether the iapCredential field is set. */ @java.lang.Override @@ -5031,35 +6041,49 @@ public boolean hasIapCredential() { return authenticationCase_ == 4; } /** + * + * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * * @return The iapCredential. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential getIapCredential() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + getIapCredential() { if (iapCredentialBuilder_ == null) { if (authenticationCase_ == 4) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) + authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .getDefaultInstance(); } else { if (authenticationCase_ == 4) { return iapCredentialBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .getDefaultInstance(); } } /** + * + * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * */ - public Builder setIapCredential(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential value) { + public Builder setIapCredential( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential value) { if (iapCredentialBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5073,14 +6097,19 @@ public Builder setIapCredential(com.google.cloud.websecurityscanner.v1.ScanConfi return this; } /** + * + * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * */ public Builder setIapCredential( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder builderForValue) { + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder + builderForValue) { if (iapCredentialBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -5091,18 +6120,31 @@ public Builder setIapCredential( return this; } /** + * + * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * */ - public Builder mergeIapCredential(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential value) { + public Builder mergeIapCredential( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential value) { if (iapCredentialBuilder_ == null) { - if (authenticationCase_ == 4 && - authentication_ != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance()) { - authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.newBuilder((com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_) - .mergeFrom(value).buildPartial(); + if (authenticationCase_ == 4 + && authentication_ + != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .getDefaultInstance()) { + authentication_ = + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .newBuilder( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .IapCredential) + authentication_) + .mergeFrom(value) + .buildPartial(); } else { authentication_ = value; } @@ -5118,11 +6160,15 @@ public Builder mergeIapCredential(com.google.cloud.websecurityscanner.v1.ScanCon return this; } /** + * + * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * */ public Builder clearIapCredential() { if (iapCredentialBuilder_ == null) { @@ -5141,58 +6187,88 @@ public Builder clearIapCredential() { return this; } /** + * + * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder getIapCredentialBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder + getIapCredentialBuilder() { return getIapCredentialFieldBuilder().getBuilder(); } /** + * + * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder getIapCredentialOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder + getIapCredentialOrBuilder() { if ((authenticationCase_ == 4) && (iapCredentialBuilder_ != null)) { return iapCredentialBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 4) { - return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_; + return (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) + authentication_; } - return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .getDefaultInstance(); } } /** + * + * *
        * Authentication using Identity-Aware-Proxy (IAP).
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential iap_credential = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .IapCredentialOrBuilder> getIapCredentialFieldBuilder() { if (iapCredentialBuilder_ == null) { if (!(authenticationCase_ == 4)) { - authentication_ = com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.getDefaultInstance(); - } - iapCredentialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredentialOrBuilder>( - (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) authentication_, + authentication_ = + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .getDefaultInstance(); + } + iapCredentialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .IapCredentialOrBuilder>( + (com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential) + authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 4; - onChanged();; + onChanged(); + ; return iapCredentialBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5205,30 +6281,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Authentication) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication(); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Authentication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Authentication(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authentication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Authentication(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5240,17 +6318,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ScheduleOrBuilder extends + public interface ScheduleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig.Schedule) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -5259,10 +6340,13 @@ public interface ScheduleOrBuilder extends
      * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return Whether the scheduleTime field is set. */ boolean hasScheduleTime(); /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -5271,10 +6355,13 @@ public interface ScheduleOrBuilder extends
      * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return The scheduleTime. */ com.google.protobuf.Timestamp getScheduleTime(); /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -5287,46 +6374,50 @@ public interface ScheduleOrBuilder extends
     com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder();
 
     /**
+     *
+     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2; + * * @return The intervalDurationDays. */ int getIntervalDurationDays(); } /** + * + * *
    * Scan schedule configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Schedule} */ - public static final class Schedule extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Schedule extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfig.Schedule) ScheduleOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Schedule.newBuilder() to construct. private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Schedule() { - } + + private Schedule() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Schedule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Schedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5345,31 +6436,33 @@ private Schedule( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduleTime_ != null) { + subBuilder = scheduleTime_.toBuilder(); + } + scheduleTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduleTime_); + scheduleTime_ = subBuilder.buildPartial(); + } - intervalDurationDays_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + case 16: + { + intervalDurationDays_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5377,29 +6470,33 @@ private Schedule( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.class, + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder.class); } public static final int SCHEDULE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp scheduleTime_; /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -5408,6 +6505,7 @@ private Schedule(
      * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -5415,6 +6513,8 @@ public boolean hasScheduleTime() { return scheduleTime_ != null; } /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -5423,13 +6523,18 @@ public boolean hasScheduleTime() {
      * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return The scheduleTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; } /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -5447,11 +6552,14 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
     public static final int INTERVAL_DURATION_DAYS_FIELD_NUMBER = 2;
     private int intervalDurationDays_;
     /**
+     *
+     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2; + * * @return The intervalDurationDays. */ @java.lang.Override @@ -5460,6 +6568,7 @@ public int getIntervalDurationDays() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5471,8 +6580,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (scheduleTime_ != null) { output.writeMessage(1, getScheduleTime()); } @@ -5489,12 +6597,10 @@ public int getSerializedSize() { size = 0; if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getScheduleTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getScheduleTime()); } if (intervalDurationDays_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, intervalDurationDays_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, intervalDurationDays_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5504,20 +6610,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule other = (com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule other = + (com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) obj; if (hasScheduleTime() != other.hasScheduleTime()) return false; if (hasScheduleTime()) { - if (!getScheduleTime() - .equals(other.getScheduleTime())) return false; + if (!getScheduleTime().equals(other.getScheduleTime())) return false; } - if (getIntervalDurationDays() - != other.getIntervalDurationDays()) return false; + if (getIntervalDurationDays() != other.getIntervalDurationDays()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -5541,87 +6646,94 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5631,27 +6743,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Scan schedule configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig.Schedule} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig.Schedule) com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.class, + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.newBuilder() @@ -5659,16 +6776,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -5684,13 +6800,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance(); } @@ -5705,7 +6822,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule(this); + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule result = + new com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule(this); if (scheduleTimeBuilder_ == null) { result.scheduleTime_ = scheduleTime_; } else { @@ -5720,38 +6838,41 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) other); } else { super.mergeFrom(other); return this; @@ -5759,7 +6880,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule other) { - if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance()) + return this; if (other.hasScheduleTime()) { mergeScheduleTime(other.getScheduleTime()); } @@ -5785,7 +6908,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5797,8 +6921,13 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp scheduleTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + scheduleTimeBuilder_; /** + * + * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5807,12 +6936,15 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return scheduleTimeBuilder_ != null || scheduleTime_ != null; } /** + * + * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5821,16 +6953,21 @@ public boolean hasScheduleTime() {
        * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return The scheduleTime. */ public com.google.protobuf.Timestamp getScheduleTime() { if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; } else { return scheduleTimeBuilder_.getMessage(); } } /** + * + * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5854,6 +6991,8 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5863,8 +7002,7 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp schedule_time = 1;
        */
-      public Builder setScheduleTime(
-          com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) {
         if (scheduleTimeBuilder_ == null) {
           scheduleTime_ = builderForValue.build();
           onChanged();
@@ -5875,6 +7013,8 @@ public Builder setScheduleTime(
         return this;
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5888,7 +7028,9 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         if (scheduleTimeBuilder_ == null) {
           if (scheduleTime_ != null) {
             scheduleTime_ =
-              com.google.protobuf.Timestamp.newBuilder(scheduleTime_).mergeFrom(value).buildPartial();
+                com.google.protobuf.Timestamp.newBuilder(scheduleTime_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             scheduleTime_ = value;
           }
@@ -5900,6 +7042,8 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5921,6 +7065,8 @@ public Builder clearScheduleTime() {
         return this;
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5931,11 +7077,13 @@ public Builder clearScheduleTime() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() {
-        
+
         onChanged();
         return getScheduleTimeFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5949,11 +7097,14 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
         if (scheduleTimeBuilder_ != null) {
           return scheduleTimeBuilder_.getMessageOrBuilder();
         } else {
-          return scheduleTime_ == null ?
-              com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_;
+          return scheduleTime_ == null
+              ? com.google.protobuf.Timestamp.getDefaultInstance()
+              : scheduleTime_;
         }
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -5964,26 +7115,32 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
           getScheduleTimeFieldBuilder() {
         if (scheduleTimeBuilder_ == null) {
-          scheduleTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                  getScheduleTime(),
-                  getParentForChildren(),
-                  isClean());
+          scheduleTimeBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Timestamp,
+                  com.google.protobuf.Timestamp.Builder,
+                  com.google.protobuf.TimestampOrBuilder>(
+                  getScheduleTime(), getParentForChildren(), isClean());
           scheduleTime_ = null;
         }
         return scheduleTimeBuilder_;
       }
 
-      private int intervalDurationDays_ ;
+      private int intervalDurationDays_;
       /**
+       *
+       *
        * 
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2; + * * @return The intervalDurationDays. */ @java.lang.Override @@ -5991,34 +7148,41 @@ public int getIntervalDurationDays() { return intervalDurationDays_; } /** + * + * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2; + * * @param value The intervalDurationDays to set. * @return This builder for chaining. */ public Builder setIntervalDurationDays(int value) { - + intervalDurationDays_ = value; onChanged(); return this; } /** + * + * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2; + * * @return This builder for chaining. */ public Builder clearIntervalDurationDays() { - + intervalDurationDays_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6031,12 +7195,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig.Schedule) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig.Schedule) - private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule(); } @@ -6045,16 +7210,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schedule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6069,12 +7234,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6082,6 +7248,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getDefaultInst
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -6090,14 +7257,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6105,16 +7273,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -6125,11 +7292,14 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -6138,29 +7308,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -6171,6 +7341,8 @@ public java.lang.String getDisplayName() { public static final int MAX_QPS_FIELD_NUMBER = 3; private int maxQps_; /** + * + * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -6179,6 +7351,7 @@ public java.lang.String getDisplayName() {
    * 
* * int32 max_qps = 3; + * * @return The maxQps. */ @java.lang.Override @@ -6189,34 +7362,42 @@ public int getMaxQps() { public static final int STARTING_URLS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList startingUrls_; /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; + * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList - getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList getStartingUrlsList() { return startingUrls_; } /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; + * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; + * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -6224,28 +7405,33 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; + * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString - getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } public static final int AUTHENTICATION_FIELD_NUMBER = 5; private com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication_; /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * * @return Whether the authentication field is set. */ @java.lang.Override @@ -6253,19 +7439,26 @@ public boolean hasAuthentication() { return authentication_ != null; } /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * * @return The authentication. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getAuthentication() { - return authentication_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() : authentication_; + return authentication_ == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() + : authentication_; } /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
@@ -6274,71 +7467,91 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getAuthe
    * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder
+      getAuthenticationOrBuilder() {
     return getAuthentication();
   }
 
   public static final int USER_AGENT_FIELD_NUMBER = 6;
   private int userAgent_;
   /**
+   *
+   *
    * 
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; + * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override public int getUserAgentValue() { + @java.lang.Override + public int getUserAgentValue() { return userAgent_; } /** + * + * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; + * * @return The userAgent. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent getUserAgent() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = + com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.UNRECOGNIZED + : result; } public static final int BLACKLIST_PATTERNS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList blacklistPatterns_; /** + * + * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; + * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList - getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { return blacklistPatterns_; } /** + * + * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; + * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** + * + * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -6346,28 +7559,33 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** + * + * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString - getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } public static final int SCHEDULE_FIELD_NUMBER = 8; private com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule_; /** + * + * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; + * * @return Whether the schedule field is set. */ @java.lang.Override @@ -6375,18 +7593,25 @@ public boolean hasSchedule() { return schedule_ != null; } /** + * + * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; + * * @return The schedule. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getSchedule() { - return schedule_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() : schedule_; + return schedule_ == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() + : schedule_; } /** + * + * *
    * The schedule of the ScanConfig.
    * 
@@ -6394,75 +7619,108 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getSchedule() * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder + getScheduleOrBuilder() { return getSchedule(); } public static final int EXPORT_TO_SECURITY_COMMAND_CENTER_FIELD_NUMBER = 10; private int exportToSecurityCommandCenter_; /** + * + * *
    * Controls export of scan configurations and results to Security
    * Command Center.
    * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ - @java.lang.Override public int getExportToSecurityCommandCenterValue() { + @java.lang.Override + public int getExportToSecurityCommandCenterValue() { return exportToSecurityCommandCenter_; } /** + * + * *
    * Controls export of scan configurations and results to Security
    * Command Center.
    * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @return The exportToSecurityCommandCenter. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter + getExportToSecurityCommandCenter() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.valueOf(exportToSecurityCommandCenter_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.valueOf( + exportToSecurityCommandCenter_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter + .UNRECOGNIZED + : result; } public static final int RISK_LEVEL_FIELD_NUMBER = 12; private int riskLevel_; /** + * + * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; + * * @return The enum numeric value on the wire for riskLevel. */ - @java.lang.Override public int getRiskLevelValue() { + @java.lang.Override + public int getRiskLevelValue() { return riskLevel_; } /** + * + * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; + * * @return The riskLevel. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel getRiskLevel() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel getRiskLevel() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.valueOf(riskLevel_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = + com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.valueOf(riskLevel_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.UNRECOGNIZED + : result; } public static final int MANAGED_SCAN_FIELD_NUMBER = 13; private boolean managedScan_; /** + * + * *
    * Whether the scan config is managed by Web Security Scanner, output
    * only.
    * 
* * bool managed_scan = 13; + * * @return The managedScan. */ @java.lang.Override @@ -6473,12 +7731,15 @@ public boolean getManagedScan() { public static final int STATIC_IP_SCAN_FIELD_NUMBER = 14; private boolean staticIpScan_; /** + * + * *
    * Whether the scan configuration has enabled static IP address scan feature.
    * If enabled, the scanner will access applications from static IP addresses.
    * 
* * bool static_ip_scan = 14; + * * @return The staticIpScan. */ @java.lang.Override @@ -6487,6 +7748,7 @@ public boolean getStaticIpScan() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6498,8 +7760,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -6515,7 +7776,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (authentication_ != null) { output.writeMessage(5, getAuthentication()); } - if (userAgent_ != com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { + if (userAgent_ + != com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED + .getNumber()) { output.writeEnum(6, userAgent_); } for (int i = 0; i < blacklistPatterns_.size(); i++) { @@ -6524,10 +7787,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (schedule_ != null) { output.writeMessage(8, getSchedule()); } - if (exportToSecurityCommandCenter_ != com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED.getNumber()) { + if (exportToSecurityCommandCenter_ + != com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter + .EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED + .getNumber()) { output.writeEnum(10, exportToSecurityCommandCenter_); } - if (riskLevel_ != com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED.getNumber()) { + if (riskLevel_ + != com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED + .getNumber()) { output.writeEnum(12, riskLevel_); } if (managedScan_ != false) { @@ -6552,8 +7820,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (maxQps_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxQps_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxQps_); } { int dataSize = 0; @@ -6564,12 +7831,12 @@ public int getSerializedSize() { size += 1 * getStartingUrlsList().size(); } if (authentication_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAuthentication()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthentication()); } - if (userAgent_ != com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, userAgent_); + if (userAgent_ + != com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, userAgent_); } { int dataSize = 0; @@ -6580,24 +7847,25 @@ public int getSerializedSize() { size += 1 * getBlacklistPatternsList().size(); } if (schedule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSchedule()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSchedule()); } - if (exportToSecurityCommandCenter_ != com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, exportToSecurityCommandCenter_); + if (exportToSecurityCommandCenter_ + != com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter + .EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(10, exportToSecurityCommandCenter_); } - if (riskLevel_ != com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, riskLevel_); + if (riskLevel_ + != com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, riskLevel_); } if (managedScan_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, managedScan_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, managedScan_); } if (staticIpScan_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, staticIpScan_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, staticIpScan_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -6607,40 +7875,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfig)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfig other = (com.google.cloud.websecurityscanner.v1.ScanConfig) obj; + com.google.cloud.websecurityscanner.v1.ScanConfig other = + (com.google.cloud.websecurityscanner.v1.ScanConfig) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (getMaxQps() - != other.getMaxQps()) return false; - if (!getStartingUrlsList() - .equals(other.getStartingUrlsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (getMaxQps() != other.getMaxQps()) return false; + if (!getStartingUrlsList().equals(other.getStartingUrlsList())) return false; if (hasAuthentication() != other.hasAuthentication()) return false; if (hasAuthentication()) { - if (!getAuthentication() - .equals(other.getAuthentication())) return false; + if (!getAuthentication().equals(other.getAuthentication())) return false; } if (userAgent_ != other.userAgent_) return false; - if (!getBlacklistPatternsList() - .equals(other.getBlacklistPatternsList())) return false; + if (!getBlacklistPatternsList().equals(other.getBlacklistPatternsList())) return false; if (hasSchedule() != other.hasSchedule()) return false; if (hasSchedule()) { - if (!getSchedule() - .equals(other.getSchedule())) return false; + if (!getSchedule().equals(other.getSchedule())) return false; } if (exportToSecurityCommandCenter_ != other.exportToSecurityCommandCenter_) return false; if (riskLevel_ != other.riskLevel_) return false; - if (getManagedScan() - != other.getManagedScan()) return false; - if (getStaticIpScan() - != other.getStaticIpScan()) return false; + if (getManagedScan() != other.getManagedScan()) return false; + if (getStaticIpScan() != other.getStaticIpScan()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -6681,128 +7941,135 @@ public int hashCode() { hash = (37 * hash) + RISK_LEVEL_FIELD_NUMBER; hash = (53 * hash) + riskLevel_; hash = (37 * hash) + MANAGED_SCAN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getManagedScan()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getManagedScan()); hash = (37 * hash) + STATIC_IP_SCAN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getStaticIpScan()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStaticIpScan()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A ScanConfig resource contains the configurations to launch a scan.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfig) com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.ScanConfig.class, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder.class); + com.google.cloud.websecurityscanner.v1.ScanConfig.class, + com.google.cloud.websecurityscanner.v1.ScanConfig.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.newBuilder() @@ -6810,16 +8077,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -6859,9 +8125,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; } @java.lang.Override @@ -6880,7 +8146,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig buildPartial() { - com.google.cloud.websecurityscanner.v1.ScanConfig result = new com.google.cloud.websecurityscanner.v1.ScanConfig(this); + com.google.cloud.websecurityscanner.v1.ScanConfig result = + new com.google.cloud.websecurityscanner.v1.ScanConfig(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -6918,38 +8185,39 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfig) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfig) other); } else { super.mergeFrom(other); return this; @@ -6957,7 +8225,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfig other) { - if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -7029,7 +8298,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.ScanConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7038,10 +8308,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -7049,13 +8322,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -7064,6 +8337,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -7071,15 +8346,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -7087,6 +8361,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -7094,20 +8370,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -7115,15 +8393,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -7131,16 +8412,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -7148,18 +8429,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -7168,20 +8451,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -7189,61 +8473,70 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private int maxQps_ ; + private int maxQps_; /** + * + * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -7252,6 +8545,7 @@ public Builder setDisplayNameBytes(
      * 
* * int32 max_qps = 3; + * * @return The maxQps. */ @java.lang.Override @@ -7259,6 +8553,8 @@ public int getMaxQps() { return maxQps_; } /** + * + * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -7267,16 +8563,19 @@ public int getMaxQps() {
      * 
* * int32 max_qps = 3; + * * @param value The maxQps to set. * @return This builder for chaining. */ public Builder setMaxQps(int value) { - + maxQps_ = value; onChanged(); return this; } /** + * + * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -7285,51 +8584,62 @@ public Builder setMaxQps(int value) {
      * 
* * int32 max_qps = 3; + * * @return This builder for chaining. */ public Builder clearMaxQps() { - + maxQps_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList startingUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList startingUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureStartingUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { startingUrls_ = new com.google.protobuf.LazyStringArrayList(startingUrls_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; + * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList - getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList getStartingUrlsList() { return startingUrls_.getUnmodifiableView(); } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; + * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; + * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -7337,80 +8647,90 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; + * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString - getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; + * * @param index The index to set the value at. * @param value The startingUrls to set. * @return This builder for chaining. */ - public Builder setStartingUrls( - int index, java.lang.String value) { + public Builder setStartingUrls(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; + * * @param value The startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrls( - java.lang.String value) { + public Builder addStartingUrls(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); return this; } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; + * * @param values The startingUrls to add. * @return This builder for chaining. */ - public Builder addAllStartingUrls( - java.lang.Iterable values) { + public Builder addAllStartingUrls(java.lang.Iterable values) { ensureStartingUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, startingUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, startingUrls_); onChanged(); return this; } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; + * * @return This builder for chaining. */ public Builder clearStartingUrls() { @@ -7420,20 +8740,22 @@ public Builder clearStartingUrls() { return this; } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4; + * * @param value The bytes of the startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrlsBytes( - com.google.protobuf.ByteString value) { + public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); @@ -7442,44 +8764,61 @@ public Builder addStartingUrlsBytes( private com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder> authenticationBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder> + authenticationBuilder_; /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * + * * @return Whether the authentication field is set. */ public boolean hasAuthentication() { return authenticationBuilder_ != null || authentication_ != null; } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * + * * @return The authentication. */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getAuthentication() { if (authenticationBuilder_ == null) { - return authentication_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() : authentication_; + return authentication_ == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() + : authentication_; } else { return authenticationBuilder_.getMessage(); } } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * */ - public Builder setAuthentication(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication value) { + public Builder setAuthentication( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7493,12 +8832,15 @@ public Builder setAuthentication(com.google.cloud.websecurityscanner.v1.ScanConf return this; } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * */ public Builder setAuthentication( com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder builderForValue) { @@ -7512,18 +8854,25 @@ public Builder setAuthentication( return this; } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * */ - public Builder mergeAuthentication(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication value) { + public Builder mergeAuthentication( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (authentication_ != null) { authentication_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.newBuilder(authentication_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.newBuilder( + authentication_) + .mergeFrom(value) + .buildPartial(); } else { authentication_ = value; } @@ -7535,12 +8884,15 @@ public Builder mergeAuthentication(com.google.cloud.websecurityscanner.v1.ScanCo return this; } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * */ public Builder clearAuthentication() { if (authenticationBuilder_ == null) { @@ -7554,51 +8906,66 @@ public Builder clearAuthentication() { return this; } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder getAuthenticationBuilder() { - + public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder + getAuthenticationBuilder() { + onChanged(); return getAuthenticationFieldBuilder().getBuilder(); } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder + getAuthenticationOrBuilder() { if (authenticationBuilder_ != null) { return authenticationBuilder_.getMessageOrBuilder(); } else { - return authentication_ == null ? - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() : authentication_; + return authentication_ == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() + : authentication_; } } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder> getAuthenticationFieldBuilder() { if (authenticationBuilder_ == null) { - authenticationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder>( - getAuthentication(), - getParentForChildren(), - isClean()); + authenticationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication, + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder>( + getAuthentication(), getParentForChildren(), isClean()); authentication_ = null; } return authenticationBuilder_; @@ -7606,51 +8973,67 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder private int userAgent_ = 0; /** + * + * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; + * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override public int getUserAgentValue() { + @java.lang.Override + public int getUserAgentValue() { return userAgent_; } /** + * + * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; + * * @param value The enum numeric value on the wire for userAgent to set. * @return This builder for chaining. */ public Builder setUserAgentValue(int value) { - + userAgent_ = value; onChanged(); return this; } /** + * + * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; + * * @return The userAgent. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = + com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.UNRECOGNIZED + : result; } /** + * + * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; + * * @param value The userAgent to set. * @return This builder for chaining. */ @@ -7658,65 +9041,78 @@ public Builder setUserAgent(com.google.cloud.websecurityscanner.v1.ScanConfig.Us if (value == null) { throw new NullPointerException(); } - + userAgent_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; + * * @return This builder for chaining. */ public Builder clearUserAgent() { - + userAgent_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList blacklistPatterns_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureBlacklistPatternsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(blacklistPatterns_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; + * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList - getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { return blacklistPatterns_.getUnmodifiableView(); } /** + * + * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; + * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** + * + * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -7724,85 +9120,95 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** + * + * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString - getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } /** + * + * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param index The index to set the value at. * @param value The blacklistPatterns to set. * @return This builder for chaining. */ - public Builder setBlacklistPatterns( - int index, java.lang.String value) { + public Builder setBlacklistPatterns(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.set(index, value); onChanged(); return this; } /** + * + * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param value The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatterns( - java.lang.String value) { + public Builder addBlacklistPatterns(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); return this; } /** + * + * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param values The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addAllBlacklistPatterns( - java.lang.Iterable values) { + public Builder addAllBlacklistPatterns(java.lang.Iterable values) { ensureBlacklistPatternsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blacklistPatterns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blacklistPatterns_); onChanged(); return this; } /** + * + * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; + * * @return This builder for chaining. */ public Builder clearBlacklistPatterns() { @@ -7812,21 +9218,23 @@ public Builder clearBlacklistPatterns() { return this; } /** + * + * *
      * The excluded URL patterns as described in
      * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param value The bytes of the blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatternsBytes( - com.google.protobuf.ByteString value) { + public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); @@ -7835,34 +9243,47 @@ public Builder addBlacklistPatternsBytes( private com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder> scheduleBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder> + scheduleBuilder_; /** + * + * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; + * * @return Whether the schedule field is set. */ public boolean hasSchedule() { return scheduleBuilder_ != null || schedule_ != null; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; + * * @return The schedule. */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getSchedule() { if (scheduleBuilder_ == null) { - return schedule_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() : schedule_; + return schedule_ == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() + : schedule_; } else { return scheduleBuilder_.getMessage(); } } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -7883,6 +9304,8 @@ public Builder setSchedule(com.google.cloud.websecurityscanner.v1.ScanConfig.Sch return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -7901,6 +9324,8 @@ public Builder setSchedule( return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -7911,7 +9336,9 @@ public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1.ScanConfig.S if (scheduleBuilder_ == null) { if (schedule_ != null) { schedule_ = - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.newBuilder(schedule_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.newBuilder(schedule_) + .mergeFrom(value) + .buildPartial(); } else { schedule_ = value; } @@ -7923,6 +9350,8 @@ public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1.ScanConfig.S return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -7941,6 +9370,8 @@ public Builder clearSchedule() { return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -7948,26 +9379,32 @@ public Builder clearSchedule() { * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; */ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder getScheduleBuilder() { - + onChanged(); return getScheduleFieldBuilder().getBuilder(); } /** + * + * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; */ - public com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder + getScheduleOrBuilder() { if (scheduleBuilder_ != null) { return scheduleBuilder_.getMessageOrBuilder(); } else { - return schedule_ == null ? - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() : schedule_; + return schedule_ == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() + : schedule_; } } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -7975,14 +9412,17 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder getSc * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder> getScheduleFieldBuilder() { if (scheduleBuilder_ == null) { - scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder>( - getSchedule(), - getParentForChildren(), - isClean()); + scheduleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule, + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder, + com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder>( + getSchedule(), getParentForChildren(), isClean()); schedule_ = null; } return scheduleBuilder_; @@ -7990,78 +9430,111 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder getSc private int exportToSecurityCommandCenter_ = 0; /** + * + * *
      * Controls export of scan configurations and results to Security
      * Command Center.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ - @java.lang.Override public int getExportToSecurityCommandCenterValue() { + @java.lang.Override + public int getExportToSecurityCommandCenterValue() { return exportToSecurityCommandCenter_; } /** + * + * *
      * Controls export of scan configurations and results to Security
      * Command Center.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @param value The enum numeric value on the wire for exportToSecurityCommandCenter to set. * @return This builder for chaining. */ public Builder setExportToSecurityCommandCenterValue(int value) { - + exportToSecurityCommandCenter_ = value; onChanged(); return this; } /** + * + * *
      * Controls export of scan configurations and results to Security
      * Command Center.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @return The exportToSecurityCommandCenter. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { + public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter + getExportToSecurityCommandCenter() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.valueOf(exportToSecurityCommandCenter_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.valueOf( + exportToSecurityCommandCenter_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter + .UNRECOGNIZED + : result; } /** + * + * *
      * Controls export of scan configurations and results to Security
      * Command Center.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @param value The exportToSecurityCommandCenter to set. * @return This builder for chaining. */ - public Builder setExportToSecurityCommandCenter(com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter value) { + public Builder setExportToSecurityCommandCenter( + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter value) { if (value == null) { throw new NullPointerException(); } - + exportToSecurityCommandCenter_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Controls export of scan configurations and results to Security
      * Command Center.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @return This builder for chaining. */ public Builder clearExportToSecurityCommandCenter() { - + exportToSecurityCommandCenter_ = 0; onChanged(); return this; @@ -8069,51 +9542,67 @@ public Builder clearExportToSecurityCommandCenter() { private int riskLevel_ = 0; /** + * + * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; + * * @return The enum numeric value on the wire for riskLevel. */ - @java.lang.Override public int getRiskLevelValue() { + @java.lang.Override + public int getRiskLevelValue() { return riskLevel_; } /** + * + * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; + * * @param value The enum numeric value on the wire for riskLevel to set. * @return This builder for chaining. */ public Builder setRiskLevelValue(int value) { - + riskLevel_ = value; onChanged(); return this; } /** + * + * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; + * * @return The riskLevel. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel getRiskLevel() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.valueOf(riskLevel_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = + com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.valueOf(riskLevel_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.UNRECOGNIZED + : result; } /** + * + * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; + * * @param value The riskLevel to set. * @return This builder for chaining. */ @@ -8121,34 +9610,40 @@ public Builder setRiskLevel(com.google.cloud.websecurityscanner.v1.ScanConfig.Ri if (value == null) { throw new NullPointerException(); } - + riskLevel_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; + * * @return This builder for chaining. */ public Builder clearRiskLevel() { - + riskLevel_ = 0; onChanged(); return this; } - private boolean managedScan_ ; + private boolean managedScan_; /** + * + * *
      * Whether the scan config is managed by Web Security Scanner, output
      * only.
      * 
* * bool managed_scan = 13; + * * @return The managedScan. */ @java.lang.Override @@ -8156,45 +9651,54 @@ public boolean getManagedScan() { return managedScan_; } /** + * + * *
      * Whether the scan config is managed by Web Security Scanner, output
      * only.
      * 
* * bool managed_scan = 13; + * * @param value The managedScan to set. * @return This builder for chaining. */ public Builder setManagedScan(boolean value) { - + managedScan_ = value; onChanged(); return this; } /** + * + * *
      * Whether the scan config is managed by Web Security Scanner, output
      * only.
      * 
* * bool managed_scan = 13; + * * @return This builder for chaining. */ public Builder clearManagedScan() { - + managedScan_ = false; onChanged(); return this; } - private boolean staticIpScan_ ; + private boolean staticIpScan_; /** + * + * *
      * Whether the scan configuration has enabled static IP address scan feature.
      * If enabled, the scanner will access applications from static IP addresses.
      * 
* * bool static_ip_scan = 14; + * * @return The staticIpScan. */ @java.lang.Override @@ -8202,39 +9706,45 @@ public boolean getStaticIpScan() { return staticIpScan_; } /** + * + * *
      * Whether the scan configuration has enabled static IP address scan feature.
      * If enabled, the scanner will access applications from static IP addresses.
      * 
* * bool static_ip_scan = 14; + * * @param value The staticIpScan to set. * @return This builder for chaining. */ public Builder setStaticIpScan(boolean value) { - + staticIpScan_ = value; onChanged(); return this; } /** + * + * *
      * Whether the scan configuration has enabled static IP address scan feature.
      * If enabled, the scanner will access applications from static IP addresses.
      * 
* * bool static_ip_scan = 14; + * * @return This builder for chaining. */ public Builder clearStaticIpScan() { - + staticIpScan_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -8244,12 +9754,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfig) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfig) private static final com.google.cloud.websecurityscanner.v1.ScanConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfig(); } @@ -8258,16 +9768,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8282,6 +9792,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java index 68d6d205..cbde79d4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_config_error.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Defines a custom error message used by CreateScanConfig and UpdateScanConfig
  * APIs when scan configuration validation fails. It is also reported as part of
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfigError}
  */
-public final class ScanConfigError extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ScanConfigError extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanConfigError)
     ScanConfigErrorOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ScanConfigError.newBuilder() to construct.
   private ScanConfigError(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ScanConfigError() {
     code_ = 0;
     fieldName_ = "";
@@ -29,16 +47,15 @@ private ScanConfigError() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ScanConfigError();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ScanConfigError(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,25 +74,27 @@ private ScanConfigError(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            code_ = rawValue;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              code_ = rawValue;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            fieldName_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              fieldName_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,27 +102,31 @@ private ScanConfigError(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto
+        .internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto
+        .internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.ScanConfigError.class, com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder.class);
+            com.google.cloud.websecurityscanner.v1.ScanConfigError.class,
+            com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Output only.
    * Defines an error reason code.
@@ -112,9 +135,10 @@ private ScanConfigError(
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanConfigError.Code}
    */
-  public enum Code
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Code implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * There is no error.
      * 
@@ -123,6 +147,8 @@ public enum Code */ CODE_UNSPECIFIED(0, 0), /** + * + * *
      * Indicates an internal server error.
      * Please DO NOT USE THIS ERROR CODE unless the root cause is truly unknown.
@@ -132,6 +158,8 @@ public enum Code
      */
     INTERNAL_ERROR(2, 1),
     /**
+     *
+     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot validate the scan
      * settings due to an App Engine API backend error.
@@ -141,6 +169,8 @@ public enum Code
      */
     APPENGINE_API_BACKEND_ERROR(3, 2),
     /**
+     *
+     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot access the
      * App Engine API to validate scan settings.
@@ -150,6 +180,8 @@ public enum Code
      */
     APPENGINE_API_NOT_ACCESSIBLE(4, 3),
     /**
+     *
+     *
      * 
      * One of the seed URLs is an App Engine URL but the Default Host of the
      * App Engine is not set.
@@ -159,6 +191,8 @@ public enum Code
      */
     APPENGINE_DEFAULT_HOST_MISSING(5, 4),
     /**
+     *
+     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -167,6 +201,8 @@ public enum Code */ CANNOT_USE_GOOGLE_COM_ACCOUNT(6, 6), /** + * + * *
      * The account of the scan creator can not be used for scanning.
      * 
@@ -175,6 +211,8 @@ public enum Code */ CANNOT_USE_OWNER_ACCOUNT(7, 7), /** + * + * *
      * This scan targets Compute Engine, but we cannot validate scan settings
      * due to a Compute Engine API backend error.
@@ -184,6 +222,8 @@ public enum Code
      */
     COMPUTE_API_BACKEND_ERROR(8, 8),
     /**
+     *
+     *
      * 
      * This scan targets Compute Engine, but we cannot access the Compute Engine
      * API to validate the scan settings.
@@ -193,6 +233,8 @@ public enum Code
      */
     COMPUTE_API_NOT_ACCESSIBLE(9, 9),
     /**
+     *
+     *
      * 
      * The Custom Login URL does not belong to the current project.
      * 
@@ -201,6 +243,8 @@ public enum Code */ CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT(10, 10), /** + * + * *
      * The Custom Login URL is malformed (can not be parsed).
      * 
@@ -209,6 +253,8 @@ public enum Code */ CUSTOM_LOGIN_URL_MALFORMED(11, 11), /** + * + * *
      * The Custom Login URL is mapped to a non-routable IP address in DNS.
      * 
@@ -217,6 +263,8 @@ public enum Code */ CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS(12, 12), /** + * + * *
      * The Custom Login URL is mapped to an IP address which is not reserved for
      * the current project.
@@ -226,6 +274,8 @@ public enum Code
      */
     CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS(13, 13),
     /**
+     *
+     *
      * 
      * The Custom Login URL has a non-routable IP address.
      * 
@@ -234,6 +284,8 @@ public enum Code */ CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS(14, 14), /** + * + * *
      * The Custom Login URL has an IP address which is not reserved for the
      * current project.
@@ -243,6 +295,8 @@ public enum Code
      */
     CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS(15, 15),
     /**
+     *
+     *
      * 
      * Another scan with the same name (case-sensitive) already exists.
      * 
@@ -251,6 +305,8 @@ public enum Code */ DUPLICATE_SCAN_NAME(16, 16), /** + * + * *
      * A field is set to an invalid value.
      * 
@@ -259,6 +315,8 @@ public enum Code */ INVALID_FIELD_VALUE(17, 18), /** + * + * *
      * There was an error trying to authenticate to the scan target.
      * 
@@ -267,6 +325,8 @@ public enum Code */ FAILED_TO_AUTHENTICATE_TO_TARGET(18, 19), /** + * + * *
      * Finding type value is not specified in the list findings request.
      * 
@@ -275,6 +335,8 @@ public enum Code */ FINDING_TYPE_UNSPECIFIED(19, 20), /** + * + * *
      * Scan targets Compute Engine, yet current project was not whitelisted for
      * Google Compute Engine Scanning Alpha access.
@@ -284,6 +346,8 @@ public enum Code
      */
     FORBIDDEN_TO_SCAN_COMPUTE(20, 21),
     /**
+     *
+     *
      * 
      * User tries to update managed scan
      * 
@@ -292,6 +356,8 @@ public enum Code */ FORBIDDEN_UPDATE_TO_MANAGED_SCAN(21, 43), /** + * + * *
      * The supplied filter is malformed. For example, it can not be parsed, does
      * not have a filter type in expression, or the same filter type appears
@@ -302,6 +368,8 @@ public enum Code
      */
     MALFORMED_FILTER(22, 22),
     /**
+     *
+     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -310,6 +378,8 @@ public enum Code */ MALFORMED_RESOURCE_NAME(23, 23), /** + * + * *
      * The current project is not in an active state.
      * 
@@ -318,6 +388,8 @@ public enum Code */ PROJECT_INACTIVE(24, 24), /** + * + * *
      * A required field is not set.
      * 
@@ -326,6 +398,8 @@ public enum Code */ REQUIRED_FIELD(25, 25), /** + * + * *
      * Project id, scanconfig id, scanrun id, or finding id are not consistent
      * with each other in resource name.
@@ -335,6 +409,8 @@ public enum Code
      */
     RESOURCE_NAME_INCONSISTENT(26, 26),
     /**
+     *
+     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -343,6 +419,8 @@ public enum Code */ SCAN_ALREADY_RUNNING(27, 27), /** + * + * *
      * The scan that was requested to be stopped is not running.
      * 
@@ -351,6 +429,8 @@ public enum Code */ SCAN_NOT_RUNNING(28, 28), /** + * + * *
      * One of the seed URLs does not belong to the current project.
      * 
@@ -359,6 +439,8 @@ public enum Code */ SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT(29, 29), /** + * + * *
      * One of the seed URLs is malformed (can not be parsed).
      * 
@@ -367,6 +449,8 @@ public enum Code */ SEED_URL_MALFORMED(30, 30), /** + * + * *
      * One of the seed URLs is mapped to a non-routable IP address in DNS.
      * 
@@ -375,6 +459,8 @@ public enum Code */ SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS(31, 31), /** + * + * *
      * One of the seed URLs is mapped to an IP address which is not reserved
      * for the current project.
@@ -384,6 +470,8 @@ public enum Code
      */
     SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS(32, 32),
     /**
+     *
+     *
      * 
      * One of the seed URLs has on-routable IP address.
      * 
@@ -392,6 +480,8 @@ public enum Code */ SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS(33, 33), /** + * + * *
      * One of the seed URLs has an IP address that is not reserved
      * for the current project.
@@ -401,6 +491,8 @@ public enum Code
      */
     SEED_URL_HAS_UNRESERVED_IP_ADDRESS(34, 35),
     /**
+     *
+     *
      * 
      * The Web Security Scanner service account is not configured under the
      * project.
@@ -410,6 +502,8 @@ public enum Code
      */
     SERVICE_ACCOUNT_NOT_CONFIGURED(35, 36),
     /**
+     *
+     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -418,6 +512,8 @@ public enum Code */ TOO_MANY_SCANS(36, 37), /** + * + * *
      * Resolving the details of the current project fails.
      * 
@@ -426,6 +522,8 @@ public enum Code */ UNABLE_TO_RESOLVE_PROJECT_INFO(37, 38), /** + * + * *
      * One or more blacklist patterns were in the wrong format.
      * 
@@ -434,6 +532,8 @@ public enum Code */ UNSUPPORTED_BLACKLIST_PATTERN_FORMAT(38, 39), /** + * + * *
      * The supplied filter is not supported.
      * 
@@ -442,6 +542,8 @@ public enum Code */ UNSUPPORTED_FILTER(39, 40), /** + * + * *
      * The supplied finding type is not supported. For example, we do not
      * provide findings of the given finding type.
@@ -451,6 +553,8 @@ public enum Code
      */
     UNSUPPORTED_FINDING_TYPE(40, 41),
     /**
+     *
+     *
      * 
      * The URL scheme of one or more of the supplied URLs is not supported.
      * 
@@ -462,6 +566,8 @@ public enum Code ; /** + * + * *
      * There is no error.
      * 
@@ -470,6 +576,8 @@ public enum Code */ public static final Code OK = CODE_UNSPECIFIED; /** + * + * *
      * There is no error.
      * 
@@ -478,6 +586,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * There is no error.
      * 
@@ -486,6 +596,8 @@ public enum Code */ public static final int OK_VALUE = 0; /** + * + * *
      * Indicates an internal server error.
      * Please DO NOT USE THIS ERROR CODE unless the root cause is truly unknown.
@@ -495,6 +607,8 @@ public enum Code
      */
     public static final int INTERNAL_ERROR_VALUE = 1;
     /**
+     *
+     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot validate the scan
      * settings due to an App Engine API backend error.
@@ -504,6 +618,8 @@ public enum Code
      */
     public static final int APPENGINE_API_BACKEND_ERROR_VALUE = 2;
     /**
+     *
+     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot access the
      * App Engine API to validate scan settings.
@@ -513,6 +629,8 @@ public enum Code
      */
     public static final int APPENGINE_API_NOT_ACCESSIBLE_VALUE = 3;
     /**
+     *
+     *
      * 
      * One of the seed URLs is an App Engine URL but the Default Host of the
      * App Engine is not set.
@@ -522,6 +640,8 @@ public enum Code
      */
     public static final int APPENGINE_DEFAULT_HOST_MISSING_VALUE = 4;
     /**
+     *
+     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -530,6 +650,8 @@ public enum Code */ public static final int CANNOT_USE_GOOGLE_COM_ACCOUNT_VALUE = 6; /** + * + * *
      * The account of the scan creator can not be used for scanning.
      * 
@@ -538,6 +660,8 @@ public enum Code */ public static final int CANNOT_USE_OWNER_ACCOUNT_VALUE = 7; /** + * + * *
      * This scan targets Compute Engine, but we cannot validate scan settings
      * due to a Compute Engine API backend error.
@@ -547,6 +671,8 @@ public enum Code
      */
     public static final int COMPUTE_API_BACKEND_ERROR_VALUE = 8;
     /**
+     *
+     *
      * 
      * This scan targets Compute Engine, but we cannot access the Compute Engine
      * API to validate the scan settings.
@@ -556,6 +682,8 @@ public enum Code
      */
     public static final int COMPUTE_API_NOT_ACCESSIBLE_VALUE = 9;
     /**
+     *
+     *
      * 
      * The Custom Login URL does not belong to the current project.
      * 
@@ -564,6 +692,8 @@ public enum Code */ public static final int CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT_VALUE = 10; /** + * + * *
      * The Custom Login URL is malformed (can not be parsed).
      * 
@@ -572,6 +702,8 @@ public enum Code */ public static final int CUSTOM_LOGIN_URL_MALFORMED_VALUE = 11; /** + * + * *
      * The Custom Login URL is mapped to a non-routable IP address in DNS.
      * 
@@ -580,6 +712,8 @@ public enum Code */ public static final int CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS_VALUE = 12; /** + * + * *
      * The Custom Login URL is mapped to an IP address which is not reserved for
      * the current project.
@@ -589,6 +723,8 @@ public enum Code
      */
     public static final int CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS_VALUE = 13;
     /**
+     *
+     *
      * 
      * The Custom Login URL has a non-routable IP address.
      * 
@@ -597,6 +733,8 @@ public enum Code */ public static final int CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS_VALUE = 14; /** + * + * *
      * The Custom Login URL has an IP address which is not reserved for the
      * current project.
@@ -606,6 +744,8 @@ public enum Code
      */
     public static final int CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS_VALUE = 15;
     /**
+     *
+     *
      * 
      * Another scan with the same name (case-sensitive) already exists.
      * 
@@ -614,6 +754,8 @@ public enum Code */ public static final int DUPLICATE_SCAN_NAME_VALUE = 16; /** + * + * *
      * A field is set to an invalid value.
      * 
@@ -622,6 +764,8 @@ public enum Code */ public static final int INVALID_FIELD_VALUE_VALUE = 18; /** + * + * *
      * There was an error trying to authenticate to the scan target.
      * 
@@ -630,6 +774,8 @@ public enum Code */ public static final int FAILED_TO_AUTHENTICATE_TO_TARGET_VALUE = 19; /** + * + * *
      * Finding type value is not specified in the list findings request.
      * 
@@ -638,6 +784,8 @@ public enum Code */ public static final int FINDING_TYPE_UNSPECIFIED_VALUE = 20; /** + * + * *
      * Scan targets Compute Engine, yet current project was not whitelisted for
      * Google Compute Engine Scanning Alpha access.
@@ -647,6 +795,8 @@ public enum Code
      */
     public static final int FORBIDDEN_TO_SCAN_COMPUTE_VALUE = 21;
     /**
+     *
+     *
      * 
      * User tries to update managed scan
      * 
@@ -655,6 +805,8 @@ public enum Code */ public static final int FORBIDDEN_UPDATE_TO_MANAGED_SCAN_VALUE = 43; /** + * + * *
      * The supplied filter is malformed. For example, it can not be parsed, does
      * not have a filter type in expression, or the same filter type appears
@@ -665,6 +817,8 @@ public enum Code
      */
     public static final int MALFORMED_FILTER_VALUE = 22;
     /**
+     *
+     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -673,6 +827,8 @@ public enum Code */ public static final int MALFORMED_RESOURCE_NAME_VALUE = 23; /** + * + * *
      * The current project is not in an active state.
      * 
@@ -681,6 +837,8 @@ public enum Code */ public static final int PROJECT_INACTIVE_VALUE = 24; /** + * + * *
      * A required field is not set.
      * 
@@ -689,6 +847,8 @@ public enum Code */ public static final int REQUIRED_FIELD_VALUE = 25; /** + * + * *
      * Project id, scanconfig id, scanrun id, or finding id are not consistent
      * with each other in resource name.
@@ -698,6 +858,8 @@ public enum Code
      */
     public static final int RESOURCE_NAME_INCONSISTENT_VALUE = 26;
     /**
+     *
+     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -706,6 +868,8 @@ public enum Code */ public static final int SCAN_ALREADY_RUNNING_VALUE = 27; /** + * + * *
      * The scan that was requested to be stopped is not running.
      * 
@@ -714,6 +878,8 @@ public enum Code */ public static final int SCAN_NOT_RUNNING_VALUE = 28; /** + * + * *
      * One of the seed URLs does not belong to the current project.
      * 
@@ -722,6 +888,8 @@ public enum Code */ public static final int SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT_VALUE = 29; /** + * + * *
      * One of the seed URLs is malformed (can not be parsed).
      * 
@@ -730,6 +898,8 @@ public enum Code */ public static final int SEED_URL_MALFORMED_VALUE = 30; /** + * + * *
      * One of the seed URLs is mapped to a non-routable IP address in DNS.
      * 
@@ -738,6 +908,8 @@ public enum Code */ public static final int SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS_VALUE = 31; /** + * + * *
      * One of the seed URLs is mapped to an IP address which is not reserved
      * for the current project.
@@ -747,6 +919,8 @@ public enum Code
      */
     public static final int SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS_VALUE = 32;
     /**
+     *
+     *
      * 
      * One of the seed URLs has on-routable IP address.
      * 
@@ -755,6 +929,8 @@ public enum Code */ public static final int SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS_VALUE = 33; /** + * + * *
      * One of the seed URLs has an IP address that is not reserved
      * for the current project.
@@ -764,6 +940,8 @@ public enum Code
      */
     public static final int SEED_URL_HAS_UNRESERVED_IP_ADDRESS_VALUE = 35;
     /**
+     *
+     *
      * 
      * The Web Security Scanner service account is not configured under the
      * project.
@@ -773,6 +951,8 @@ public enum Code
      */
     public static final int SERVICE_ACCOUNT_NOT_CONFIGURED_VALUE = 36;
     /**
+     *
+     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -781,6 +961,8 @@ public enum Code */ public static final int TOO_MANY_SCANS_VALUE = 37; /** + * + * *
      * Resolving the details of the current project fails.
      * 
@@ -789,6 +971,8 @@ public enum Code */ public static final int UNABLE_TO_RESOLVE_PROJECT_INFO_VALUE = 38; /** + * + * *
      * One or more blacklist patterns were in the wrong format.
      * 
@@ -797,6 +981,8 @@ public enum Code */ public static final int UNSUPPORTED_BLACKLIST_PATTERN_FORMAT_VALUE = 39; /** + * + * *
      * The supplied filter is not supported.
      * 
@@ -805,6 +991,8 @@ public enum Code */ public static final int UNSUPPORTED_FILTER_VALUE = 40; /** + * + * *
      * The supplied finding type is not supported. For example, we do not
      * provide findings of the given finding type.
@@ -814,6 +1002,8 @@ public enum Code
      */
     public static final int UNSUPPORTED_FINDING_TYPE_VALUE = 41;
     /**
+     *
+     *
      * 
      * The URL scheme of one or more of the supplied URLs is not supported.
      * 
@@ -822,7 +1012,6 @@ public enum Code */ public static final int UNSUPPORTED_URL_SCHEME_VALUE = 42; - public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( @@ -847,91 +1036,174 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: return CODE_UNSPECIFIED; - case 1: return INTERNAL_ERROR; - case 2: return APPENGINE_API_BACKEND_ERROR; - case 3: return APPENGINE_API_NOT_ACCESSIBLE; - case 4: return APPENGINE_DEFAULT_HOST_MISSING; - case 6: return CANNOT_USE_GOOGLE_COM_ACCOUNT; - case 7: return CANNOT_USE_OWNER_ACCOUNT; - case 8: return COMPUTE_API_BACKEND_ERROR; - case 9: return COMPUTE_API_NOT_ACCESSIBLE; - case 10: return CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; - case 11: return CUSTOM_LOGIN_URL_MALFORMED; - case 12: return CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; - case 13: return CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS; - case 14: return CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS; - case 15: return CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS; - case 16: return DUPLICATE_SCAN_NAME; - case 18: return INVALID_FIELD_VALUE; - case 19: return FAILED_TO_AUTHENTICATE_TO_TARGET; - case 20: return FINDING_TYPE_UNSPECIFIED; - case 21: return FORBIDDEN_TO_SCAN_COMPUTE; - case 43: return FORBIDDEN_UPDATE_TO_MANAGED_SCAN; - case 22: return MALFORMED_FILTER; - case 23: return MALFORMED_RESOURCE_NAME; - case 24: return PROJECT_INACTIVE; - case 25: return REQUIRED_FIELD; - case 26: return RESOURCE_NAME_INCONSISTENT; - case 27: return SCAN_ALREADY_RUNNING; - case 28: return SCAN_NOT_RUNNING; - case 29: return SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; - case 30: return SEED_URL_MALFORMED; - case 31: return SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; - case 32: return SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS; - case 33: return SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS; - case 35: return SEED_URL_HAS_UNRESERVED_IP_ADDRESS; - case 36: return SERVICE_ACCOUNT_NOT_CONFIGURED; - case 37: return TOO_MANY_SCANS; - case 38: return UNABLE_TO_RESOLVE_PROJECT_INFO; - case 39: return UNSUPPORTED_BLACKLIST_PATTERN_FORMAT; - case 40: return UNSUPPORTED_FILTER; - case 41: return UNSUPPORTED_FINDING_TYPE; - case 42: return UNSUPPORTED_URL_SCHEME; - default: return null; + case 0: + return CODE_UNSPECIFIED; + case 1: + return INTERNAL_ERROR; + case 2: + return APPENGINE_API_BACKEND_ERROR; + case 3: + return APPENGINE_API_NOT_ACCESSIBLE; + case 4: + return APPENGINE_DEFAULT_HOST_MISSING; + case 6: + return CANNOT_USE_GOOGLE_COM_ACCOUNT; + case 7: + return CANNOT_USE_OWNER_ACCOUNT; + case 8: + return COMPUTE_API_BACKEND_ERROR; + case 9: + return COMPUTE_API_NOT_ACCESSIBLE; + case 10: + return CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; + case 11: + return CUSTOM_LOGIN_URL_MALFORMED; + case 12: + return CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; + case 13: + return CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS; + case 14: + return CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS; + case 15: + return CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS; + case 16: + return DUPLICATE_SCAN_NAME; + case 18: + return INVALID_FIELD_VALUE; + case 19: + return FAILED_TO_AUTHENTICATE_TO_TARGET; + case 20: + return FINDING_TYPE_UNSPECIFIED; + case 21: + return FORBIDDEN_TO_SCAN_COMPUTE; + case 43: + return FORBIDDEN_UPDATE_TO_MANAGED_SCAN; + case 22: + return MALFORMED_FILTER; + case 23: + return MALFORMED_RESOURCE_NAME; + case 24: + return PROJECT_INACTIVE; + case 25: + return REQUIRED_FIELD; + case 26: + return RESOURCE_NAME_INCONSISTENT; + case 27: + return SCAN_ALREADY_RUNNING; + case 28: + return SCAN_NOT_RUNNING; + case 29: + return SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; + case 30: + return SEED_URL_MALFORMED; + case 31: + return SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; + case 32: + return SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS; + case 33: + return SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS; + case 35: + return SEED_URL_HAS_UNRESERVED_IP_ADDRESS; + case 36: + return SERVICE_ACCOUNT_NOT_CONFIGURED; + case 37: + return TOO_MANY_SCANS; + case 38: + return UNABLE_TO_RESOLVE_PROJECT_INFO; + case 39: + return UNSUPPORTED_BLACKLIST_PATTERN_FORMAT; + case 40: + return UNSUPPORTED_FILTER; + case 41: + return UNSUPPORTED_FINDING_TYPE; + case 42: + return UNSUPPORTED_URL_SCHEME; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Code> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (index == -1) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(index); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanConfigError.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanConfigError.getDescriptor() + .getEnumTypes() + .get(0); } private static final Code[] VALUES = getStaticValuesArray(); + private static Code[] getStaticValuesArray() { return new Code[] { - CODE_UNSPECIFIED, OK, INTERNAL_ERROR, APPENGINE_API_BACKEND_ERROR, APPENGINE_API_NOT_ACCESSIBLE, APPENGINE_DEFAULT_HOST_MISSING, CANNOT_USE_GOOGLE_COM_ACCOUNT, CANNOT_USE_OWNER_ACCOUNT, COMPUTE_API_BACKEND_ERROR, COMPUTE_API_NOT_ACCESSIBLE, CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, CUSTOM_LOGIN_URL_MALFORMED, CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS, CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS, CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS, DUPLICATE_SCAN_NAME, INVALID_FIELD_VALUE, FAILED_TO_AUTHENTICATE_TO_TARGET, FINDING_TYPE_UNSPECIFIED, FORBIDDEN_TO_SCAN_COMPUTE, FORBIDDEN_UPDATE_TO_MANAGED_SCAN, MALFORMED_FILTER, MALFORMED_RESOURCE_NAME, PROJECT_INACTIVE, REQUIRED_FIELD, RESOURCE_NAME_INCONSISTENT, SCAN_ALREADY_RUNNING, SCAN_NOT_RUNNING, SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, SEED_URL_MALFORMED, SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS, SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS, SEED_URL_HAS_UNRESERVED_IP_ADDRESS, SERVICE_ACCOUNT_NOT_CONFIGURED, TOO_MANY_SCANS, UNABLE_TO_RESOLVE_PROJECT_INFO, UNSUPPORTED_BLACKLIST_PATTERN_FORMAT, UNSUPPORTED_FILTER, UNSUPPORTED_FINDING_TYPE, UNSUPPORTED_URL_SCHEME, + CODE_UNSPECIFIED, + OK, + INTERNAL_ERROR, + APPENGINE_API_BACKEND_ERROR, + APPENGINE_API_NOT_ACCESSIBLE, + APPENGINE_DEFAULT_HOST_MISSING, + CANNOT_USE_GOOGLE_COM_ACCOUNT, + CANNOT_USE_OWNER_ACCOUNT, + COMPUTE_API_BACKEND_ERROR, + COMPUTE_API_NOT_ACCESSIBLE, + CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, + CUSTOM_LOGIN_URL_MALFORMED, + CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, + CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS, + CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS, + CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS, + DUPLICATE_SCAN_NAME, + INVALID_FIELD_VALUE, + FAILED_TO_AUTHENTICATE_TO_TARGET, + FINDING_TYPE_UNSPECIFIED, + FORBIDDEN_TO_SCAN_COMPUTE, + FORBIDDEN_UPDATE_TO_MANAGED_SCAN, + MALFORMED_FILTER, + MALFORMED_RESOURCE_NAME, + PROJECT_INACTIVE, + REQUIRED_FIELD, + RESOURCE_NAME_INCONSISTENT, + SCAN_ALREADY_RUNNING, + SCAN_NOT_RUNNING, + SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, + SEED_URL_MALFORMED, + SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, + SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS, + SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS, + SEED_URL_HAS_UNRESERVED_IP_ADDRESS, + SERVICE_ACCOUNT_NOT_CONFIGURED, + TOO_MANY_SCANS, + UNABLE_TO_RESOLVE_PROJECT_INFO, + UNSUPPORTED_BLACKLIST_PATTERN_FORMAT, + UNSUPPORTED_FILTER, + UNSUPPORTED_FINDING_TYPE, + UNSUPPORTED_URL_SCHEME, }; } - public static Code valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + + public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -953,33 +1225,46 @@ private Code(int index, int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** + * + * *
    * Output only. Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * Output only. Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; + * * @return The code. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.valueOf(code_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = + com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.valueOf(code_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.UNRECOGNIZED + : result; } public static final int FIELD_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object fieldName_; /** + * + * *
    * Output only. Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -988,6 +1273,7 @@ private Code(int index, int value) {
    * 
* * string field_name = 2; + * * @return The fieldName. */ @java.lang.Override @@ -996,14 +1282,15 @@ public java.lang.String getFieldName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldName_ = s; return s; } } /** + * + * *
    * Output only. Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -1012,16 +1299,15 @@ public java.lang.String getFieldName() {
    * 
* * string field_name = 2; + * * @return The bytes for fieldName. */ @java.lang.Override - public com.google.protobuf.ByteString - getFieldNameBytes() { + public com.google.protobuf.ByteString getFieldNameBytes() { java.lang.Object ref = fieldName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fieldName_ = b; return b; } else { @@ -1030,6 +1316,7 @@ public java.lang.String getFieldName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1041,9 +1328,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.CODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { @@ -1058,9 +1346,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ != com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + if (code_ + != com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldName_); @@ -1073,16 +1362,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanConfigError)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanConfigError other = (com.google.cloud.websecurityscanner.v1.ScanConfigError) obj; + com.google.cloud.websecurityscanner.v1.ScanConfigError other = + (com.google.cloud.websecurityscanner.v1.ScanConfigError) obj; if (code_ != other.code_) return false; - if (!getFieldName() - .equals(other.getFieldName())) return false; + if (!getFieldName().equals(other.getFieldName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1104,96 +1393,104 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanConfigError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanConfigError prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ScanConfigError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Defines a custom error message used by CreateScanConfig and UpdateScanConfig
    * APIs when scan configuration validation fails. It is also reported as part of
@@ -1203,21 +1500,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanConfigError}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanConfigError)
       com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto
+          .internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto
+          .internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.ScanConfigError.class, com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder.class);
+              com.google.cloud.websecurityscanner.v1.ScanConfigError.class,
+              com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.ScanConfigError.newBuilder()
@@ -1225,16 +1524,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1246,9 +1544,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto
+          .internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor;
     }
 
     @java.lang.Override
@@ -1267,7 +1565,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.ScanConfigError buildPartial() {
-      com.google.cloud.websecurityscanner.v1.ScanConfigError result = new com.google.cloud.websecurityscanner.v1.ScanConfigError(this);
+      com.google.cloud.websecurityscanner.v1.ScanConfigError result =
+          new com.google.cloud.websecurityscanner.v1.ScanConfigError(this);
       result.code_ = code_;
       result.fieldName_ = fieldName_;
       onBuilt();
@@ -1278,38 +1577,39 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.ScanConfigError) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfigError)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanConfigError) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1317,7 +1617,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanConfigError other) {
-      if (other == com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance()) return this;
+      if (other == com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance())
+        return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -1344,7 +1645,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanConfigError) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1.ScanConfigError) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1356,51 +1658,67 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
+     *
+     *
      * 
      * Output only. Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * Output only. Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; + * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.valueOf(code_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = + com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.valueOf(code_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; + * * @param value The code to set. * @return This builder for chaining. */ @@ -1408,21 +1726,24 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1.ScanConfigError.Co if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -1430,6 +1751,8 @@ public Builder clearCode() { private java.lang.Object fieldName_ = ""; /** + * + * *
      * Output only. Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1438,13 +1761,13 @@ public Builder clearCode() {
      * 
* * string field_name = 2; + * * @return The fieldName. */ public java.lang.String getFieldName() { java.lang.Object ref = fieldName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldName_ = s; return s; @@ -1453,6 +1776,8 @@ public java.lang.String getFieldName() { } } /** + * + * *
      * Output only. Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1461,15 +1786,14 @@ public java.lang.String getFieldName() {
      * 
* * string field_name = 2; + * * @return The bytes for fieldName. */ - public com.google.protobuf.ByteString - getFieldNameBytes() { + public com.google.protobuf.ByteString getFieldNameBytes() { java.lang.Object ref = fieldName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fieldName_ = b; return b; } else { @@ -1477,6 +1801,8 @@ public java.lang.String getFieldName() { } } /** + * + * *
      * Output only. Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1485,20 +1811,22 @@ public java.lang.String getFieldName() {
      * 
* * string field_name = 2; + * * @param value The fieldName to set. * @return This builder for chaining. */ - public Builder setFieldName( - java.lang.String value) { + public Builder setFieldName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fieldName_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1507,15 +1835,18 @@ public Builder setFieldName(
      * 
* * string field_name = 2; + * * @return This builder for chaining. */ public Builder clearFieldName() { - + fieldName_ = getDefaultInstance().getFieldName(); onChanged(); return this; } /** + * + * *
      * Output only. Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1524,23 +1855,23 @@ public Builder clearFieldName() {
      * 
* * string field_name = 2; + * * @param value The bytes for fieldName to set. * @return This builder for chaining. */ - public Builder setFieldNameBytes( - com.google.protobuf.ByteString value) { + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1550,12 +1881,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanConfigError) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanConfigError) private static final com.google.cloud.websecurityscanner.v1.ScanConfigError DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanConfigError(); } @@ -1564,16 +1895,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanConfigError getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanConfigError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfigError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanConfigError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanConfigError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1588,6 +1919,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanConfigError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java index c95f6cd7..68b82547 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_config_error.proto package com.google.cloud.websecurityscanner.v1; -public interface ScanConfigErrorOrBuilder extends +public interface ScanConfigErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfigError) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
    * Output only. Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError.Code code = 1; + * * @return The code. */ com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode(); /** + * + * *
    * Output only. Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -35,10 +59,13 @@ public interface ScanConfigErrorOrBuilder extends
    * 
* * string field_name = 2; + * * @return The fieldName. */ java.lang.String getFieldName(); /** + * + * *
    * Output only. Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -47,8 +74,8 @@ public interface ScanConfigErrorOrBuilder extends
    * 
* * string field_name = 2; + * * @return The bytes for fieldName. */ - com.google.protobuf.ByteString - getFieldNameBytes(); + com.google.protobuf.ByteString getFieldNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java new file mode 100644 index 00000000..ab191d14 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java @@ -0,0 +1,106 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_config_error.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanConfigErrorProto { + private ScanConfigErrorProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/websecurityscanner/v1/sca" + + "n_config_error.proto\022\"google.cloud.webse" + + "curityscanner.v1\"\351\013\n\017ScanConfigError\022F\n\004" + + "code\030\001 \001(\01628.google.cloud.websecuritysca" + + "nner.v1.ScanConfigError.Code\022\022\n\nfield_na" + + "me\030\002 \001(\t\"\371\n\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022" + + "\006\n\002OK\020\000\022\022\n\016INTERNAL_ERROR\020\001\022\037\n\033APPENGINE" + + "_API_BACKEND_ERROR\020\002\022 \n\034APPENGINE_API_NO" + + "T_ACCESSIBLE\020\003\022\"\n\036APPENGINE_DEFAULT_HOST" + + "_MISSING\020\004\022!\n\035CANNOT_USE_GOOGLE_COM_ACCO" + + "UNT\020\006\022\034\n\030CANNOT_USE_OWNER_ACCOUNT\020\007\022\035\n\031C" + + "OMPUTE_API_BACKEND_ERROR\020\010\022\036\n\032COMPUTE_AP" + + "I_NOT_ACCESSIBLE\020\t\0227\n3CUSTOM_LOGIN_URL_D" + + "OES_NOT_BELONG_TO_CURRENT_PROJECT\020\n\022\036\n\032C" + + "USTOM_LOGIN_URL_MALFORMED\020\013\0223\n/CUSTOM_LO" + + "GIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\020\014" + + "\0221\n-CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVE" + + "D_ADDRESS\020\r\0220\n,CUSTOM_LOGIN_URL_HAS_NON_" + + "ROUTABLE_IP_ADDRESS\020\016\022.\n*CUSTOM_LOGIN_UR" + + "L_HAS_UNRESERVED_IP_ADDRESS\020\017\022\027\n\023DUPLICA" + + "TE_SCAN_NAME\020\020\022\027\n\023INVALID_FIELD_VALUE\020\022\022" + + "$\n FAILED_TO_AUTHENTICATE_TO_TARGET\020\023\022\034\n" + + "\030FINDING_TYPE_UNSPECIFIED\020\024\022\035\n\031FORBIDDEN" + + "_TO_SCAN_COMPUTE\020\025\022$\n FORBIDDEN_UPDATE_T" + + "O_MANAGED_SCAN\020+\022\024\n\020MALFORMED_FILTER\020\026\022\033" + + "\n\027MALFORMED_RESOURCE_NAME\020\027\022\024\n\020PROJECT_I" + + "NACTIVE\020\030\022\022\n\016REQUIRED_FIELD\020\031\022\036\n\032RESOURC" + + "E_NAME_INCONSISTENT\020\032\022\030\n\024SCAN_ALREADY_RU" + + "NNING\020\033\022\024\n\020SCAN_NOT_RUNNING\020\034\022/\n+SEED_UR" + + "L_DOES_NOT_BELONG_TO_CURRENT_PROJECT\020\035\022\026" + + "\n\022SEED_URL_MALFORMED\020\036\022+\n\'SEED_URL_MAPPE" + + "D_TO_NON_ROUTABLE_ADDRESS\020\037\022)\n%SEED_URL_" + + "MAPPED_TO_UNRESERVED_ADDRESS\020 \022(\n$SEED_U" + + "RL_HAS_NON_ROUTABLE_IP_ADDRESS\020!\022&\n\"SEED" + + "_URL_HAS_UNRESERVED_IP_ADDRESS\020#\022\"\n\036SERV" + + "ICE_ACCOUNT_NOT_CONFIGURED\020$\022\022\n\016TOO_MANY" + + "_SCANS\020%\022\"\n\036UNABLE_TO_RESOLVE_PROJECT_IN" + + "FO\020&\022(\n$UNSUPPORTED_BLACKLIST_PATTERN_FO" + + "RMAT\020\'\022\026\n\022UNSUPPORTED_FILTER\020(\022\034\n\030UNSUPP" + + "ORTED_FINDING_TYPE\020)\022\032\n\026UNSUPPORTED_URL_" + + "SCHEME\020*\032\002\020\001B\210\002\n&com.google.cloud.websec" + + "urityscanner.v1B\024ScanConfigErrorProtoP\001Z" + + "Tgoogle.golang.org/genproto/googleapis/c" + + "loud/websecurityscanner/v1;websecuritysc" + + "anner\252\002\"Google.Cloud.WebSecurityScanner." + + "V1\312\002\"Google\\Cloud\\WebSecurityScanner\\V1\352" + + "\002%Google::Cloud::WebSecurityScanner::V1b" + + "\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfigError_descriptor, + new java.lang.String[] { + "Code", "FieldName", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java similarity index 81% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java index 3bbe81d4..32718b4f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_config.proto package com.google.cloud.websecurityscanner.v1; -public interface ScanConfigOrBuilder extends +public interface ScanConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -15,10 +33,13 @@ public interface ScanConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -26,32 +47,39 @@ public interface ScanConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -60,72 +88,91 @@ public interface ScanConfigOrBuilder extends
    * 
* * int32 max_qps = 3; + * * @return The maxQps. */ int getMaxQps(); /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; + * * @return A list containing the startingUrls. */ - java.util.List - getStartingUrlsList(); + java.util.List getStartingUrlsList(); /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; + * * @return The count of startingUrls. */ int getStartingUrlsCount(); /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; + * * @param index The index of the element to return. * @return The startingUrls at the given index. */ java.lang.String getStartingUrls(int index); /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4; + * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - com.google.protobuf.ByteString - getStartingUrlsBytes(int index); + com.google.protobuf.ByteString getStartingUrlsBytes(int index); /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * * @return Whether the authentication field is set. */ boolean hasAuthentication(); /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5; + * * @return The authentication. */ com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication getAuthentication(); /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
@@ -133,91 +180,116 @@ public interface ScanConfigOrBuilder extends
    *
    * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication authentication = 5;
    */
-  com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder();
+  com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder
+      getAuthenticationOrBuilder();
 
   /**
+   *
+   *
    * 
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; + * * @return The enum numeric value on the wire for userAgent. */ int getUserAgentValue(); /** + * + * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.UserAgent user_agent = 6; + * * @return The userAgent. */ com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent getUserAgent(); /** + * + * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; + * * @return A list containing the blacklistPatterns. */ - java.util.List - getBlacklistPatternsList(); + java.util.List getBlacklistPatternsList(); /** + * + * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; + * * @return The count of blacklistPatterns. */ int getBlacklistPatternsCount(); /** + * + * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ java.lang.String getBlacklistPatterns(int index); /** + * + * *
    * The excluded URL patterns as described in
    * https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
    * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - com.google.protobuf.ByteString - getBlacklistPatternsBytes(int index); + com.google.protobuf.ByteString getBlacklistPatternsBytes(int index); /** + * + * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; + * * @return Whether the schedule field is set. */ boolean hasSchedule(); /** + * + * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.Schedule schedule = 8; + * * @return The schedule. */ com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getSchedule(); /** + * + * *
    * The schedule of the ScanConfig.
    * 
@@ -227,63 +299,86 @@ public interface ScanConfigOrBuilder extends com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder(); /** + * + * *
    * Controls export of scan configurations and results to Security
    * Command Center.
    * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ int getExportToSecurityCommandCenterValue(); /** + * + * *
    * Controls export of scan configurations and results to Security
    * Command Center.
    * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @return The exportToSecurityCommandCenter. */ - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter(); + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter + getExportToSecurityCommandCenter(); /** + * + * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; + * * @return The enum numeric value on the wire for riskLevel. */ int getRiskLevelValue(); /** + * + * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel risk_level = 12; + * * @return The riskLevel. */ com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel getRiskLevel(); /** + * + * *
    * Whether the scan config is managed by Web Security Scanner, output
    * only.
    * 
* * bool managed_scan = 13; + * * @return The managedScan. */ boolean getManagedScan(); /** + * + * *
    * Whether the scan configuration has enabled static IP address scan feature.
    * If enabled, the scanner will access applications from static IP addresses.
    * 
* * bool static_ip_scan = 14; + * * @return The staticIpScan. */ boolean getStaticIpScan(); diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java new file mode 100644 index 00000000..8849902c --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java @@ -0,0 +1,217 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_config.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanConfigProto { + private ScanConfigProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/websecurityscanner/v1/sca" + + "n_config.proto\022\"google.cloud.websecurity" + + "scanner.v1\032\037google/api/field_behavior.pr" + + "oto\032\037google/protobuf/timestamp.proto\"\231\r\n" + + "\nScanConfig\022\014\n\004name\030\001 \001(\t\022\024\n\014display_nam" + + "e\030\002 \001(\t\022\017\n\007max_qps\030\003 \001(\005\022\025\n\rstarting_url" + + "s\030\004 \003(\t\022U\n\016authentication\030\005 \001(\0132=.google" + + ".cloud.websecurityscanner.v1.ScanConfig." + + "Authentication\022L\n\nuser_agent\030\006 \001(\01628.goo" + + "gle.cloud.websecurityscanner.v1.ScanConf" + + "ig.UserAgent\022\032\n\022blacklist_patterns\030\007 \003(\t" + + "\022I\n\010schedule\030\010 \001(\01327.google.cloud.websec" + + "urityscanner.v1.ScanConfig.Schedule\022w\n!e" + + "xport_to_security_command_center\030\n \001(\0162L" + + ".google.cloud.websecurityscanner.v1.Scan" + + "Config.ExportToSecurityCommandCenter\022L\n\n" + + "risk_level\030\014 \001(\01628.google.cloud.websecur" + + "ityscanner.v1.ScanConfig.RiskLevel\022\024\n\014ma" + + "naged_scan\030\r \001(\010\022\026\n\016static_ip_scan\030\016 \001(\010" + + "\032\317\005\n\016Authentication\022e\n\016google_account\030\001 " + + "\001(\0132K.google.cloud.websecurityscanner.v1" + + ".ScanConfig.Authentication.GoogleAccount" + + "H\000\022e\n\016custom_account\030\002 \001(\0132K.google.clou" + + "d.websecurityscanner.v1.ScanConfig.Authe" + + "ntication.CustomAccountH\000\022e\n\016iap_credent" + + "ial\030\004 \001(\0132K.google.cloud.websecurityscan" + + "ner.v1.ScanConfig.Authentication.IapCred" + + "entialH\000\0323\n\rGoogleAccount\022\020\n\010username\030\001 " + + "\001(\t\022\020\n\010password\030\002 \001(\t\032F\n\rCustomAccount\022\020" + + "\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022\021\n\tlo" + + "gin_url\030\003 \001(\t\032\370\001\n\rIapCredential\022\216\001\n\035iap_" + + "test_service_account_info\030\001 \001(\0132e.google" + + ".cloud.websecurityscanner.v1.ScanConfig." + + "Authentication.IapCredential.IapTestServ" + + "iceAccountInfoH\000\032C\n\031IapTestServiceAccoun" + + "tInfo\022&\n\031target_audience_client_id\030\001 \001(\t" + + "B\003\340A\002B\021\n\017iap_credentialsB\020\n\016authenticati" + + "on\032]\n\010Schedule\0221\n\rschedule_time\030\001 \001(\0132\032." + + "google.protobuf.Timestamp\022\036\n\026interval_du" + + "ration_days\030\002 \001(\005\"`\n\tUserAgent\022\032\n\026USER_A" + + "GENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LINUX\020\001\022\022\n\016" + + "CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHONE\020\003\"<\n\tR" + + "iskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED\020\000\022\n\n\006" + + "NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecurityCom" + + "mandCenter\0221\n-EXPORT_TO_SECURITY_COMMAND" + + "_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DI" + + "SABLED\020\002B\203\002\n&com.google.cloud.websecurit" + + "yscanner.v1B\017ScanConfigProtoP\001ZTgoogle.g" + + "olang.org/genproto/googleapis/cloud/webs" + + "ecurityscanner/v1;websecurityscanner\252\002\"G" + + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" + + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" + + ":Cloud::WebSecurityScanner::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "MaxQps", + "StartingUrls", + "Authentication", + "UserAgent", + "BlacklistPatterns", + "Schedule", + "ExportToSecurityCommandCenter", + "RiskLevel", + "ManagedScan", + "StaticIpScan", + }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor, + new java.lang.String[] { + "GoogleAccount", "CustomAccount", "IapCredential", "Authentication", + }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_GoogleAccount_descriptor, + new java.lang.String[] { + "Username", "Password", + }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_CustomAccount_descriptor, + new java.lang.String[] { + "Username", "Password", "LoginUrl", + }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor, + new java.lang.String[] { + "IapTestServiceAccountInfo", "IapCredentials", + }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Authentication_IapCredential_IapTestServiceAccountInfo_descriptor, + new java.lang.String[] { + "TargetAudienceClientId", + }); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor = + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanConfig_Schedule_descriptor, + new java.lang.String[] { + "ScheduleTime", "IntervalDurationDays", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java index ac32d009..310c9694 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_run.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * A ScanRun is a output-only resource representing an actual run of the scan.
  * Next id: 12
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRun}
  */
-public final class ScanRun extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ScanRun extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanRun)
     ScanRunOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ScanRun.newBuilder() to construct.
   private ScanRun(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ScanRun() {
     name_ = "";
     executionState_ = 0;
@@ -29,16 +47,15 @@ private ScanRun() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ScanRun();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ScanRun(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,99 +75,115 @@ private ScanRun(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              name_ = s;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            executionState_ = rawValue;
-            break;
-          }
-          case 24: {
-            int rawValue = input.readEnum();
+              executionState_ = rawValue;
+              break;
+            }
+          case 24:
+            {
+              int rawValue = input.readEnum();
 
-            resultState_ = rawValue;
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (startTime_ != null) {
-              subBuilder = startTime_.toBuilder();
+              resultState_ = rawValue;
+              break;
             }
-            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(startTime_);
-              startTime_ = subBuilder.buildPartial();
+          case 34:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (startTime_ != null) {
+                subBuilder = startTime_.toBuilder();
+              }
+              startTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(startTime_);
+                startTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (endTime_ != null) {
-              subBuilder = endTime_.toBuilder();
+          case 42:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (endTime_ != null) {
+                subBuilder = endTime_.toBuilder();
+              }
+              endTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(endTime_);
+                endTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(endTime_);
-              endTime_ = subBuilder.buildPartial();
+          case 48:
+            {
+              urlsCrawledCount_ = input.readInt64();
+              break;
             }
-
-            break;
-          }
-          case 48: {
-
-            urlsCrawledCount_ = input.readInt64();
-            break;
-          }
-          case 56: {
-
-            urlsTestedCount_ = input.readInt64();
-            break;
-          }
-          case 64: {
-
-            hasVulnerabilities_ = input.readBool();
-            break;
-          }
-          case 72: {
-
-            progressPercent_ = input.readInt32();
-            break;
-          }
-          case 82: {
-            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder subBuilder = null;
-            if (errorTrace_ != null) {
-              subBuilder = errorTrace_.toBuilder();
+          case 56:
+            {
+              urlsTestedCount_ = input.readInt64();
+              break;
             }
-            errorTrace_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(errorTrace_);
-              errorTrace_ = subBuilder.buildPartial();
+          case 64:
+            {
+              hasVulnerabilities_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          case 90: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              warningTraces_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 72:
+            {
+              progressPercent_ = input.readInt32();
+              break;
             }
-            warningTraces_.add(
-                input.readMessage(com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 82:
+            {
+              com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder subBuilder = null;
+              if (errorTrace_ != null) {
+                subBuilder = errorTrace_.toBuilder();
+              }
+              errorTrace_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(errorTrace_);
+                errorTrace_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 90:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                warningTraces_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              warningTraces_.add(
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.parser(),
+                      extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -158,8 +191,7 @@ private ScanRun(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         warningTraces_ = java.util.Collections.unmodifiableList(warningTraces_);
@@ -168,29 +200,35 @@ private ScanRun(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.ScanRunProto
+        .internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.ScanRunProto
+        .internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.ScanRun.class, com.google.cloud.websecurityscanner.v1.ScanRun.Builder.class);
+            com.google.cloud.websecurityscanner.v1.ScanRun.class,
+            com.google.cloud.websecurityscanner.v1.ScanRun.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Types of ScanRun execution state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanRun.ExecutionState} */ - public enum ExecutionState - implements com.google.protobuf.ProtocolMessageEnum { + public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -200,6 +238,8 @@ public enum ExecutionState
      */
     EXECUTION_STATE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -208,6 +248,8 @@ public enum ExecutionState */ QUEUED(1), /** + * + * *
      * The scan is in progress.
      * 
@@ -216,6 +258,8 @@ public enum ExecutionState */ SCANNING(2), /** + * + * *
      * The scan is either finished or stopped by user.
      * 
@@ -227,6 +271,8 @@ public enum ExecutionState ; /** + * + * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -236,6 +282,8 @@ public enum ExecutionState
      */
     public static final int EXECUTION_STATE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -244,6 +292,8 @@ public enum ExecutionState */ public static final int QUEUED_VALUE = 1; /** + * + * *
      * The scan is in progress.
      * 
@@ -252,6 +302,8 @@ public enum ExecutionState */ public static final int SCANNING_VALUE = 2; /** + * + * *
      * The scan is either finished or stopped by user.
      * 
@@ -260,7 +312,6 @@ public enum ExecutionState */ public static final int FINISHED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -285,50 +336,51 @@ public static ExecutionState valueOf(int value) { */ public static ExecutionState forNumber(int value) { switch (value) { - case 0: return EXECUTION_STATE_UNSPECIFIED; - case 1: return QUEUED; - case 2: return SCANNING; - case 3: return FINISHED; - default: return null; + case 0: + return EXECUTION_STATE_UNSPECIFIED; + case 1: + return QUEUED; + case 2: + return SCANNING; + case 3: + return FINISHED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ExecutionState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionState findValueByNumber(int number) { - return ExecutionState.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionState findValueByNumber(int number) { + return ExecutionState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanRun.getDescriptor().getEnumTypes().get(0); } private static final ExecutionState[] VALUES = values(); - public static ExecutionState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ExecutionState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -346,15 +398,18 @@ private ExecutionState(int value) { } /** + * + * *
    * Types of ScanRun result state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanRun.ResultState} */ - public enum ResultState - implements com.google.protobuf.ProtocolMessageEnum { + public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -364,6 +419,8 @@ public enum ResultState
      */
     RESULT_STATE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The scan finished without errors.
      * 
@@ -372,6 +429,8 @@ public enum ResultState */ SUCCESS(1), /** + * + * *
      * The scan finished with errors.
      * 
@@ -380,6 +439,8 @@ public enum ResultState */ ERROR(2), /** + * + * *
      * The scan was terminated by user.
      * 
@@ -391,6 +452,8 @@ public enum ResultState ; /** + * + * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -400,6 +463,8 @@ public enum ResultState
      */
     public static final int RESULT_STATE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The scan finished without errors.
      * 
@@ -408,6 +473,8 @@ public enum ResultState */ public static final int SUCCESS_VALUE = 1; /** + * + * *
      * The scan finished with errors.
      * 
@@ -416,6 +483,8 @@ public enum ResultState */ public static final int ERROR_VALUE = 2; /** + * + * *
      * The scan was terminated by user.
      * 
@@ -424,7 +493,6 @@ public enum ResultState */ public static final int KILLED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -449,50 +517,51 @@ public static ResultState valueOf(int value) { */ public static ResultState forNumber(int value) { switch (value) { - case 0: return RESULT_STATE_UNSPECIFIED; - case 1: return SUCCESS; - case 2: return ERROR; - case 3: return KILLED; - default: return null; + case 0: + return RESULT_STATE_UNSPECIFIED; + case 1: + return SUCCESS; + case 2: + return ERROR; + case 3: + return KILLED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ResultState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResultState findValueByNumber(int number) { - return ResultState.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResultState findValueByNumber(int number) { + return ResultState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.websecurityscanner.v1.ScanRun.getDescriptor().getEnumTypes().get(1); } private static final ResultState[] VALUES = values(); - public static ResultState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ResultState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -512,6 +581,8 @@ private ResultState(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -519,6 +590,7 @@ private ResultState(int value) {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -527,14 +599,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -542,16 +615,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -562,67 +634,92 @@ public java.lang.String getName() { public static final int EXECUTION_STATE_FIELD_NUMBER = 2; private int executionState_; /** + * + * *
    * Output only. The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; + * * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override public int getExecutionStateValue() { + @java.lang.Override + public int getExecutionStateValue() { return executionState_; } /** + * + * *
    * Output only. The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; + * * @return The executionState. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED + : result; } public static final int RESULT_STATE_FIELD_NUMBER = 3; private int resultState_; /** + * + * *
    * Output only. The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; + * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override public int getResultStateValue() { + @java.lang.Override + public int getResultStateValue() { return resultState_; } /** + * + * *
    * Output only. The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; + * * @return The resultState. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED + : result; } public static final int START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Output only. The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -630,11 +727,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Output only. The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return The startTime. */ @java.lang.Override @@ -642,6 +742,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Output only. The time at which the ScanRun started.
    * 
@@ -656,12 +758,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -669,12 +774,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ @java.lang.Override @@ -682,6 +790,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -697,12 +807,15 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 6;
   private long urlsCrawledCount_;
   /**
+   *
+   *
    * 
    * Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; + * * @return The urlsCrawledCount. */ @java.lang.Override @@ -713,6 +826,8 @@ public long getUrlsCrawledCount() { public static final int URLS_TESTED_COUNT_FIELD_NUMBER = 7; private long urlsTestedCount_; /** + * + * *
    * Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -721,6 +836,7 @@ public long getUrlsCrawledCount() {
    * 
* * int64 urls_tested_count = 7; + * * @return The urlsTestedCount. */ @java.lang.Override @@ -731,11 +847,14 @@ public long getUrlsTestedCount() { public static final int HAS_VULNERABILITIES_FIELD_NUMBER = 8; private boolean hasVulnerabilities_; /** + * + * *
    * Output only. Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; + * * @return The hasVulnerabilities. */ @java.lang.Override @@ -746,6 +865,8 @@ public boolean getHasVulnerabilities() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 9; private int progressPercent_; /** + * + * *
    * Output only. The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -754,6 +875,7 @@ public boolean getHasVulnerabilities() {
    * 
* * int32 progress_percent = 9; + * * @return The progressPercent. */ @java.lang.Override @@ -764,12 +886,15 @@ public int getProgressPercent() { public static final int ERROR_TRACE_FIELD_NUMBER = 10; private com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace errorTrace_; /** + * + * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; + * * @return Whether the errorTrace field is set. */ @java.lang.Override @@ -777,19 +902,26 @@ public boolean hasErrorTrace() { return errorTrace_ != null; } /** + * + * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; + * * @return The errorTrace. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace() { - return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; + return errorTrace_ == null + ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() + : errorTrace_; } /** + * + * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
@@ -798,71 +930,90 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace()
    * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder
+      getErrorTraceOrBuilder() {
     return getErrorTrace();
   }
 
   public static final int WARNING_TRACES_FIELD_NUMBER = 11;
   private java.util.List warningTraces_;
   /**
+   *
+   *
    * 
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ @java.lang.Override - public java.util.List getWarningTracesList() { + public java.util.List + getWarningTracesList() { return warningTraces_; } /** + * + * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder> getWarningTracesOrBuilderList() { return warningTraces_; } /** + * + * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ @java.lang.Override public int getWarningTracesCount() { return warningTraces_.size(); } /** + * + * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getWarningTraces(int index) { return warningTraces_.get(index); } /** + * + * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder + getWarningTracesOrBuilder(int index) { return warningTraces_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -874,15 +1025,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (executionState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { + if (executionState_ + != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, executionState_); } - if (resultState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { + if (resultState_ + != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, resultState_); } if (startTime_ != null) { @@ -921,45 +1075,39 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (executionState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, executionState_); + if (executionState_ + != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, executionState_); } - if (resultState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, resultState_); + if (resultState_ + != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, resultState_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); } if (urlsCrawledCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, urlsCrawledCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, urlsCrawledCount_); } if (urlsTestedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, urlsTestedCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, urlsTestedCount_); } if (hasVulnerabilities_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, hasVulnerabilities_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, hasVulnerabilities_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, progressPercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, progressPercent_); } if (errorTrace_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getErrorTrace()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getErrorTrace()); } for (int i = 0; i < warningTraces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, warningTraces_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, warningTraces_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -969,42 +1117,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanRun)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanRun other = (com.google.cloud.websecurityscanner.v1.ScanRun) obj; + com.google.cloud.websecurityscanner.v1.ScanRun other = + (com.google.cloud.websecurityscanner.v1.ScanRun) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (executionState_ != other.executionState_) return false; if (resultState_ != other.resultState_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (getUrlsCrawledCount() - != other.getUrlsCrawledCount()) return false; - if (getUrlsTestedCount() - != other.getUrlsTestedCount()) return false; - if (getHasVulnerabilities() - != other.getHasVulnerabilities()) return false; - if (getProgressPercent() - != other.getProgressPercent()) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (getUrlsCrawledCount() != other.getUrlsCrawledCount()) return false; + if (getUrlsTestedCount() != other.getUrlsTestedCount()) return false; + if (getHasVulnerabilities() != other.getHasVulnerabilities()) return false; + if (getProgressPercent() != other.getProgressPercent()) return false; if (hasErrorTrace() != other.hasErrorTrace()) return false; if (hasErrorTrace()) { - if (!getErrorTrace() - .equals(other.getErrorTrace())) return false; + if (!getErrorTrace().equals(other.getErrorTrace())) return false; } - if (!getWarningTracesList() - .equals(other.getWarningTracesList())) return false; + if (!getWarningTracesList().equals(other.getWarningTracesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1031,14 +1171,11 @@ public int hashCode() { hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + URLS_CRAWLED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUrlsCrawledCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsCrawledCount()); hash = (37 * hash) + URLS_TESTED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUrlsTestedCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsTestedCount()); hash = (37 * hash) + HAS_VULNERABILITIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHasVulnerabilities()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasVulnerabilities()); hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getProgressPercent(); if (hasErrorTrace()) { @@ -1054,97 +1191,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRun parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanRun parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanRun parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanRun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanRun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A ScanRun is a output-only resource representing an actual run of the scan.
    * Next id: 12
@@ -1152,21 +1296,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRun}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanRun)
       com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunProto
+          .internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.ScanRunProto
+          .internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.ScanRun.class, com.google.cloud.websecurityscanner.v1.ScanRun.Builder.class);
+              com.google.cloud.websecurityscanner.v1.ScanRun.class,
+              com.google.cloud.websecurityscanner.v1.ScanRun.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.ScanRun.newBuilder()
@@ -1174,17 +1320,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getWarningTracesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1230,9 +1376,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunProto
+          .internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor;
     }
 
     @java.lang.Override
@@ -1251,7 +1397,8 @@ public com.google.cloud.websecurityscanner.v1.ScanRun build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.ScanRun buildPartial() {
-      com.google.cloud.websecurityscanner.v1.ScanRun result = new com.google.cloud.websecurityscanner.v1.ScanRun(this);
+      com.google.cloud.websecurityscanner.v1.ScanRun result =
+          new com.google.cloud.websecurityscanner.v1.ScanRun(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.executionState_ = executionState_;
@@ -1292,38 +1439,39 @@ public com.google.cloud.websecurityscanner.v1.ScanRun buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.ScanRun) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRun)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRun) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1381,9 +1529,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRun other) {
             warningTracesBuilder_ = null;
             warningTraces_ = other.warningTraces_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            warningTracesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getWarningTracesFieldBuilder() : null;
+            warningTracesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getWarningTracesFieldBuilder()
+                    : null;
           } else {
             warningTracesBuilder_.addAllMessages(other.warningTraces_);
           }
@@ -1417,10 +1566,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1428,13 +1580,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1443,6 +1595,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1450,15 +1604,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1466,6 +1619,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1473,20 +1628,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1494,15 +1651,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1510,16 +1670,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1527,73 +1687,93 @@ public Builder setNameBytes( private int executionState_ = 0; /** + * + * *
      * Output only. The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; + * * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override public int getExecutionStateValue() { + @java.lang.Override + public int getExecutionStateValue() { return executionState_; } /** + * + * *
      * Output only. The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; + * * @param value The enum numeric value on the wire for executionState to set. * @return This builder for chaining. */ public Builder setExecutionStateValue(int value) { - + executionState_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; + * * @return The executionState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; + * * @param value The executionState to set. * @return This builder for chaining. */ - public Builder setExecutionState(com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState value) { + public Builder setExecutionState( + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState value) { if (value == null) { throw new NullPointerException(); } - + executionState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; + * * @return This builder for chaining. */ public Builder clearExecutionState() { - + executionState_ = 0; onChanged(); return this; @@ -1601,78 +1781,98 @@ public Builder clearExecutionState() { private int resultState_ = 0; /** + * + * *
      * Output only. The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; + * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override public int getResultStateValue() { + @java.lang.Override + public int getResultStateValue() { return resultState_; } /** + * + * *
      * Output only. The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; + * * @param value The enum numeric value on the wire for resultState to set. * @return This builder for chaining. */ public Builder setResultStateValue(int value) { - + resultState_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; + * * @return The resultState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; + * * @param value The resultState to set. * @return This builder for chaining. */ - public Builder setResultState(com.google.cloud.websecurityscanner.v1.ScanRun.ResultState value) { + public Builder setResultState( + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState value) { if (value == null) { throw new NullPointerException(); } - + resultState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; + * * @return This builder for chaining. */ public Builder clearResultState() { - + resultState_ = 0; onChanged(); return this; @@ -1680,24 +1880,33 @@ public Builder clearResultState() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Output only. The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Output only. The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1708,6 +1917,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1728,14 +1939,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -1746,6 +1958,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1756,7 +1970,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -1768,6 +1982,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1786,6 +2002,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1793,11 +2011,13 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 4; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1808,11 +2028,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1820,14 +2041,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -1835,26 +2059,35 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1865,6 +2098,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1886,6 +2121,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1893,8 +2130,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1905,6 +2141,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1916,7 +2154,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1928,6 +2166,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1947,6 +2187,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1955,11 +2197,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1971,11 +2215,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1984,27 +2229,33 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
 
-    private long urlsCrawledCount_ ;
+    private long urlsCrawledCount_;
     /**
+     *
+     *
      * 
      * Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; + * * @return The urlsCrawledCount. */ @java.lang.Override @@ -2012,39 +2263,47 @@ public long getUrlsCrawledCount() { return urlsCrawledCount_; } /** + * + * *
      * Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; + * * @param value The urlsCrawledCount to set. * @return This builder for chaining. */ public Builder setUrlsCrawledCount(long value) { - + urlsCrawledCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; + * * @return This builder for chaining. */ public Builder clearUrlsCrawledCount() { - + urlsCrawledCount_ = 0L; onChanged(); return this; } - private long urlsTestedCount_ ; + private long urlsTestedCount_; /** + * + * *
      * Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2053,6 +2312,7 @@ public Builder clearUrlsCrawledCount() {
      * 
* * int64 urls_tested_count = 7; + * * @return The urlsTestedCount. */ @java.lang.Override @@ -2060,6 +2320,8 @@ public long getUrlsTestedCount() { return urlsTestedCount_; } /** + * + * *
      * Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2068,16 +2330,19 @@ public long getUrlsTestedCount() {
      * 
* * int64 urls_tested_count = 7; + * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ public Builder setUrlsTestedCount(long value) { - + urlsTestedCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2086,22 +2351,26 @@ public Builder setUrlsTestedCount(long value) {
      * 
* * int64 urls_tested_count = 7; + * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { - + urlsTestedCount_ = 0L; onChanged(); return this; } - private boolean hasVulnerabilities_ ; + private boolean hasVulnerabilities_; /** + * + * *
      * Output only. Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; + * * @return The hasVulnerabilities. */ @java.lang.Override @@ -2109,37 +2378,45 @@ public boolean getHasVulnerabilities() { return hasVulnerabilities_; } /** + * + * *
      * Output only. Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; + * * @param value The hasVulnerabilities to set. * @return This builder for chaining. */ public Builder setHasVulnerabilities(boolean value) { - + hasVulnerabilities_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; + * * @return This builder for chaining. */ public Builder clearHasVulnerabilities() { - + hasVulnerabilities_ = false; onChanged(); return this; } - private int progressPercent_ ; + private int progressPercent_; /** + * + * *
      * Output only. The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2148,6 +2425,7 @@ public Builder clearHasVulnerabilities() {
      * 
* * int32 progress_percent = 9; + * * @return The progressPercent. */ @java.lang.Override @@ -2155,6 +2433,8 @@ public int getProgressPercent() { return progressPercent_; } /** + * + * *
      * Output only. The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2163,16 +2443,19 @@ public int getProgressPercent() {
      * 
* * int32 progress_percent = 9; + * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2181,10 +2464,11 @@ public Builder setProgressPercent(int value) {
      * 
* * int32 progress_percent = 9; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; @@ -2192,36 +2476,49 @@ public Builder clearProgressPercent() { private com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace errorTrace_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> errorTraceBuilder_; + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, + com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> + errorTraceBuilder_; /** + * + * *
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; + * * @return Whether the errorTrace field is set. */ public boolean hasErrorTrace() { return errorTraceBuilder_ != null || errorTrace_ != null; } /** + * + * *
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; + * * @return The errorTrace. */ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace() { if (errorTraceBuilder_ == null) { - return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; + return errorTrace_ == null + ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() + : errorTrace_; } else { return errorTraceBuilder_.getMessage(); } } /** + * + * *
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2243,6 +2540,8 @@ public Builder setErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunError
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2262,6 +2561,8 @@ public Builder setErrorTrace(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2273,7 +2574,9 @@ public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErr
       if (errorTraceBuilder_ == null) {
         if (errorTrace_ != null) {
           errorTrace_ =
-            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.newBuilder(errorTrace_).mergeFrom(value).buildPartial();
+              com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.newBuilder(errorTrace_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           errorTrace_ = value;
         }
@@ -2285,6 +2588,8 @@ public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErr
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2304,6 +2609,8 @@ public Builder clearErrorTrace() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2312,11 +2619,13 @@ public Builder clearErrorTrace() {
      * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10;
      */
     public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder getErrorTraceBuilder() {
-      
+
       onChanged();
       return getErrorTraceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2324,15 +2633,19 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder getError
      *
      * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10;
      */
-    public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() {
+    public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder
+        getErrorTraceOrBuilder() {
       if (errorTraceBuilder_ != null) {
         return errorTraceBuilder_.getMessageOrBuilder();
       } else {
-        return errorTrace_ == null ?
-            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_;
+        return errorTrace_ == null
+            ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance()
+            : errorTrace_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2341,39 +2654,52 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErro
      * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> 
+            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace,
+            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder,
+            com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder>
         getErrorTraceFieldBuilder() {
       if (errorTraceBuilder_ == null) {
-        errorTraceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder>(
-                getErrorTrace(),
-                getParentForChildren(),
-                isClean());
+        errorTraceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace,
+                com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder,
+                com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder>(
+                getErrorTrace(), getParentForChildren(), isClean());
         errorTrace_ = null;
       }
       return errorTraceBuilder_;
     }
 
-    private java.util.List warningTraces_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        warningTraces_ = java.util.Collections.emptyList();
+
     private void ensureWarningTracesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        warningTraces_ = new java.util.ArrayList(warningTraces_);
+        warningTraces_ =
+            new java.util.ArrayList(
+                warningTraces_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder> warningTracesBuilder_;
+            com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace,
+            com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder,
+            com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder>
+        warningTracesBuilder_;
 
     /**
+     *
+     *
      * 
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ - public java.util.List getWarningTracesList() { + public java.util.List + getWarningTracesList() { if (warningTracesBuilder_ == null) { return java.util.Collections.unmodifiableList(warningTraces_); } else { @@ -2381,11 +2707,14 @@ public java.util.List * Output only. A list of warnings, if such are encountered during this scan run. *
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ public int getWarningTracesCount() { if (warningTracesBuilder_ == null) { @@ -2395,11 +2724,14 @@ public int getWarningTracesCount() { } } /** + * + * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getWarningTraces(int index) { if (warningTracesBuilder_ == null) { @@ -2409,11 +2741,14 @@ public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getWarningTrac } } /** + * + * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ public Builder setWarningTraces( int index, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace value) { @@ -2430,14 +2765,18 @@ public Builder setWarningTraces( return this; } /** + * + * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ public Builder setWarningTraces( - int index, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder builderForValue) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); warningTraces_.set(index, builderForValue.build()); @@ -2448,13 +2787,17 @@ public Builder setWarningTraces( return this; } /** + * + * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ - public Builder addWarningTraces(com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace value) { + public Builder addWarningTraces( + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace value) { if (warningTracesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2468,11 +2811,14 @@ public Builder addWarningTraces(com.google.cloud.websecurityscanner.v1.ScanRunWa return this; } /** + * + * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ public Builder addWarningTraces( int index, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace value) { @@ -2489,11 +2835,14 @@ public Builder addWarningTraces( return this; } /** + * + * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ public Builder addWarningTraces( com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder builderForValue) { @@ -2507,14 +2856,18 @@ public Builder addWarningTraces( return this; } /** + * + * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ public Builder addWarningTraces( - int index, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder builderForValue) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); warningTraces_.add(index, builderForValue.build()); @@ -2525,18 +2878,21 @@ public Builder addWarningTraces( return this; } /** + * + * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ public Builder addAllWarningTraces( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, warningTraces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warningTraces_); onChanged(); } else { warningTracesBuilder_.addAllMessages(values); @@ -2544,11 +2900,14 @@ public Builder addAllWarningTraces( return this; } /** + * + * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ public Builder clearWarningTraces() { if (warningTracesBuilder_ == null) { @@ -2561,11 +2920,14 @@ public Builder clearWarningTraces() { return this; } /** + * + * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ public Builder removeWarningTraces(int index) { if (warningTracesBuilder_ == null) { @@ -2578,39 +2940,50 @@ public Builder removeWarningTraces(int index) { return this; } /** + * + * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder getWarningTracesBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder + getWarningTracesBuilder(int index) { return getWarningTracesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder + getWarningTracesOrBuilder(int index) { if (warningTracesBuilder_ == null) { - return warningTraces_.get(index); } else { + return warningTraces_.get(index); + } else { return warningTracesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ - public java.util.List - getWarningTracesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder> + getWarningTracesOrBuilderList() { if (warningTracesBuilder_ != null) { return warningTracesBuilder_.getMessageOrBuilderList(); } else { @@ -2618,45 +2991,64 @@ public com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder getWa } } /** + * + * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder addWarningTracesBuilder() { - return getWarningTracesFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder + addWarningTracesBuilder() { + return getWarningTracesFieldBuilder() + .addBuilder( + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance()); } /** + * + * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder addWarningTracesBuilder( - int index) { - return getWarningTracesFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder + addWarningTracesBuilder(int index) { + return getWarningTracesFieldBuilder() + .addBuilder( + index, + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance()); } /** + * + * *
      * Output only. A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ - public java.util.List - getWarningTracesBuilderList() { + public java.util.List + getWarningTracesBuilderList() { return getWarningTracesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace, + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder, + com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder> getWarningTracesFieldBuilder() { if (warningTracesBuilder_ == null) { - warningTracesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder>( + warningTracesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace, + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder, + com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder>( warningTraces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2665,9 +3057,9 @@ public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder addWar } return warningTracesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2677,12 +3069,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanRun) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanRun) private static final com.google.cloud.websecurityscanner.v1.ScanRun DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanRun(); } @@ -2691,16 +3083,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanRun getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2715,6 +3107,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java index b9b4fec2..9635019b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_run_error_trace.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Output only.
  * Defines an error trace message for a ScanRun.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunErrorTrace}
  */
-public final class ScanRunErrorTrace extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ScanRunErrorTrace extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanRunErrorTrace)
     ScanRunErrorTraceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ScanRunErrorTrace.newBuilder() to construct.
   private ScanRunErrorTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ScanRunErrorTrace() {
     code_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ScanRunErrorTrace();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ScanRunErrorTrace(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,37 +71,42 @@ private ScanRunErrorTrace(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            code_ = rawValue;
-            break;
-          }
-          case 18: {
-            com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder subBuilder = null;
-            if (scanConfigError_ != null) {
-              subBuilder = scanConfigError_.toBuilder();
+              code_ = rawValue;
+              break;
             }
-            scanConfigError_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfigError.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(scanConfigError_);
-              scanConfigError_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder subBuilder = null;
+              if (scanConfigError_ != null) {
+                subBuilder = scanConfigError_.toBuilder();
+              }
+              scanConfigError_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1.ScanConfigError.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(scanConfigError_);
+                scanConfigError_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 24: {
-
-            mostCommonHttpErrorCode_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 24:
+            {
+              mostCommonHttpErrorCode_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,27 +114,31 @@ private ScanRunErrorTrace(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto
+        .internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto
+        .internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.class, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder.class);
+            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.class,
+            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Output only.
    * Defines an error reason code.
@@ -121,9 +147,10 @@ private ScanRunErrorTrace(
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code}
    */
-  public enum Code
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Code implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Default value is never used.
      * 
@@ -132,6 +159,8 @@ public enum Code */ CODE_UNSPECIFIED(0), /** + * + * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -140,6 +169,8 @@ public enum Code */ INTERNAL_ERROR(1), /** + * + * *
      * Indicates a scan configuration error, usually due to outdated ScanConfig
      * settings, such as starting_urls or the DNS configuration.
@@ -149,6 +180,8 @@ public enum Code
      */
     SCAN_CONFIG_ISSUE(2),
     /**
+     *
+     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -158,6 +191,8 @@ public enum Code
      */
     AUTHENTICATION_CONFIG_ISSUE(3),
     /**
+     *
+     *
      * 
      * Indicates a scan operation timeout, usually caused by a very large site.
      * 
@@ -166,6 +201,8 @@ public enum Code */ TIMED_OUT_WHILE_SCANNING(4), /** + * + * *
      * Indicates that a scan encountered excessive redirects, either to
      * authentication or some other page outside of the scan scope.
@@ -175,6 +212,8 @@ public enum Code
      */
     TOO_MANY_REDIRECTS(5),
     /**
+     *
+     *
      * 
      * Indicates that a scan encountered numerous errors from the web site
      * pages. When available, most_common_http_error_code field indicates the
@@ -188,6 +227,8 @@ public enum Code
     ;
 
     /**
+     *
+     *
      * 
      * Default value is never used.
      * 
@@ -196,6 +237,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -204,6 +247,8 @@ public enum Code */ public static final int INTERNAL_ERROR_VALUE = 1; /** + * + * *
      * Indicates a scan configuration error, usually due to outdated ScanConfig
      * settings, such as starting_urls or the DNS configuration.
@@ -213,6 +258,8 @@ public enum Code
      */
     public static final int SCAN_CONFIG_ISSUE_VALUE = 2;
     /**
+     *
+     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -222,6 +269,8 @@ public enum Code
      */
     public static final int AUTHENTICATION_CONFIG_ISSUE_VALUE = 3;
     /**
+     *
+     *
      * 
      * Indicates a scan operation timeout, usually caused by a very large site.
      * 
@@ -230,6 +279,8 @@ public enum Code */ public static final int TIMED_OUT_WHILE_SCANNING_VALUE = 4; /** + * + * *
      * Indicates that a scan encountered excessive redirects, either to
      * authentication or some other page outside of the scan scope.
@@ -239,6 +290,8 @@ public enum Code
      */
     public static final int TOO_MANY_REDIRECTS_VALUE = 5;
     /**
+     *
+     *
      * 
      * Indicates that a scan encountered numerous errors from the web site
      * pages. When available, most_common_http_error_code field indicates the
@@ -249,7 +302,6 @@ public enum Code
      */
     public static final int TOO_MANY_HTTP_ERRORS_VALUE = 6;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -274,53 +326,59 @@ public static Code valueOf(int value) {
      */
     public static Code forNumber(int value) {
       switch (value) {
-        case 0: return CODE_UNSPECIFIED;
-        case 1: return INTERNAL_ERROR;
-        case 2: return SCAN_CONFIG_ISSUE;
-        case 3: return AUTHENTICATION_CONFIG_ISSUE;
-        case 4: return TIMED_OUT_WHILE_SCANNING;
-        case 5: return TOO_MANY_REDIRECTS;
-        case 6: return TOO_MANY_HTTP_ERRORS;
-        default: return null;
+        case 0:
+          return CODE_UNSPECIFIED;
+        case 1:
+          return INTERNAL_ERROR;
+        case 2:
+          return SCAN_CONFIG_ISSUE;
+        case 3:
+          return AUTHENTICATION_CONFIG_ISSUE;
+        case 4:
+          return TIMED_OUT_WHILE_SCANNING;
+        case 5:
+          return TOO_MANY_REDIRECTS;
+        case 6:
+          return TOO_MANY_HTTP_ERRORS;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        Code> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Code findValueByNumber(int number) {
-              return Code.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Code findValueByNumber(int number) {
+            return Code.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final Code[] VALUES = values();
 
-    public static Code valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -340,33 +398,46 @@ private Code(int value) {
   public static final int CODE_FIELD_NUMBER = 1;
   private int code_;
   /**
+   *
+   *
    * 
    * Output only. Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * Output only. Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; + * * @return The code. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.valueOf(code_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.valueOf(code_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.UNRECOGNIZED + : result; } public static final int SCAN_CONFIG_ERROR_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1.ScanConfigError scanConfigError_; /** + * + * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -374,6 +445,7 @@ private Code(int value) {
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; + * * @return Whether the scanConfigError field is set. */ @java.lang.Override @@ -381,6 +453,8 @@ public boolean hasScanConfigError() { return scanConfigError_ != null; } /** + * + * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -388,13 +462,18 @@ public boolean hasScanConfigError() {
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; + * * @return The scanConfigError. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError() { - return scanConfigError_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance() : scanConfigError_; + return scanConfigError_ == null + ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance() + : scanConfigError_; } /** + * + * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -404,13 +483,16 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError
    * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder
+      getScanConfigErrorOrBuilder() {
     return getScanConfigError();
   }
 
   public static final int MOST_COMMON_HTTP_ERROR_CODE_FIELD_NUMBER = 3;
   private int mostCommonHttpErrorCode_;
   /**
+   *
+   *
    * 
    * Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
    * common HTTP error code, if such is available. For example, if this code is
@@ -418,6 +500,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder getScanCo
    * 
* * int32 most_common_http_error_code = 3; + * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -426,6 +509,7 @@ public int getMostCommonHttpErrorCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -437,9 +521,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.CODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, code_); } if (scanConfigError_ != null) { @@ -457,17 +542,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + if (code_ + != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } if (scanConfigError_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getScanConfigError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfigError()); } if (mostCommonHttpErrorCode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, mostCommonHttpErrorCode_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, mostCommonHttpErrorCode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -477,21 +561,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace other = (com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) obj; + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace other = + (com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) obj; if (code_ != other.code_) return false; if (hasScanConfigError() != other.hasScanConfigError()) return false; if (hasScanConfigError()) { - if (!getScanConfigError() - .equals(other.getScanConfigError())) return false; + if (!getScanConfigError().equals(other.getScanConfigError())) return false; } - if (getMostCommonHttpErrorCode() - != other.getMostCommonHttpErrorCode()) return false; + if (getMostCommonHttpErrorCode() != other.getMostCommonHttpErrorCode()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -517,96 +600,104 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Output only.
    * Defines an error trace message for a ScanRun.
@@ -614,21 +705,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunErrorTrace}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanRunErrorTrace)
       com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto
+          .internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto
+          .internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.class, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder.class);
+              com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.class,
+              com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.newBuilder()
@@ -636,16 +729,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -663,9 +755,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto
+          .internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor;
     }
 
     @java.lang.Override
@@ -684,7 +776,8 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace buildPartial() {
-      com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace result = new com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace(this);
+      com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace result =
+          new com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace(this);
       result.code_ = code_;
       if (scanConfigErrorBuilder_ == null) {
         result.scanConfigError_ = scanConfigError_;
@@ -700,38 +793,39 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -739,7 +833,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace other) {
-      if (other == com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance()) return this;
+      if (other == com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance())
+        return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -768,7 +863,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -780,51 +876,67 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
+     *
+     *
      * 
      * Output only. Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * Output only. Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; + * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.valueOf(code_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.valueOf(code_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; + * * @param value The code to set. * @return This builder for chaining. */ @@ -832,21 +944,24 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace. if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -854,8 +969,13 @@ public Builder clearCode() { private com.google.cloud.websecurityscanner.v1.ScanConfigError scanConfigError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfigError, com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder> scanConfigErrorBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfigError, + com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder, + com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder> + scanConfigErrorBuilder_; /** + * + * *
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -863,12 +983,15 @@ public Builder clearCode() {
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; + * * @return Whether the scanConfigError field is set. */ public boolean hasScanConfigError() { return scanConfigErrorBuilder_ != null || scanConfigError_ != null; } /** + * + * *
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -876,16 +999,21 @@ public boolean hasScanConfigError() {
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; + * * @return The scanConfigError. */ public com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError() { if (scanConfigErrorBuilder_ == null) { - return scanConfigError_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance() : scanConfigError_; + return scanConfigError_ == null + ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance() + : scanConfigError_; } else { return scanConfigErrorBuilder_.getMessage(); } } /** + * + * *
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -894,7 +1022,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError
      *
      * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      */
-    public Builder setScanConfigError(com.google.cloud.websecurityscanner.v1.ScanConfigError value) {
+    public Builder setScanConfigError(
+        com.google.cloud.websecurityscanner.v1.ScanConfigError value) {
       if (scanConfigErrorBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -908,6 +1037,8 @@ public Builder setScanConfigError(com.google.cloud.websecurityscanner.v1.ScanCon
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -928,6 +1059,8 @@ public Builder setScanConfigError(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -936,11 +1069,14 @@ public Builder setScanConfigError(
      *
      * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      */
-    public Builder mergeScanConfigError(com.google.cloud.websecurityscanner.v1.ScanConfigError value) {
+    public Builder mergeScanConfigError(
+        com.google.cloud.websecurityscanner.v1.ScanConfigError value) {
       if (scanConfigErrorBuilder_ == null) {
         if (scanConfigError_ != null) {
           scanConfigError_ =
-            com.google.cloud.websecurityscanner.v1.ScanConfigError.newBuilder(scanConfigError_).mergeFrom(value).buildPartial();
+              com.google.cloud.websecurityscanner.v1.ScanConfigError.newBuilder(scanConfigError_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           scanConfigError_ = value;
         }
@@ -952,6 +1088,8 @@ public Builder mergeScanConfigError(com.google.cloud.websecurityscanner.v1.ScanC
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -972,6 +1110,8 @@ public Builder clearScanConfigError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -980,12 +1120,15 @@ public Builder clearScanConfigError() {
      *
      * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      */
-    public com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder getScanConfigErrorBuilder() {
-      
+    public com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder
+        getScanConfigErrorBuilder() {
+
       onChanged();
       return getScanConfigErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -994,15 +1137,19 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder getScanCon
      *
      * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      */
-    public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder() {
+    public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder
+        getScanConfigErrorOrBuilder() {
       if (scanConfigErrorBuilder_ != null) {
         return scanConfigErrorBuilder_.getMessageOrBuilder();
       } else {
-        return scanConfigError_ == null ?
-            com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance() : scanConfigError_;
+        return scanConfigError_ == null
+            ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance()
+            : scanConfigError_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1012,21 +1159,26 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder getScanCo
      * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.websecurityscanner.v1.ScanConfigError, com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder> 
+            com.google.cloud.websecurityscanner.v1.ScanConfigError,
+            com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder,
+            com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder>
         getScanConfigErrorFieldBuilder() {
       if (scanConfigErrorBuilder_ == null) {
-        scanConfigErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.ScanConfigError, com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder>(
-                getScanConfigError(),
-                getParentForChildren(),
-                isClean());
+        scanConfigErrorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.websecurityscanner.v1.ScanConfigError,
+                com.google.cloud.websecurityscanner.v1.ScanConfigError.Builder,
+                com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder>(
+                getScanConfigError(), getParentForChildren(), isClean());
         scanConfigError_ = null;
       }
       return scanConfigErrorBuilder_;
     }
 
-    private int mostCommonHttpErrorCode_ ;
+    private int mostCommonHttpErrorCode_;
     /**
+     *
+     *
      * 
      * Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1034,6 +1186,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder getScanCo
      * 
* * int32 most_common_http_error_code = 3; + * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -1041,6 +1194,8 @@ public int getMostCommonHttpErrorCode() { return mostCommonHttpErrorCode_; } /** + * + * *
      * Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1048,16 +1203,19 @@ public int getMostCommonHttpErrorCode() {
      * 
* * int32 most_common_http_error_code = 3; + * * @param value The mostCommonHttpErrorCode to set. * @return This builder for chaining. */ public Builder setMostCommonHttpErrorCode(int value) { - + mostCommonHttpErrorCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1065,17 +1223,18 @@ public Builder setMostCommonHttpErrorCode(int value) {
      * 
* * int32 most_common_http_error_code = 3; + * * @return This builder for chaining. */ public Builder clearMostCommonHttpErrorCode() { - + mostCommonHttpErrorCode_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1085,12 +1244,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanRunErrorTrace) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanRunErrorTrace) private static final com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace(); } @@ -1099,16 +1258,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRunErrorTrace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunErrorTrace(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRunErrorTrace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRunErrorTrace(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1123,6 +1282,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java index 469625b4..fb974bf8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_run_error_trace.proto package com.google.cloud.websecurityscanner.v1; -public interface ScanRunErrorTraceOrBuilder extends +public interface ScanRunErrorTraceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanRunErrorTrace) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
    * Output only. Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code code = 1; + * * @return The code. */ com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode(); /** + * + * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -34,10 +58,13 @@ public interface ScanRunErrorTraceOrBuilder extends
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; + * * @return Whether the scanConfigError field is set. */ boolean hasScanConfigError(); /** + * + * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -45,10 +72,13 @@ public interface ScanRunErrorTraceOrBuilder extends
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; + * * @return The scanConfigError. */ com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError(); /** + * + * *
    * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -60,6 +90,8 @@ public interface ScanRunErrorTraceOrBuilder extends
   com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
    * common HTTP error code, if such is available. For example, if this code is
@@ -67,6 +99,7 @@ public interface ScanRunErrorTraceOrBuilder extends
    * 
* * int32 most_common_http_error_code = 3; + * * @return The mostCommonHttpErrorCode. */ int getMostCommonHttpErrorCode(); diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java new file mode 100644 index 00000000..16ad1d02 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java @@ -0,0 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_run_error_trace.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanRunErrorTraceProto { + private ScanRunErrorTraceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n=google/cloud/websecurityscanner/v1/sca" + + "n_run_error_trace.proto\022\"google.cloud.we" + + "bsecurityscanner.v1\032:google/cloud/websec" + + "urityscanner/v1/scan_config_error.proto\"" + + "\215\003\n\021ScanRunErrorTrace\022H\n\004code\030\001 \001(\0162:.go" + + "ogle.cloud.websecurityscanner.v1.ScanRun" + + "ErrorTrace.Code\022N\n\021scan_config_error\030\002 \001" + + "(\01323.google.cloud.websecurityscanner.v1." + + "ScanConfigError\022#\n\033most_common_http_erro" + + "r_code\030\003 \001(\005\"\270\001\n\004Code\022\024\n\020CODE_UNSPECIFIE" + + "D\020\000\022\022\n\016INTERNAL_ERROR\020\001\022\025\n\021SCAN_CONFIG_I" + + "SSUE\020\002\022\037\n\033AUTHENTICATION_CONFIG_ISSUE\020\003\022" + + "\034\n\030TIMED_OUT_WHILE_SCANNING\020\004\022\026\n\022TOO_MAN" + + "Y_REDIRECTS\020\005\022\030\n\024TOO_MANY_HTTP_ERRORS\020\006B" + + "\212\002\n&com.google.cloud.websecurityscanner." + + "v1B\026ScanRunErrorTraceProtoP\001ZTgoogle.gol" + + "ang.org/genproto/googleapis/cloud/websec" + + "urityscanner/v1;websecurityscanner\252\002\"Goo" + + "gle.Cloud.WebSecurityScanner.V1\312\002\"Google" + + "\\Cloud\\WebSecurityScanner\\V1\352\002%Google::C" + + "loud::WebSecurityScanner::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanRunErrorTrace_descriptor, + new java.lang.String[] { + "Code", "ScanConfigError", "MostCommonHttpErrorCode", + }); + com.google.cloud.websecurityscanner.v1.ScanConfigErrorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java index 498e6090..41c4f179 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_run_log.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * A ScanRunLog is an output-only proto used for Stackdriver customer logging.
  * It is used for logs covering the start and end of scan pipelines.
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunLog}
  */
-public final class ScanRunLog extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ScanRunLog extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanRunLog)
     ScanRunLogOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ScanRunLog.newBuilder() to construct.
   private ScanRunLog(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ScanRunLog() {
     summary_ = "";
     name_ = "";
@@ -32,16 +50,15 @@ private ScanRunLog() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ScanRunLog();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ScanRunLog(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,65 +77,73 @@ private ScanRunLog(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            summary_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 24: {
-            int rawValue = input.readEnum();
-
-            executionState_ = rawValue;
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
-
-            resultState_ = rawValue;
-            break;
-          }
-          case 40: {
+              summary_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            urlsCrawledCount_ = input.readInt64();
-            break;
-          }
-          case 48: {
+              name_ = s;
+              break;
+            }
+          case 24:
+            {
+              int rawValue = input.readEnum();
 
-            urlsTestedCount_ = input.readInt64();
-            break;
-          }
-          case 56: {
+              executionState_ = rawValue;
+              break;
+            }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            hasFindings_ = input.readBool();
-            break;
-          }
-          case 66: {
-            com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder subBuilder = null;
-            if (errorTrace_ != null) {
-              subBuilder = errorTrace_.toBuilder();
+              resultState_ = rawValue;
+              break;
             }
-            errorTrace_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(errorTrace_);
-              errorTrace_ = subBuilder.buildPartial();
+          case 40:
+            {
+              urlsCrawledCount_ = input.readInt64();
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 48:
+            {
+              urlsTestedCount_ = input.readInt64();
+              break;
+            }
+          case 56:
+            {
+              hasFindings_ = input.readBool();
+              break;
+            }
+          case 66:
+            {
+              com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder subBuilder = null;
+              if (errorTrace_ != null) {
+                subBuilder = errorTrace_.toBuilder();
+              }
+              errorTrace_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(errorTrace_);
+                errorTrace_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -126,34 +151,39 @@ private ScanRunLog(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunLogProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.ScanRunLogProto
+        .internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunLogProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.ScanRunLogProto
+        .internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.ScanRunLog.class, com.google.cloud.websecurityscanner.v1.ScanRunLog.Builder.class);
+            com.google.cloud.websecurityscanner.v1.ScanRunLog.class,
+            com.google.cloud.websecurityscanner.v1.ScanRunLog.Builder.class);
   }
 
   public static final int SUMMARY_FIELD_NUMBER = 1;
   private volatile java.lang.Object summary_;
   /**
+   *
+   *
    * 
    * Human friendly message about the event.
    * 
* * string summary = 1; + * * @return The summary. */ @java.lang.Override @@ -162,29 +192,29 @@ public java.lang.String getSummary() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summary_ = s; return s; } } /** + * + * *
    * Human friendly message about the event.
    * 
* * string summary = 1; + * * @return The bytes for summary. */ @java.lang.Override - public com.google.protobuf.ByteString - getSummaryBytes() { + public com.google.protobuf.ByteString getSummaryBytes() { java.lang.Object ref = summary_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); summary_ = b; return b; } else { @@ -195,11 +225,14 @@ public java.lang.String getSummary() { public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the ScanRun being logged.
    * 
* * string name = 2; + * * @return The name. */ @java.lang.Override @@ -208,29 +241,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the ScanRun being logged.
    * 
* * string name = 2; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -241,61 +274,84 @@ public java.lang.String getName() { public static final int EXECUTION_STATE_FIELD_NUMBER = 3; private int executionState_; /** + * + * *
    * The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override public int getExecutionStateValue() { + @java.lang.Override + public int getExecutionStateValue() { return executionState_; } /** + * + * *
    * The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * * @return The executionState. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED + : result; } public static final int RESULT_STATE_FIELD_NUMBER = 4; private int resultState_; /** + * + * *
    * The result state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override public int getResultStateValue() { + @java.lang.Override + public int getResultStateValue() { return resultState_; } /** + * + * *
    * The result state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * * @return The resultState. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED + : result; } public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 5; private long urlsCrawledCount_; /** * int64 urls_crawled_count = 5; + * * @return The urlsCrawledCount. */ @java.lang.Override @@ -307,6 +363,7 @@ public long getUrlsCrawledCount() { private long urlsTestedCount_; /** * int64 urls_tested_count = 6; + * * @return The urlsTestedCount. */ @java.lang.Override @@ -318,6 +375,7 @@ public long getUrlsTestedCount() { private boolean hasFindings_; /** * bool has_findings = 7; + * * @return The hasFindings. */ @java.lang.Override @@ -329,6 +387,7 @@ public boolean getHasFindings() { private com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace errorTrace_; /** * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + * * @return Whether the errorTrace field is set. */ @java.lang.Override @@ -337,21 +396,24 @@ public boolean hasErrorTrace() { } /** * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + * * @return The errorTrace. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace() { - return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; + return errorTrace_ == null + ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() + : errorTrace_; } - /** - * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; - */ + /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() { + public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder + getErrorTraceOrBuilder() { return getErrorTrace(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -363,18 +425,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summary_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, summary_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } - if (executionState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { + if (executionState_ + != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, executionState_); } - if (resultState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { + if (resultState_ + != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, resultState_); } if (urlsCrawledCount_ != 0L) { @@ -404,29 +469,27 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } - if (executionState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, executionState_); + if (executionState_ + != com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, executionState_); } - if (resultState_ != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, resultState_); + if (resultState_ + != com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, resultState_); } if (urlsCrawledCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, urlsCrawledCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, urlsCrawledCount_); } if (urlsTestedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, urlsTestedCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, urlsTestedCount_); } if (hasFindings_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, hasFindings_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, hasFindings_); } if (errorTrace_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getErrorTrace()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getErrorTrace()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -436,29 +499,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanRunLog)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanRunLog other = (com.google.cloud.websecurityscanner.v1.ScanRunLog) obj; + com.google.cloud.websecurityscanner.v1.ScanRunLog other = + (com.google.cloud.websecurityscanner.v1.ScanRunLog) obj; - if (!getSummary() - .equals(other.getSummary())) return false; - if (!getName() - .equals(other.getName())) return false; + if (!getSummary().equals(other.getSummary())) return false; + if (!getName().equals(other.getName())) return false; if (executionState_ != other.executionState_) return false; if (resultState_ != other.resultState_) return false; - if (getUrlsCrawledCount() - != other.getUrlsCrawledCount()) return false; - if (getUrlsTestedCount() - != other.getUrlsTestedCount()) return false; - if (getHasFindings() - != other.getHasFindings()) return false; + if (getUrlsCrawledCount() != other.getUrlsCrawledCount()) return false; + if (getUrlsTestedCount() != other.getUrlsTestedCount()) return false; + if (getHasFindings() != other.getHasFindings()) return false; if (hasErrorTrace() != other.hasErrorTrace()) return false; if (hasErrorTrace()) { - if (!getErrorTrace() - .equals(other.getErrorTrace())) return false; + if (!getErrorTrace().equals(other.getErrorTrace())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -480,14 +538,11 @@ public int hashCode() { hash = (37 * hash) + RESULT_STATE_FIELD_NUMBER; hash = (53 * hash) + resultState_; hash = (37 * hash) + URLS_CRAWLED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUrlsCrawledCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsCrawledCount()); hash = (37 * hash) + URLS_TESTED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUrlsTestedCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsTestedCount()); hash = (37 * hash) + HAS_FINDINGS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHasFindings()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasFindings()); if (hasErrorTrace()) { hash = (37 * hash) + ERROR_TRACE_FIELD_NUMBER; hash = (53 * hash) + getErrorTrace().hashCode(); @@ -498,96 +553,103 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanRunLog parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanRunLog prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A ScanRunLog is an output-only proto used for Stackdriver customer logging.
    * It is used for logs covering the start and end of scan pipelines.
@@ -598,21 +660,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunLog}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanRunLog)
       com.google.cloud.websecurityscanner.v1.ScanRunLogOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunLogProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunLogProto
+          .internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunLogProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.ScanRunLogProto
+          .internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.ScanRunLog.class, com.google.cloud.websecurityscanner.v1.ScanRunLog.Builder.class);
+              com.google.cloud.websecurityscanner.v1.ScanRunLog.class,
+              com.google.cloud.websecurityscanner.v1.ScanRunLog.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.ScanRunLog.newBuilder()
@@ -620,16 +684,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -657,9 +720,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunLogProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunLogProto
+          .internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor;
     }
 
     @java.lang.Override
@@ -678,7 +741,8 @@ public com.google.cloud.websecurityscanner.v1.ScanRunLog build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.ScanRunLog buildPartial() {
-      com.google.cloud.websecurityscanner.v1.ScanRunLog result = new com.google.cloud.websecurityscanner.v1.ScanRunLog(this);
+      com.google.cloud.websecurityscanner.v1.ScanRunLog result =
+          new com.google.cloud.websecurityscanner.v1.ScanRunLog(this);
       result.summary_ = summary_;
       result.name_ = name_;
       result.executionState_ = executionState_;
@@ -699,38 +763,39 @@ public com.google.cloud.websecurityscanner.v1.ScanRunLog buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.ScanRunLog) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRunLog)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRunLog) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -738,7 +803,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRunLog other) {
-      if (other == com.google.cloud.websecurityscanner.v1.ScanRunLog.getDefaultInstance()) return this;
+      if (other == com.google.cloud.websecurityscanner.v1.ScanRunLog.getDefaultInstance())
+        return this;
       if (!other.getSummary().isEmpty()) {
         summary_ = other.summary_;
         onChanged();
@@ -784,7 +850,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanRunLog) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1.ScanRunLog) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -796,18 +863,20 @@ public Builder mergeFrom(
 
     private java.lang.Object summary_ = "";
     /**
+     *
+     *
      * 
      * Human friendly message about the event.
      * 
* * string summary = 1; + * * @return The summary. */ public java.lang.String getSummary() { java.lang.Object ref = summary_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); summary_ = s; return s; @@ -816,20 +885,21 @@ public java.lang.String getSummary() { } } /** + * + * *
      * Human friendly message about the event.
      * 
* * string summary = 1; + * * @return The bytes for summary. */ - public com.google.protobuf.ByteString - getSummaryBytes() { + public com.google.protobuf.ByteString getSummaryBytes() { java.lang.Object ref = summary_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); summary_ = b; return b; } else { @@ -837,54 +907,61 @@ public java.lang.String getSummary() { } } /** + * + * *
      * Human friendly message about the event.
      * 
* * string summary = 1; + * * @param value The summary to set. * @return This builder for chaining. */ - public Builder setSummary( - java.lang.String value) { + public Builder setSummary(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + summary_ = value; onChanged(); return this; } /** + * + * *
      * Human friendly message about the event.
      * 
* * string summary = 1; + * * @return This builder for chaining. */ public Builder clearSummary() { - + summary_ = getDefaultInstance().getSummary(); onChanged(); return this; } /** + * + * *
      * Human friendly message about the event.
      * 
* * string summary = 1; + * * @param value The bytes for summary to set. * @return This builder for chaining. */ - public Builder setSummaryBytes( - com.google.protobuf.ByteString value) { + public Builder setSummaryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + summary_ = value; onChanged(); return this; @@ -892,18 +969,20 @@ public Builder setSummaryBytes( private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the ScanRun being logged.
      * 
* * string name = 2; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -912,20 +991,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ScanRun being logged.
      * 
* * string name = 2; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -933,54 +1013,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ScanRun being logged.
      * 
* * string name = 2; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the ScanRun being logged.
      * 
* * string name = 2; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the ScanRun being logged.
      * 
* * string name = 2; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -988,73 +1075,93 @@ public Builder setNameBytes( private int executionState_ = 0; /** + * + * *
      * The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override public int getExecutionStateValue() { + @java.lang.Override + public int getExecutionStateValue() { return executionState_; } /** + * + * *
      * The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * * @param value The enum numeric value on the wire for executionState to set. * @return This builder for chaining. */ public Builder setExecutionStateValue(int value) { - + executionState_ = value; onChanged(); return this; } /** + * + * *
      * The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * * @return The executionState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.valueOf(executionState_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED + : result; } /** + * + * *
      * The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * * @param value The executionState to set. * @return This builder for chaining. */ - public Builder setExecutionState(com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState value) { + public Builder setExecutionState( + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState value) { if (value == null) { throw new NullPointerException(); } - + executionState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The execution state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * * @return This builder for chaining. */ public Builder clearExecutionState() { - + executionState_ = 0; onChanged(); return this; @@ -1062,81 +1169,102 @@ public Builder clearExecutionState() { private int resultState_ = 0; /** + * + * *
      * The result state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override public int getResultStateValue() { + @java.lang.Override + public int getResultStateValue() { return resultState_; } /** + * + * *
      * The result state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * * @param value The enum numeric value on the wire for resultState to set. * @return This builder for chaining. */ public Builder setResultStateValue(int value) { - + resultState_ = value; onChanged(); return this; } /** + * + * *
      * The result state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * * @return The resultState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.valueOf(resultState_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED + : result; } /** + * + * *
      * The result state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * * @param value The resultState to set. * @return This builder for chaining. */ - public Builder setResultState(com.google.cloud.websecurityscanner.v1.ScanRun.ResultState value) { + public Builder setResultState( + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState value) { if (value == null) { throw new NullPointerException(); } - + resultState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The result state of the ScanRun.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * * @return This builder for chaining. */ public Builder clearResultState() { - + resultState_ = 0; onChanged(); return this; } - private long urlsCrawledCount_ ; + private long urlsCrawledCount_; /** * int64 urls_crawled_count = 5; + * * @return The urlsCrawledCount. */ @java.lang.Override @@ -1145,29 +1273,32 @@ public long getUrlsCrawledCount() { } /** * int64 urls_crawled_count = 5; + * * @param value The urlsCrawledCount to set. * @return This builder for chaining. */ public Builder setUrlsCrawledCount(long value) { - + urlsCrawledCount_ = value; onChanged(); return this; } /** * int64 urls_crawled_count = 5; + * * @return This builder for chaining. */ public Builder clearUrlsCrawledCount() { - + urlsCrawledCount_ = 0L; onChanged(); return this; } - private long urlsTestedCount_ ; + private long urlsTestedCount_; /** * int64 urls_tested_count = 6; + * * @return The urlsTestedCount. */ @java.lang.Override @@ -1176,29 +1307,32 @@ public long getUrlsTestedCount() { } /** * int64 urls_tested_count = 6; + * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ public Builder setUrlsTestedCount(long value) { - + urlsTestedCount_ = value; onChanged(); return this; } /** * int64 urls_tested_count = 6; + * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { - + urlsTestedCount_ = 0L; onChanged(); return this; } - private boolean hasFindings_ ; + private boolean hasFindings_; /** * bool has_findings = 7; + * * @return The hasFindings. */ @java.lang.Override @@ -1207,21 +1341,23 @@ public boolean getHasFindings() { } /** * bool has_findings = 7; + * * @param value The hasFindings to set. * @return This builder for chaining. */ public Builder setHasFindings(boolean value) { - + hasFindings_ = value; onChanged(); return this; } /** * bool has_findings = 7; + * * @return This builder for chaining. */ public Builder clearHasFindings() { - + hasFindings_ = false; onChanged(); return this; @@ -1229,9 +1365,13 @@ public Builder clearHasFindings() { private com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace errorTrace_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> errorTraceBuilder_; + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, + com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> + errorTraceBuilder_; /** * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + * * @return Whether the errorTrace field is set. */ public boolean hasErrorTrace() { @@ -1239,18 +1379,19 @@ public boolean hasErrorTrace() { } /** * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + * * @return The errorTrace. */ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace() { if (errorTraceBuilder_ == null) { - return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; + return errorTrace_ == null + ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() + : errorTrace_; } else { return errorTraceBuilder_.getMessage(); } } - /** - * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; - */ + /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ public Builder setErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace value) { if (errorTraceBuilder_ == null) { if (value == null) { @@ -1264,9 +1405,7 @@ public Builder setErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunError return this; } - /** - * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; - */ + /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ public Builder setErrorTrace( com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder builderForValue) { if (errorTraceBuilder_ == null) { @@ -1278,14 +1417,14 @@ public Builder setErrorTrace( return this; } - /** - * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; - */ + /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace value) { if (errorTraceBuilder_ == null) { if (errorTrace_ != null) { errorTrace_ = - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.newBuilder(errorTrace_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.newBuilder(errorTrace_) + .mergeFrom(value) + .buildPartial(); } else { errorTrace_ = value; } @@ -1296,9 +1435,7 @@ public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErr return this; } - /** - * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; - */ + /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ public Builder clearErrorTrace() { if (errorTraceBuilder_ == null) { errorTrace_ = null; @@ -1310,44 +1447,43 @@ public Builder clearErrorTrace() { return this; } - /** - * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; - */ + /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder getErrorTraceBuilder() { - + onChanged(); return getErrorTraceFieldBuilder().getBuilder(); } - /** - * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; - */ - public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() { + /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ + public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder + getErrorTraceOrBuilder() { if (errorTraceBuilder_ != null) { return errorTraceBuilder_.getMessageOrBuilder(); } else { - return errorTrace_ == null ? - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; + return errorTrace_ == null + ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() + : errorTrace_; } } - /** - * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; - */ + /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, + com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder> getErrorTraceFieldBuilder() { if (errorTraceBuilder_ == null) { - errorTraceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder>( - getErrorTrace(), - getParentForChildren(), - isClean()); + errorTraceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace, + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder, + com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder>( + getErrorTrace(), getParentForChildren(), isClean()); errorTrace_ = null; } return errorTraceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1357,12 +1493,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanRunLog) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanRunLog) private static final com.google.cloud.websecurityscanner.v1.ScanRunLog DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanRunLog(); } @@ -1371,16 +1507,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanRunLog getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRunLog parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunLog(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRunLog parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRunLog(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1395,6 +1531,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRunLog getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java index daef3296..6f48da20 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java @@ -1,120 +1,161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_run_log.proto package com.google.cloud.websecurityscanner.v1; -public interface ScanRunLogOrBuilder extends +public interface ScanRunLogOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanRunLog) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Human friendly message about the event.
    * 
* * string summary = 1; + * * @return The summary. */ java.lang.String getSummary(); /** + * + * *
    * Human friendly message about the event.
    * 
* * string summary = 1; + * * @return The bytes for summary. */ - com.google.protobuf.ByteString - getSummaryBytes(); + com.google.protobuf.ByteString getSummaryBytes(); /** + * + * *
    * The resource name of the ScanRun being logged.
    * 
* * string name = 2; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the ScanRun being logged.
    * 
* * string name = 2; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * * @return The enum numeric value on the wire for executionState. */ int getExecutionStateValue(); /** + * + * *
    * The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3; + * * @return The executionState. */ com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState(); /** + * + * *
    * The result state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * * @return The enum numeric value on the wire for resultState. */ int getResultStateValue(); /** + * + * *
    * The result state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4; + * * @return The resultState. */ com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState(); /** * int64 urls_crawled_count = 5; + * * @return The urlsCrawledCount. */ long getUrlsCrawledCount(); /** * int64 urls_tested_count = 6; + * * @return The urlsTestedCount. */ long getUrlsTestedCount(); /** * bool has_findings = 7; + * * @return The hasFindings. */ boolean getHasFindings(); /** * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + * * @return Whether the errorTrace field is set. */ boolean hasErrorTrace(); /** * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + * * @return The errorTrace. */ com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace(); - /** - * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; - */ + /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder(); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java new file mode 100644 index 00000000..f1f55738 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java @@ -0,0 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_run_log.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanRunLogProto { + private ScanRunLogProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/websecurityscanner/v1/sca" + + "n_run_log.proto\022\"google.cloud.websecurit" + + "yscanner.v1\0321google/cloud/websecuritysca" + + "nner/v1/scan_run.proto\032=google/cloud/web" + + "securityscanner/v1/scan_run_error_trace." + + "proto\"\350\002\n\nScanRunLog\022\017\n\007summary\030\001 \001(\t\022\014\n" + + "\004name\030\002 \001(\t\022S\n\017execution_state\030\003 \001(\0162:.g" + + "oogle.cloud.websecurityscanner.v1.ScanRu" + + "n.ExecutionState\022M\n\014result_state\030\004 \001(\01627" + + ".google.cloud.websecurityscanner.v1.Scan" + + "Run.ResultState\022\032\n\022urls_crawled_count\030\005 " + + "\001(\003\022\031\n\021urls_tested_count\030\006 \001(\003\022\024\n\014has_fi" + + "ndings\030\007 \001(\010\022J\n\013error_trace\030\010 \001(\01325.goog" + + "le.cloud.websecurityscanner.v1.ScanRunEr" + + "rorTraceB\203\002\n&com.google.cloud.websecurit" + + "yscanner.v1B\017ScanRunLogProtoP\001ZTgoogle.g" + + "olang.org/genproto/googleapis/cloud/webs" + + "ecurityscanner/v1;websecurityscanner\252\002\"G" + + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" + + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" + + ":Cloud::WebSecurityScanner::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.websecurityscanner.v1.ScanRunProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanRunLog_descriptor, + new java.lang.String[] { + "Summary", + "Name", + "ExecutionState", + "ResultState", + "UrlsCrawledCount", + "UrlsTestedCount", + "HasFindings", + "ErrorTrace", + }); + com.google.cloud.websecurityscanner.v1.ScanRunProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java index cba66f0a..1a42828e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_run.proto package com.google.cloud.websecurityscanner.v1; -public interface ScanRunOrBuilder extends +public interface ScanRunOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanRun) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -15,10 +33,13 @@ public interface ScanRunOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -26,70 +47,90 @@ public interface ScanRunOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; + * * @return The enum numeric value on the wire for executionState. */ int getExecutionStateValue(); /** + * + * *
    * Output only. The execution state of the ScanRun.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 2; + * * @return The executionState. */ com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState(); /** + * + * *
    * Output only. The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; + * * @return The enum numeric value on the wire for resultState. */ int getResultStateValue(); /** + * + * *
    * Output only. The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 3; + * * @return The resultState. */ com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState(); /** + * + * *
    * Output only. The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Output only. The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Output only. The time at which the ScanRun started.
    * 
@@ -99,26 +140,34 @@ public interface ScanRunOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -129,17 +178,22 @@ public interface ScanRunOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; + * * @return The urlsCrawledCount. */ long getUrlsCrawledCount(); /** + * + * *
    * Output only. The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -148,21 +202,27 @@ public interface ScanRunOrBuilder extends
    * 
* * int64 urls_tested_count = 7; + * * @return The urlsTestedCount. */ long getUrlsTestedCount(); /** + * + * *
    * Output only. Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; + * * @return The hasVulnerabilities. */ boolean getHasVulnerabilities(); /** + * + * *
    * Output only. The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -171,31 +231,40 @@ public interface ScanRunOrBuilder extends
    * 
* * int32 progress_percent = 9; + * * @return The progressPercent. */ int getProgressPercent(); /** + * + * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; + * * @return Whether the errorTrace field is set. */ boolean hasErrorTrace(); /** + * + * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 10; + * * @return The errorTrace. */ com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getErrorTrace(); /** + * + * *
    * Output only. If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
@@ -206,45 +275,59 @@ public interface ScanRunOrBuilder extends
   com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ - java.util.List - getWarningTracesList(); + java.util.List getWarningTracesList(); /** + * + * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getWarningTraces(int index); /** + * + * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ int getWarningTracesCount(); /** + * + * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ - java.util.List + java.util.List getWarningTracesOrBuilderList(); /** + * + * *
    * Output only. A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1.ScanRunWarningTrace warning_traces = 11; + * */ com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( int index); diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java new file mode 100644 index 00000000..8294ff42 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java @@ -0,0 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_run.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanRunProto { + private ScanRunProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/websecurityscanner/v1/sca" + + "n_run.proto\022\"google.cloud.websecuritysca" + + "nner.v1\032=google/cloud/websecurityscanner" + + "/v1/scan_run_error_trace.proto\032?google/c" + + "loud/websecurityscanner/v1/scan_run_warn" + + "ing_trace.proto\032\037google/protobuf/timesta" + + "mp.proto\"\320\005\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022S\n\017ex" + + "ecution_state\030\002 \001(\0162:.google.cloud.webse" + + "curityscanner.v1.ScanRun.ExecutionState\022" + + "M\n\014result_state\030\003 \001(\01627.google.cloud.web" + + "securityscanner.v1.ScanRun.ResultState\022." + + "\n\nstart_time\030\004 \001(\0132\032.google.protobuf.Tim" + + "estamp\022,\n\010end_time\030\005 \001(\0132\032.google.protob" + + "uf.Timestamp\022\032\n\022urls_crawled_count\030\006 \001(\003" + + "\022\031\n\021urls_tested_count\030\007 \001(\003\022\033\n\023has_vulne" + + "rabilities\030\010 \001(\010\022\030\n\020progress_percent\030\t \001" + + "(\005\022J\n\013error_trace\030\n \001(\01325.google.cloud.w" + + "ebsecurityscanner.v1.ScanRunErrorTrace\022O" + + "\n\016warning_traces\030\013 \003(\01327.google.cloud.we" + + "bsecurityscanner.v1.ScanRunWarningTrace\"" + + "Y\n\016ExecutionState\022\037\n\033EXECUTION_STATE_UNS" + + "PECIFIED\020\000\022\n\n\006QUEUED\020\001\022\014\n\010SCANNING\020\002\022\014\n\010" + + "FINISHED\020\003\"O\n\013ResultState\022\034\n\030RESULT_STAT" + + "E_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020\001\022\t\n\005ERROR\020\002\022" + + "\n\n\006KILLED\020\003B\200\002\n&com.google.cloud.websecu" + + "rityscanner.v1B\014ScanRunProtoP\001ZTgoogle.g" + + "olang.org/genproto/googleapis/cloud/webs" + + "ecurityscanner/v1;websecurityscanner\252\002\"G" + + "oogle.Cloud.WebSecurityScanner.V1\312\002\"Goog" + + "le\\Cloud\\WebSecurityScanner\\V1\352\002%Google:" + + ":Cloud::WebSecurityScanner::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanRun_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanRun_descriptor, + new java.lang.String[] { + "Name", + "ExecutionState", + "ResultState", + "StartTime", + "EndTime", + "UrlsCrawledCount", + "UrlsTestedCount", + "HasVulnerabilities", + "ProgressPercent", + "ErrorTrace", + "WarningTraces", + }); + com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java index 4e7f682a..fd04b91e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Output only.
  * Defines a warning trace message for ScanRun. Warning traces provide customers
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunWarningTrace}
  */
-public final class ScanRunWarningTrace extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ScanRunWarningTrace extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ScanRunWarningTrace)
     ScanRunWarningTraceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ScanRunWarningTrace.newBuilder() to construct.
   private ScanRunWarningTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ScanRunWarningTrace() {
     code_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ScanRunWarningTrace();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ScanRunWarningTrace(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,19 +72,20 @@ private ScanRunWarningTrace(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            code_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              code_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -75,27 +93,31 @@ private ScanRunWarningTrace(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto
+        .internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto
+        .internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.class, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder.class);
+            com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.class,
+            com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Output only.
    * Defines a warning message code.
@@ -104,9 +126,10 @@ private ScanRunWarningTrace(
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code}
    */
-  public enum Code
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Code implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Default value is never used.
      * 
@@ -115,6 +138,8 @@ public enum Code */ CODE_UNSPECIFIED(0), /** + * + * *
      * Indicates that a scan discovered an unexpectedly low number of URLs. This
      * is sometimes caused by complex navigation features or by using a single
@@ -125,6 +150,8 @@ public enum Code
      */
     INSUFFICIENT_CRAWL_RESULTS(1),
     /**
+     *
+     *
      * 
      * Indicates that a scan discovered too many URLs to test, or excessive
      * redundant URLs.
@@ -134,6 +161,8 @@ public enum Code
      */
     TOO_MANY_CRAWL_RESULTS(2),
     /**
+     *
+     *
      * 
      * Indicates that too many tests have been generated for the scan. Customer
      * should try reducing the number of starting URLs, increasing the QPS rate,
@@ -144,6 +173,8 @@ public enum Code
      */
     TOO_MANY_FUZZ_TASKS(3),
     /**
+     *
+     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -155,6 +186,8 @@ public enum Code ; /** + * + * *
      * Default value is never used.
      * 
@@ -163,6 +196,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Indicates that a scan discovered an unexpectedly low number of URLs. This
      * is sometimes caused by complex navigation features or by using a single
@@ -173,6 +208,8 @@ public enum Code
      */
     public static final int INSUFFICIENT_CRAWL_RESULTS_VALUE = 1;
     /**
+     *
+     *
      * 
      * Indicates that a scan discovered too many URLs to test, or excessive
      * redundant URLs.
@@ -182,6 +219,8 @@ public enum Code
      */
     public static final int TOO_MANY_CRAWL_RESULTS_VALUE = 2;
     /**
+     *
+     *
      * 
      * Indicates that too many tests have been generated for the scan. Customer
      * should try reducing the number of starting URLs, increasing the QPS rate,
@@ -192,6 +231,8 @@ public enum Code
      */
     public static final int TOO_MANY_FUZZ_TASKS_VALUE = 3;
     /**
+     *
+     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -200,7 +241,6 @@ public enum Code */ public static final int BLOCKED_BY_IAP_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -225,51 +265,55 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: return CODE_UNSPECIFIED; - case 1: return INSUFFICIENT_CRAWL_RESULTS; - case 2: return TOO_MANY_CRAWL_RESULTS; - case 3: return TOO_MANY_FUZZ_TASKS; - case 4: return BLOCKED_BY_IAP; - default: return null; + case 0: + return CODE_UNSPECIFIED; + case 1: + return INSUFFICIENT_CRAWL_RESULTS; + case 2: + return TOO_MANY_CRAWL_RESULTS; + case 3: + return TOO_MANY_FUZZ_TASKS; + case 4: + return BLOCKED_BY_IAP; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Code> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDescriptor() + .getEnumTypes() + .get(0); } private static final Code[] VALUES = values(); - public static Code valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -289,31 +333,43 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** + * + * *
    * Output only. Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * Output only. Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; + * * @return The code. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code getCode() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.valueOf(code_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.valueOf(code_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,9 +381,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.CODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, code_); } unknownFields.writeTo(output); @@ -339,9 +396,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ != com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + if (code_ + != com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -351,12 +409,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace other = (com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) obj; + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace other = + (com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) obj; if (code_ != other.code_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -378,96 +437,104 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Output only.
    * Defines a warning trace message for ScanRun. Warning traces provide customers
@@ -476,21 +543,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.ScanRunWarningTrace}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ScanRunWarningTrace)
       com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto
+          .internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto
+          .internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.class, com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder.class);
+              com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.class,
+              com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.newBuilder()
@@ -498,16 +567,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -517,9 +585,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.ScanRunWarningTraceProto
+          .internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor;
     }
 
     @java.lang.Override
@@ -538,7 +606,8 @@ public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace buildPartial() {
-      com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace result = new com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace(this);
+      com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace result =
+          new com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace(this);
       result.code_ = code_;
       onBuilt();
       return result;
@@ -548,38 +617,39 @@ public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -587,7 +657,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace other) {
-      if (other == com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance()) return this;
+      if (other == com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.getDefaultInstance())
+        return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -610,7 +681,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -622,51 +694,67 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
+     *
+     *
      * 
      * Output only. Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * Output only. Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; + * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.valueOf(code_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.valueOf(code_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; + * * @param value The code to set. * @return This builder for chaining. */ @@ -674,28 +762,31 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1.ScanRunWarningTrac if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -705,12 +796,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ScanRunWarningTrace) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ScanRunWarningTrace) private static final com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace(); } @@ -719,16 +810,16 @@ public static com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRunWarningTrace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunWarningTrace(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRunWarningTrace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRunWarningTrace(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -743,6 +834,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java index bfd08704..1586e0e0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto package com.google.cloud.websecurityscanner.v1; -public interface ScanRunWarningTraceOrBuilder extends +public interface ScanRunWarningTraceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ScanRunWarningTrace) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
    * Output only. Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; + * * @return The code. */ com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code getCode(); diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java new file mode 100644 index 00000000..76b7bee4 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java @@ -0,0 +1,74 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class ScanRunWarningTraceProto { + private ScanRunWarningTraceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n?google/cloud/websecurityscanner/v1/sca" + + "n_run_warning_trace.proto\022\"google.cloud." + + "websecurityscanner.v1\"\351\001\n\023ScanRunWarning" + + "Trace\022J\n\004code\030\001 \001(\0162<.google.cloud.webse" + + "curityscanner.v1.ScanRunWarningTrace.Cod" + + "e\"\205\001\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\036\n\032INSU" + + "FFICIENT_CRAWL_RESULTS\020\001\022\032\n\026TOO_MANY_CRA" + + "WL_RESULTS\020\002\022\027\n\023TOO_MANY_FUZZ_TASKS\020\003\022\022\n" + + "\016BLOCKED_BY_IAP\020\004B\214\002\n&com.google.cloud.w" + + "ebsecurityscanner.v1B\030ScanRunWarningTrac" + + "eProtoP\001ZTgoogle.golang.org/genproto/goo" + + "gleapis/cloud/websecurityscanner/v1;webs" + + "ecurityscanner\252\002\"Google.Cloud.WebSecurit" + + "yScanner.V1\312\002\"Google\\Cloud\\WebSecuritySc" + + "anner\\V1\352\002%Google::Cloud::WebSecuritySca" + + "nner::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_ScanRunWarningTrace_descriptor, + new java.lang.String[] { + "Code", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java index 5242da6f..12f6290b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Request for the `StartScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.StartScanRunRequest} */ -public final class StartScanRunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartScanRunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.StartScanRunRequest) StartScanRunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartScanRunRequest.newBuilder() to construct. private StartScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StartScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private StartScanRunRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,40 @@ private StartScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, + com.google.cloud.websecurityscanner.v1.StartScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -110,30 +133,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +201,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.StartScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.StartScanRunRequest other = (com.google.cloud.websecurityscanner.v1.StartScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1.StartScanRunRequest other = + (com.google.cloud.websecurityscanner.v1.StartScanRunRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +229,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.StartScanRunRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.StartScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `StartScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.StartScanRunRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.StartScanRunRequest) com.google.cloud.websecurityscanner.v1.StartScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.StartScanRunRequest.class, + com.google.cloud.websecurityscanner.v1.StartScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.StartScanRunRequest.newBuilder() @@ -324,16 +357,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; } @java.lang.Override @@ -364,7 +396,8 @@ public com.google.cloud.websecurityscanner.v1.StartScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.StartScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.StartScanRunRequest result = new com.google.cloud.websecurityscanner.v1.StartScanRunRequest(this); + com.google.cloud.websecurityscanner.v1.StartScanRunRequest result = + new com.google.cloud.websecurityscanner.v1.StartScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +407,39 @@ public com.google.cloud.websecurityscanner.v1.StartScanRunRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.StartScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.StartScanRunRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.StartScanRunRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +447,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.StartScanRunRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.StartScanRunRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1.StartScanRunRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +472,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.StartScanRunRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.StartScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +485,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +508,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +531,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +605,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.StartScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.StartScanRunRequest) private static final com.google.cloud.websecurityscanner.v1.StartScanRunRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.StartScanRunRequest(); } @@ -573,16 +619,16 @@ public static com.google.cloud.websecurityscanner.v1.StartScanRunRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +643,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.StartScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java index 78720ba5..4529ac02 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface StartScanRunRequestOrBuilder extends +public interface StartScanRunRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.StartScanRunRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java index d214a4f4..90dc6218 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Request for the `StopScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.StopScanRunRequest} */ -public final class StopScanRunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopScanRunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.StopScanRunRequest) StopScanRunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopScanRunRequest.newBuilder() to construct. private StopScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StopScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private StopScanRunRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private StopScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, + com.google.cloud.websecurityscanner.v1.StopScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
@@ -103,6 +125,7 @@ private StopScanRunRequest(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -111,14 +134,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
@@ -126,16 +150,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.StopScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.StopScanRunRequest other = (com.google.cloud.websecurityscanner.v1.StopScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1.StopScanRunRequest other = + (com.google.cloud.websecurityscanner.v1.StopScanRunRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.StopScanRunRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.StopScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `StopScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.StopScanRunRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.StopScanRunRequest) com.google.cloud.websecurityscanner.v1.StopScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.StopScanRunRequest.class, + com.google.cloud.websecurityscanner.v1.StopScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.StopScanRunRequest.newBuilder() @@ -326,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; } @java.lang.Override @@ -366,7 +398,8 @@ public com.google.cloud.websecurityscanner.v1.StopScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.StopScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.StopScanRunRequest result = new com.google.cloud.websecurityscanner.v1.StopScanRunRequest(this); + com.google.cloud.websecurityscanner.v1.StopScanRunRequest result = + new com.google.cloud.websecurityscanner.v1.StopScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +409,39 @@ public com.google.cloud.websecurityscanner.v1.StopScanRunRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.StopScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.StopScanRunRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.StopScanRunRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.StopScanRunRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.StopScanRunRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1.StopScanRunRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.StopScanRunRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.StopScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,6 +487,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -458,13 +496,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,6 +511,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -480,15 +520,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,6 +535,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -503,20 +544,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -524,15 +567,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -540,23 +586,23 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.StopScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.StopScanRunRequest) private static final com.google.cloud.websecurityscanner.v1.StopScanRunRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.StopScanRunRequest(); } @@ -580,16 +626,16 @@ public static com.google.cloud.websecurityscanner.v1.StopScanRunRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.StopScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java index f48ebe77..8201e67e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; -public interface StopScanRunRequestOrBuilder extends +public interface StopScanRunRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.StopScanRunRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
@@ -15,10 +33,13 @@ public interface StopScanRunRequestOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
@@ -26,8 +47,8 @@ public interface StopScanRunRequestOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java index 14fd5588..0564c177 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Request for the `UpdateScanConfigRequest` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.UpdateScanConfigRequest} */ -public final class UpdateScanConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) UpdateScanConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateScanConfigRequest.newBuilder() to construct. private UpdateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateScanConfigRequest() { - } + + private UpdateScanConfigRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,45 @@ private UpdateScanConfigRequest( case 0: done = true; break; - case 18: { - com.google.cloud.websecurityscanner.v1.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } + case 18: + { + com.google.cloud.websecurityscanner.v1.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); + } + scanConfig_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +114,33 @@ private UpdateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.Builder.class); } public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1.ScanConfig scanConfig_; /** + * + * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -122,6 +148,7 @@ private UpdateScanConfigRequest(
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; + * * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -129,6 +156,8 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** + * + * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -136,13 +165,18 @@ public boolean hasScanConfig() {
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; + * * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig() { - return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() + : scanConfig_; } /** + * + * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -159,6 +193,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
   public static final int UPDATE_MASK_FIELD_NUMBER = 3;
   private com.google.protobuf.FieldMask updateMask_;
   /**
+   *
+   *
    * 
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
@@ -166,6 +202,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -173,6 +210,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
@@ -180,6 +219,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ @java.lang.Override @@ -187,6 +227,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
@@ -201,6 +243,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -212,8 +255,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (scanConfig_ != null) {
       output.writeMessage(2, getScanConfig());
     }
@@ -230,12 +272,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (scanConfig_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getScanConfig());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -245,22 +285,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) obj;
+    com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest other =
+        (com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) obj;
 
     if (hasScanConfig() != other.hasScanConfig()) return false;
     if (hasScanConfig()) {
-      if (!getScanConfig()
-          .equals(other.getScanConfig())) return false;
+      if (!getScanConfig().equals(other.getScanConfig())) return false;
     }
     if (hasUpdateMask() != other.hasUpdateMask()) return false;
     if (hasUpdateMask()) {
-      if (!getUpdateMask()
-          .equals(other.getUpdateMask())) return false;
+      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -287,117 +326,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request for the `UpdateScanConfigRequest` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.UpdateScanConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.newBuilder() @@ -405,16 +454,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -434,13 +482,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.getDefaultInstance(); } @@ -455,7 +504,8 @@ public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest(this); if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; } else { @@ -474,38 +524,39 @@ public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -513,7 +564,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest other) { - if (other == com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest.getDefaultInstance()) + return this; if (other.hasScanConfig()) { mergeScanConfig(other.getScanConfig()); } @@ -539,7 +592,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -551,8 +606,13 @@ public Builder mergeFrom( private com.google.cloud.websecurityscanner.v1.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1.ScanConfig, + com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> + scanConfigBuilder_; /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -560,12 +620,15 @@ public Builder mergeFrom(
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; + * * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -573,16 +636,21 @@ public boolean hasScanConfig() {
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; + * * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() + : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -605,6 +673,8 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig v
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -625,6 +695,8 @@ public Builder setScanConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -637,7 +709,9 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig
       if (scanConfigBuilder_ == null) {
         if (scanConfig_ != null) {
           scanConfig_ =
-            com.google.cloud.websecurityscanner.v1.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial();
+              com.google.cloud.websecurityscanner.v1.ScanConfig.newBuilder(scanConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           scanConfig_ = value;
         }
@@ -649,6 +723,8 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -669,6 +745,8 @@ public Builder clearScanConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -678,11 +756,13 @@ public Builder clearScanConfig() {
      * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2;
      */
     public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigBuilder() {
-      
+
       onChanged();
       return getScanConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -695,11 +775,14 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
       if (scanConfigBuilder_ != null) {
         return scanConfigBuilder_.getMessageOrBuilder();
       } else {
-        return scanConfig_ == null ?
-            com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_;
+        return scanConfig_ == null
+            ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()
+            : scanConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
@@ -709,14 +792,17 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
      * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder> 
+            com.google.cloud.websecurityscanner.v1.ScanConfig,
+            com.google.cloud.websecurityscanner.v1.ScanConfig.Builder,
+            com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>
         getScanConfigFieldBuilder() {
       if (scanConfigBuilder_ == null) {
-        scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1.ScanConfig, com.google.cloud.websecurityscanner.v1.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>(
-                getScanConfig(),
-                getParentForChildren(),
-                isClean());
+        scanConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.websecurityscanner.v1.ScanConfig,
+                com.google.cloud.websecurityscanner.v1.ScanConfig.Builder,
+                com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder>(
+                getScanConfig(), getParentForChildren(), isClean());
         scanConfig_ = null;
       }
       return scanConfigBuilder_;
@@ -724,8 +810,13 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
 
     private com.google.protobuf.FieldMask updateMask_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
+        updateMaskBuilder_;
     /**
+     *
+     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -733,12 +824,15 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigO
      * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -746,16 +840,21 @@ public boolean hasUpdateMask() {
      * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -778,6 +877,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -786,8 +887,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 3;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
         onChanged();
@@ -798,6 +898,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -810,7 +912,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
         if (updateMask_ != null) {
           updateMask_ =
-            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
         } else {
           updateMask_ = value;
         }
@@ -822,6 +924,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -842,6 +946,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -851,11 +957,13 @@ public Builder clearUpdateMask() {
      * .google.protobuf.FieldMask update_mask = 3;
      */
     public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
-      
+
       onChanged();
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -868,11 +976,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       if (updateMaskBuilder_ != null) {
         return updateMaskBuilder_.getMessageOrBuilder();
       } else {
-        return updateMask_ == null ?
-            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+        return updateMask_ == null
+            ? com.google.protobuf.FieldMask.getDefaultInstance()
+            : updateMask_;
       }
     }
     /**
+     *
+     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -882,21 +993,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
+            com.google.protobuf.FieldMask,
+            com.google.protobuf.FieldMask.Builder,
+            com.google.protobuf.FieldMaskOrBuilder>
         getUpdateMaskFieldBuilder() {
       if (updateMaskBuilder_ == null) {
-        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
-                getUpdateMask(),
-                getParentForChildren(),
-                isClean());
+        updateMaskBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.FieldMask,
+                com.google.protobuf.FieldMask.Builder,
+                com.google.protobuf.FieldMaskOrBuilder>(
+                getUpdateMask(), getParentForChildren(), isClean());
         updateMask_ = null;
       }
       return updateMaskBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -906,30 +1020,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.UpdateScanConfigRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.UpdateScanConfigRequest)
-  private static final com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest();
   }
 
-  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest getDefaultInstance() {
+  public static com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateScanConfigRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new UpdateScanConfigRequest(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateScanConfigRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new UpdateScanConfigRequest(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -941,9 +1057,8 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest getDefaultInstanceForType() {
+  public com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
similarity index 78%
rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
index ca4f2db0..84d3918a 100644
--- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
+++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/websecurityscanner/v1/web_security_scanner.proto
 
 package com.google.cloud.websecurityscanner.v1;
 
-public interface UpdateScanConfigRequestOrBuilder extends
+public interface UpdateScanConfigRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.UpdateScanConfigRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -15,10 +33,13 @@ public interface UpdateScanConfigRequestOrBuilder extends
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; + * * @return Whether the scanConfig field is set. */ boolean hasScanConfig(); /** + * + * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -26,10 +47,13 @@ public interface UpdateScanConfigRequestOrBuilder extends
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; + * * @return The scanConfig. */ com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig(); /** + * + * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
@@ -41,6 +65,8 @@ public interface UpdateScanConfigRequestOrBuilder extends
   com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
@@ -48,10 +74,13 @@ public interface UpdateScanConfigRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
@@ -59,10 +88,13 @@ public interface UpdateScanConfigRequestOrBuilder extends
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
index 09269afb..39b38306 100644
--- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
+++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/websecurityscanner/v1/finding_addon.proto
 
 package com.google.cloud.websecurityscanner.v1;
 
 /**
+ *
+ *
  * 
  * Information regarding any resource causing the vulnerability such
  * as JavaScript sources, image, audio files, etc.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1.ViolatingResource}
  */
-public final class ViolatingResource extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ViolatingResource extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.ViolatingResource)
     ViolatingResourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ViolatingResource.newBuilder() to construct.
   private ViolatingResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ViolatingResource() {
     contentType_ = "";
     resourceUrl_ = "";
@@ -27,16 +45,15 @@ private ViolatingResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ViolatingResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ViolatingResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +72,27 @@ private ViolatingResource(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            contentType_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              contentType_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            resourceUrl_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              resourceUrl_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,34 +100,39 @@ private ViolatingResource(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1.FindingAddonProto
+        .internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1.FindingAddonProto
+        .internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1.ViolatingResource.class, com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder.class);
+            com.google.cloud.websecurityscanner.v1.ViolatingResource.class,
+            com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder.class);
   }
 
   public static final int CONTENT_TYPE_FIELD_NUMBER = 1;
   private volatile java.lang.Object contentType_;
   /**
+   *
+   *
    * 
    * The MIME type of this resource.
    * 
* * string content_type = 1; + * * @return The contentType. */ @java.lang.Override @@ -117,29 +141,29 @@ public java.lang.String getContentType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; } } /** + * + * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; + * * @return The bytes for contentType. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentTypeBytes() { + public com.google.protobuf.ByteString getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); contentType_ = b; return b; } else { @@ -150,11 +174,14 @@ public java.lang.String getContentType() { public static final int RESOURCE_URL_FIELD_NUMBER = 2; private volatile java.lang.Object resourceUrl_; /** + * + * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; + * * @return The resourceUrl. */ @java.lang.Override @@ -163,29 +190,29 @@ public java.lang.String getResourceUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** + * + * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; + * * @return The bytes for resourceUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceUrlBytes() { + public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -194,6 +221,7 @@ public java.lang.String getResourceUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +233,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contentType_); } @@ -236,17 +263,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.ViolatingResource)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.ViolatingResource other = (com.google.cloud.websecurityscanner.v1.ViolatingResource) obj; + com.google.cloud.websecurityscanner.v1.ViolatingResource other = + (com.google.cloud.websecurityscanner.v1.ViolatingResource) obj; - if (!getContentType() - .equals(other.getContentType())) return false; - if (!getResourceUrl() - .equals(other.getResourceUrl())) return false; + if (!getContentType().equals(other.getContentType())) return false; + if (!getResourceUrl().equals(other.getResourceUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -268,96 +294,104 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.ViolatingResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.ViolatingResource prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.ViolatingResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information regarding any resource causing the vulnerability such
    * as JavaScript sources, image, audio files, etc.
@@ -365,21 +399,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1.ViolatingResource}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.ViolatingResource)
       com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1.FindingAddonProto
+          .internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1.FindingAddonProto
+          .internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1.ViolatingResource.class, com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder.class);
+              com.google.cloud.websecurityscanner.v1.ViolatingResource.class,
+              com.google.cloud.websecurityscanner.v1.ViolatingResource.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1.ViolatingResource.newBuilder()
@@ -387,16 +423,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -408,9 +443,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1.FindingAddonProto
+          .internal_static_google_cloud_websecurityscanner_v1_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
@@ -429,7 +464,8 @@ public com.google.cloud.websecurityscanner.v1.ViolatingResource build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1.ViolatingResource buildPartial() {
-      com.google.cloud.websecurityscanner.v1.ViolatingResource result = new com.google.cloud.websecurityscanner.v1.ViolatingResource(this);
+      com.google.cloud.websecurityscanner.v1.ViolatingResource result =
+          new com.google.cloud.websecurityscanner.v1.ViolatingResource(this);
       result.contentType_ = contentType_;
       result.resourceUrl_ = resourceUrl_;
       onBuilt();
@@ -440,38 +476,39 @@ public com.google.cloud.websecurityscanner.v1.ViolatingResource buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1.ViolatingResource) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1.ViolatingResource)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1.ViolatingResource) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -479,7 +516,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ViolatingResource other) {
-      if (other == com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance()) return this;
+      if (other == com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance())
+        return this;
       if (!other.getContentType().isEmpty()) {
         contentType_ = other.contentType_;
         onChanged();
@@ -507,7 +545,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1.ViolatingResource) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1.ViolatingResource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -519,18 +558,20 @@ public Builder mergeFrom(
 
     private java.lang.Object contentType_ = "";
     /**
+     *
+     *
      * 
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @return The contentType. */ public java.lang.String getContentType() { java.lang.Object ref = contentType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; @@ -539,20 +580,21 @@ public java.lang.String getContentType() { } } /** + * + * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @return The bytes for contentType. */ - public com.google.protobuf.ByteString - getContentTypeBytes() { + public com.google.protobuf.ByteString getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); contentType_ = b; return b; } else { @@ -560,54 +602,61 @@ public java.lang.String getContentType() { } } /** + * + * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @param value The contentType to set. * @return This builder for chaining. */ - public Builder setContentType( - java.lang.String value) { + public Builder setContentType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contentType_ = value; onChanged(); return this; } /** + * + * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = getDefaultInstance().getContentType(); onChanged(); return this; } /** + * + * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @param value The bytes for contentType to set. * @return This builder for chaining. */ - public Builder setContentTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentType_ = value; onChanged(); return this; @@ -615,18 +664,20 @@ public Builder setContentTypeBytes( private java.lang.Object resourceUrl_ = ""; /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; @@ -635,20 +686,21 @@ public java.lang.String getResourceUrl() { } } /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @return The bytes for resourceUrl. */ - public com.google.protobuf.ByteString - getResourceUrlBytes() { + public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -656,61 +708,68 @@ public java.lang.String getResourceUrl() { } } /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @param value The resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrl( - java.lang.String value) { + public Builder setResourceUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUrl_ = value; onChanged(); return this; } /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @return This builder for chaining. */ public Builder clearResourceUrl() { - + resourceUrl_ = getDefaultInstance().getResourceUrl(); onChanged(); return this; } /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUrl_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -720,12 +779,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.ViolatingResource) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.ViolatingResource) private static final com.google.cloud.websecurityscanner.v1.ViolatingResource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.ViolatingResource(); } @@ -734,16 +793,16 @@ public static com.google.cloud.websecurityscanner.v1.ViolatingResource getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ViolatingResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ViolatingResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ViolatingResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ViolatingResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -758,6 +817,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ViolatingResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java index e4000fa5..ba3decef 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface ViolatingResourceOrBuilder extends +public interface ViolatingResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.ViolatingResource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; + * * @return The contentType. */ java.lang.String getContentType(); /** + * + * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; + * * @return The bytes for contentType. */ - com.google.protobuf.ByteString - getContentTypeBytes(); + com.google.protobuf.ByteString getContentTypeBytes(); /** + * + * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; + * * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** + * + * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; + * * @return The bytes for resourceUrl. */ - com.google.protobuf.ByteString - getResourceUrlBytes(); + com.google.protobuf.ByteString getResourceUrlBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java index 5742f73f..f1b41ec6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Information about vulnerable or missing HTTP Headers.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableHeaders} */ -public final class VulnerableHeaders extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VulnerableHeaders extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.VulnerableHeaders) VulnerableHeadersOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VulnerableHeaders.newBuilder() to construct. private VulnerableHeaders(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VulnerableHeaders() { headers_ = java.util.Collections.emptyList(); missingHeaders_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private VulnerableHeaders() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VulnerableHeaders(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VulnerableHeaders( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,41 @@ private VulnerableHeaders( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + headers_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header>(); + mutable_bitField0_ |= 0x00000001; + } + headers_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), + extensionRegistry)); + break; } - headers_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + missingHeaders_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header>(); + mutable_bitField0_ |= 0x00000002; + } + missingHeaders_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), + extensionRegistry)); + break; } - missingHeaders_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,8 +114,7 @@ private VulnerableHeaders( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -100,79 +126,96 @@ private VulnerableHeaders( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.class, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder.class); } - public interface HeaderOrBuilder extends + public interface HeaderOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Header name.
      * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Header name.
      * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Header value.
      * 
* * string value = 2; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * Header value.
      * 
* * string value = 2; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); } /** + * + * *
    * Describes a HTTP Header.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableHeaders.Header} */ - public static final class Header extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Header extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) HeaderOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Header.newBuilder() to construct. private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Header() { name_ = ""; value_ = ""; @@ -180,16 +223,15 @@ private Header() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Header(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Header( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -208,25 +250,27 @@ private Header( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -234,34 +278,39 @@ private Header( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.class, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
      * Header name.
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -270,29 +319,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Header name.
      * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -303,11 +352,14 @@ public java.lang.String getName() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** + * + * *
      * Header value.
      * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -316,29 +368,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
      * Header value.
      * 
* * string value = 2; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -347,6 +399,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -358,8 +411,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -389,17 +441,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header other = (com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) obj; + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header other = + (com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getValue() - .equals(other.getValue())) return false; + if (!getName().equals(other.getName())) return false; + if (!getValue().equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -421,87 +472,95 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -511,44 +570,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Describes a HTTP Header.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableHeaders.Header} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.class, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -560,13 +624,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_Header_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance(); } @@ -581,7 +646,8 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header buildPartial() { - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header result = new com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header(this); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header result = + new com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header(this); result.name_ = name_; result.value_ = value_; onBuilt(); @@ -592,46 +658,52 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header other) { - if (other == com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header other) { + if (other + == com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -659,7 +731,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -671,18 +745,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -691,20 +767,21 @@ public java.lang.String getName() { } } /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -712,54 +789,61 @@ public java.lang.String getName() { } } /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -767,18 +851,20 @@ public Builder setNameBytes( private java.lang.Object value_ = ""; /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -787,20 +873,21 @@ public java.lang.String getValue() { } } /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -808,58 +895,66 @@ public java.lang.String getValue() { } } /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -872,30 +967,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.VulnerableHeaders.Header) - private static final com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header(); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Header parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser
PARSER = + new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Header parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Header(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -907,15 +1004,17 @@ public com.google.protobuf.Parser
getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int HEADERS_FIELD_NUMBER = 1; private java.util.List headers_; /** + * + * *
    * List of vulnerable headers.
    * 
@@ -923,10 +1022,13 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getDefaul * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public java.util.List getHeadersList() { + public java.util.List + getHeadersList() { return headers_; } /** + * + * *
    * List of vulnerable headers.
    * 
@@ -934,11 +1036,14 @@ public java.util.Listrepeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> getHeadersOrBuilderList() { return headers_; } /** + * + * *
    * List of vulnerable headers.
    * 
@@ -950,6 +1055,8 @@ public int getHeadersCount() { return headers_.size(); } /** + * + * *
    * List of vulnerable headers.
    * 
@@ -961,6 +1068,8 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getHeader return headers_.get(index); } /** + * + * *
    * List of vulnerable headers.
    * 
@@ -968,72 +1077,97 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getHeader * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder + getHeadersOrBuilder(int index) { return headers_.get(index); } public static final int MISSING_HEADERS_FIELD_NUMBER = 2; - private java.util.List missingHeaders_; + private java.util.List + missingHeaders_; /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ @java.lang.Override - public java.util.List getMissingHeadersList() { + public java.util.List + getMissingHeadersList() { return missingHeaders_; } /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> getMissingHeadersOrBuilderList() { return missingHeaders_; } /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ @java.lang.Override public int getMissingHeadersCount() { return missingHeaders_.size(); } /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissingHeaders(int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissingHeaders( + int index) { return missingHeaders_.get(index); } /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder + getMissingHeadersOrBuilder(int index) { return missingHeaders_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1045,8 +1179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < headers_.size(); i++) { output.writeMessage(1, headers_.get(i)); } @@ -1063,12 +1196,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < headers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, headers_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, headers_.get(i)); } for (int i = 0; i < missingHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, missingHeaders_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, missingHeaders_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1078,17 +1209,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.VulnerableHeaders)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.VulnerableHeaders other = (com.google.cloud.websecurityscanner.v1.VulnerableHeaders) obj; + com.google.cloud.websecurityscanner.v1.VulnerableHeaders other = + (com.google.cloud.websecurityscanner.v1.VulnerableHeaders) obj; - if (!getHeadersList() - .equals(other.getHeadersList())) return false; - if (!getMissingHeadersList() - .equals(other.getMissingHeadersList())) return false; + if (!getHeadersList().equals(other.getHeadersList())) return false; + if (!getMissingHeadersList().equals(other.getMissingHeadersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1114,117 +1244,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.VulnerableHeaders prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information about vulnerable or missing HTTP Headers.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableHeaders} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.VulnerableHeaders) com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.class, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.VulnerableHeaders.newBuilder() @@ -1232,18 +1372,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getHeadersFieldBuilder(); getMissingHeadersFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1263,9 +1403,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_VulnerableHeaders_descriptor; } @java.lang.Override @@ -1284,7 +1424,8 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.VulnerableHeaders buildPartial() { - com.google.cloud.websecurityscanner.v1.VulnerableHeaders result = new com.google.cloud.websecurityscanner.v1.VulnerableHeaders(this); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders result = + new com.google.cloud.websecurityscanner.v1.VulnerableHeaders(this); int from_bitField0_ = bitField0_; if (headersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1312,38 +1453,39 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.VulnerableHeaders) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableHeaders)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableHeaders) other); } else { super.mergeFrom(other); return this; @@ -1351,7 +1493,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.VulnerableHeaders other) { - if (other == com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance()) + return this; if (headersBuilder_ == null) { if (!other.headers_.isEmpty()) { if (headers_.isEmpty()) { @@ -1370,9 +1513,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.VulnerableHeader headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000001); - headersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHeadersFieldBuilder() : null; + headersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHeadersFieldBuilder() + : null; } else { headersBuilder_.addAllMessages(other.headers_); } @@ -1396,9 +1540,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.VulnerableHeader missingHeadersBuilder_ = null; missingHeaders_ = other.missingHeaders_; bitField0_ = (bitField0_ & ~0x00000002); - missingHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMissingHeadersFieldBuilder() : null; + missingHeadersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMissingHeadersFieldBuilder() + : null; } else { missingHeadersBuilder_.addAllMessages(other.missingHeaders_); } @@ -1423,7 +1568,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.VulnerableHeaders) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.VulnerableHeaders) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1432,28 +1578,39 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List headers_ = - java.util.Collections.emptyList(); + private java.util.List + headers_ = java.util.Collections.emptyList(); + private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - headers_ = new java.util.ArrayList(headers_); + headers_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header>(headers_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> headersBuilder_; + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> + headersBuilder_; /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ - public java.util.List getHeadersList() { + public java.util.List + getHeadersList() { if (headersBuilder_ == null) { return java.util.Collections.unmodifiableList(headers_); } else { @@ -1461,11 +1618,14 @@ public java.util.List * List of vulnerable headers. *
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ public int getHeadersCount() { if (headersBuilder_ == null) { @@ -1475,11 +1635,14 @@ public int getHeadersCount() { } } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getHeaders(int index) { if (headersBuilder_ == null) { @@ -1489,11 +1652,14 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getHeader } } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ public Builder setHeaders( int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { @@ -1510,14 +1676,18 @@ public Builder setHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ public Builder setHeaders( - int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.set(index, builderForValue.build()); @@ -1528,13 +1698,17 @@ public Builder setHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ - public Builder addHeaders(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { + public Builder addHeaders( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1548,11 +1722,14 @@ public Builder addHeaders(com.google.cloud.websecurityscanner.v1.VulnerableHeade return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ public Builder addHeaders( int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { @@ -1569,11 +1746,14 @@ public Builder addHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ public Builder addHeaders( com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { @@ -1587,14 +1767,18 @@ public Builder addHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ public Builder addHeaders( - int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(index, builderForValue.build()); @@ -1605,18 +1789,22 @@ public Builder addHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ public Builder addAllHeaders( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header> + values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, headers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); @@ -1624,11 +1812,14 @@ public Builder addAllHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ public Builder clearHeaders() { if (headersBuilder_ == null) { @@ -1641,11 +1832,14 @@ public Builder clearHeaders() { return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ public Builder removeHeaders(int index) { if (headersBuilder_ == null) { @@ -1658,39 +1852,50 @@ public Builder removeHeaders(int index) { return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder getHeadersBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder + getHeadersBuilder(int index) { return getHeadersFieldBuilder().getBuilder(index); } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder + getHeadersOrBuilder(int index) { if (headersBuilder_ == null) { - return headers_.get(index); } else { + return headers_.get(index); + } else { return headersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ - public java.util.List - getHeadersOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> + getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { @@ -1698,74 +1903,101 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder } } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder addHeadersBuilder() { - return getHeadersFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder + addHeadersBuilder() { + return getHeadersFieldBuilder() + .addBuilder( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder addHeadersBuilder( - int index) { - return getHeadersFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder + addHeadersBuilder(int index) { + return getHeadersFieldBuilder() + .addBuilder( + index, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; + * */ - public java.util.List - getHeadersBuilderList() { + public java.util.List + getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { - headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder>( - headers_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + headersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder>( + headers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); headers_ = null; } return headersBuilder_; } - private java.util.List missingHeaders_ = - java.util.Collections.emptyList(); + private java.util.List + missingHeaders_ = java.util.Collections.emptyList(); + private void ensureMissingHeadersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = new java.util.ArrayList(missingHeaders_); + missingHeaders_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header>(missingHeaders_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> missingHeadersBuilder_; + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> + missingHeadersBuilder_; /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ - public java.util.List getMissingHeadersList() { + public java.util.List + getMissingHeadersList() { if (missingHeadersBuilder_ == null) { return java.util.Collections.unmodifiableList(missingHeaders_); } else { @@ -1773,11 +2005,15 @@ public java.util.List * List of missing headers. *
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ public int getMissingHeadersCount() { if (missingHeadersBuilder_ == null) { @@ -1787,13 +2023,18 @@ public int getMissingHeadersCount() { } } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissingHeaders(int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissingHeaders( + int index) { if (missingHeadersBuilder_ == null) { return missingHeaders_.get(index); } else { @@ -1801,11 +2042,15 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissin } } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder setMissingHeaders( int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { @@ -1822,14 +2067,19 @@ public Builder setMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder setMissingHeaders( - int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.set(index, builderForValue.build()); @@ -1840,13 +2090,18 @@ public Builder setMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ - public Builder addMissingHeaders(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { + public Builder addMissingHeaders( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { if (missingHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1860,11 +2115,15 @@ public Builder addMissingHeaders(com.google.cloud.websecurityscanner.v1.Vulnerab return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder addMissingHeaders( int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header value) { @@ -1881,11 +2140,15 @@ public Builder addMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder addMissingHeaders( com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { @@ -1899,14 +2162,19 @@ public Builder addMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder addMissingHeaders( - int index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.add(index, builderForValue.build()); @@ -1917,18 +2185,23 @@ public Builder addMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder addAllMissingHeaders( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header> + values) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, missingHeaders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingHeaders_); onChanged(); } else { missingHeadersBuilder_.addAllMessages(values); @@ -1936,11 +2209,15 @@ public Builder addAllMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder clearMissingHeaders() { if (missingHeadersBuilder_ == null) { @@ -1953,11 +2230,15 @@ public Builder clearMissingHeaders() { return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder removeMissingHeaders(int index) { if (missingHeadersBuilder_ == null) { @@ -1970,39 +2251,53 @@ public Builder removeMissingHeaders(int index) { return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder getMissingHeadersBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder + getMissingHeadersBuilder(int index) { return getMissingHeadersFieldBuilder().getBuilder(index); } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder + getMissingHeadersOrBuilder(int index) { if (missingHeadersBuilder_ == null) { - return missingHeaders_.get(index); } else { + return missingHeaders_.get(index); + } else { return missingHeadersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ - public java.util.List - getMissingHeadersOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> + getMissingHeadersOrBuilderList() { if (missingHeadersBuilder_ != null) { return missingHeadersBuilder_.getMessageOrBuilderList(); } else { @@ -2010,45 +2305,67 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder } } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder addMissingHeadersBuilder() { - return getMissingHeadersFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder + addMissingHeadersBuilder() { + return getMissingHeadersFieldBuilder() + .addBuilder( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ - public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder addMissingHeadersBuilder( - int index) { - return getMissingHeadersFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder + addMissingHeadersBuilder(int index) { + return getMissingHeadersFieldBuilder() + .addBuilder( + index, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.getDefaultInstance()); } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ - public java.util.List - getMissingHeadersBuilderList() { + public java.util.List + getMissingHeadersBuilderList() { return getMissingHeadersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder> getMissingHeadersFieldBuilder() { if (missingHeadersBuilder_ == null) { - missingHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder>( + missingHeadersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder>( missingHeaders_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2057,9 +2374,9 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.Builder a } return missingHeadersBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2069,12 +2386,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.VulnerableHeaders) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.VulnerableHeaders) private static final com.google.cloud.websecurityscanner.v1.VulnerableHeaders DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.VulnerableHeaders(); } @@ -2083,16 +2400,16 @@ public static com.google.cloud.websecurityscanner.v1.VulnerableHeaders getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableHeaders parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableHeaders(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableHeaders parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableHeaders(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2107,6 +2424,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.VulnerableHeaders getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java index 0c7a2d04..742d0ca4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface VulnerableHeadersOrBuilder extends +public interface VulnerableHeadersOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.VulnerableHeaders) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of vulnerable headers.
    * 
* * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - java.util.List - getHeadersList(); + java.util.List getHeadersList(); /** + * + * *
    * List of vulnerable headers.
    * 
@@ -25,6 +44,8 @@ public interface VulnerableHeadersOrBuilder extends */ com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getHeaders(int index); /** + * + * *
    * List of vulnerable headers.
    * 
@@ -33,15 +54,19 @@ public interface VulnerableHeadersOrBuilder extends */ int getHeadersCount(); /** + * + * *
    * List of vulnerable headers.
    * 
* * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header headers = 1; */ - java.util.List + java.util.List getHeadersOrBuilderList(); /** + * + * *
    * List of vulnerable headers.
    * 
@@ -52,46 +77,66 @@ com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getHead int index); /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ - java.util.List + java.util.List getMissingHeadersList(); /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getMissingHeaders(int index); /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ int getMissingHeadersCount(); /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ - java.util.List + java.util.List getMissingHeadersOrBuilderList(); /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1.VulnerableHeaders.Header missing_headers = 2; + * */ - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( - int index); + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.HeaderOrBuilder + getMissingHeadersOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java index b1a93d91..86717048 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; /** + * + * *
  * Information about vulnerable request parameters.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableParameters} */ -public final class VulnerableParameters extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VulnerableParameters extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.VulnerableParameters) VulnerableParametersOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VulnerableParameters.newBuilder() to construct. private VulnerableParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VulnerableParameters() { parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VulnerableParameters(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VulnerableParameters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,23 @@ private VulnerableParameters( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameterNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + parameterNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + parameterNames_.add(s); + break; } - parameterNames_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +95,7 @@ private VulnerableParameters( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -87,50 +104,61 @@ private VulnerableParameters( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableParameters.class, + com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder.class); } public static final int PARAMETER_NAMES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList parameterNames_; /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList - getParameterNamesList() { + public com.google.protobuf.ProtocolStringList getParameterNamesList() { return parameterNames_; } /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -138,20 +166,23 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString - getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,8 +194,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < parameterNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameterNames_.getRaw(i)); } @@ -193,15 +223,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.VulnerableParameters)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.VulnerableParameters other = (com.google.cloud.websecurityscanner.v1.VulnerableParameters) obj; + com.google.cloud.websecurityscanner.v1.VulnerableParameters other = + (com.google.cloud.websecurityscanner.v1.VulnerableParameters) obj; - if (!getParameterNamesList() - .equals(other.getParameterNamesList())) return false; + if (!getParameterNamesList().equals(other.getParameterNamesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -223,117 +253,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.VulnerableParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.VulnerableParameters prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1.VulnerableParameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information about vulnerable request parameters.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.VulnerableParameters} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.VulnerableParameters) com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1.VulnerableParameters.class, + com.google.cloud.websecurityscanner.v1.VulnerableParameters.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.VulnerableParameters.newBuilder() @@ -341,16 +381,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -360,9 +399,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_VulnerableParameters_descriptor; } @java.lang.Override @@ -381,7 +420,8 @@ public com.google.cloud.websecurityscanner.v1.VulnerableParameters build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.VulnerableParameters buildPartial() { - com.google.cloud.websecurityscanner.v1.VulnerableParameters result = new com.google.cloud.websecurityscanner.v1.VulnerableParameters(this); + com.google.cloud.websecurityscanner.v1.VulnerableParameters result = + new com.google.cloud.websecurityscanner.v1.VulnerableParameters(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -396,38 +436,39 @@ public com.google.cloud.websecurityscanner.v1.VulnerableParameters buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.VulnerableParameters) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableParameters)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.VulnerableParameters) other); } else { super.mergeFrom(other); return this; @@ -435,7 +476,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.VulnerableParameters other) { - if (other == com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance()) + return this; if (!other.parameterNames_.isEmpty()) { if (parameterNames_.isEmpty()) { parameterNames_ = other.parameterNames_; @@ -465,7 +507,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1.VulnerableParameters) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1.VulnerableParameters) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -474,44 +517,55 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList parameterNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureParameterNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { parameterNames_ = new com.google.protobuf.LazyStringArrayList(parameterNames_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList - getParameterNamesList() { + public com.google.protobuf.ProtocolStringList getParameterNamesList() { return parameterNames_.getUnmodifiableView(); } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -519,80 +573,90 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString - getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param index The index to set the value at. * @param value The parameterNames to set. * @return This builder for chaining. */ - public Builder setParameterNames( - int index, java.lang.String value) { + public Builder setParameterNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.set(index, value); onChanged(); return this; } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param value The parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNames( - java.lang.String value) { + public Builder addParameterNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param values The parameterNames to add. * @return This builder for chaining. */ - public Builder addAllParameterNames( - java.lang.Iterable values) { + public Builder addAllParameterNames(java.lang.Iterable values) { ensureParameterNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, parameterNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameterNames_); onChanged(); return this; } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @return This builder for chaining. */ public Builder clearParameterNames() { @@ -602,28 +666,30 @@ public Builder clearParameterNames() { return this; } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param value The bytes of the parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNamesBytes( - com.google.protobuf.ByteString value) { + public Builder addParameterNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -633,12 +699,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.VulnerableParameters) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.VulnerableParameters) private static final com.google.cloud.websecurityscanner.v1.VulnerableParameters DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.VulnerableParameters(); } @@ -647,16 +713,16 @@ public static com.google.cloud.websecurityscanner.v1.VulnerableParameters getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableParameters(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableParameters(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -671,6 +737,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.VulnerableParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java index 101f456a..edcdf61b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java @@ -1,50 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface VulnerableParametersOrBuilder extends +public interface VulnerableParametersOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.VulnerableParameters) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @return A list containing the parameterNames. */ - java.util.List - getParameterNamesList(); + java.util.List getParameterNamesList(); /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @return The count of parameterNames. */ int getParameterNamesCount(); /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @param index The index of the element to return. * @return The parameterNames at the given index. */ java.lang.String getParameterNames(int index); /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - com.google.protobuf.ByteString - getParameterNamesBytes(int index); + com.google.protobuf.ByteString getParameterNamesBytes(int index); } diff --git a/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java new file mode 100644 index 00000000..0b550064 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java @@ -0,0 +1,408 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1; + +public final class WebSecurityScannerProto { + private WebSecurityScannerProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_CreateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_DeleteScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_GetScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_UpdateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListScanConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_StartScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_GetScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListScanRunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListScanRunsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_StopScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListCrawledUrlsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_GetFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_ListFindingTypeStatsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n=google/cloud/websecurityscanner/v1/web" + + "_security_scanner.proto\022\"google.cloud.we" + + "bsecurityscanner.v1\032\034google/api/annotati" + + "ons.proto\0324google/cloud/websecurityscann" + + "er/v1/crawled_url.proto\0320google/cloud/we" + + "bsecurityscanner/v1/finding.proto\032;googl" + + "e/cloud/websecurityscanner/v1/finding_ty" + + "pe_stats.proto\0324google/cloud/websecurity" + + "scanner/v1/scan_config.proto\0321google/clo" + + "ud/websecurityscanner/v1/scan_run.proto\032" + + "\033google/protobuf/empty.proto\032 google/pro" + + "tobuf/field_mask.proto\032\027google/api/clien" + + "t.proto\"n\n\027CreateScanConfigRequest\022\016\n\006pa" + + "rent\030\001 \001(\t\022C\n\013scan_config\030\002 \001(\0132..google" + + ".cloud.websecurityscanner.v1.ScanConfig\"" + + "\'\n\027DeleteScanConfigRequest\022\014\n\004name\030\001 \001(\t" + + "\"$\n\024GetScanConfigRequest\022\014\n\004name\030\001 \001(\t\"O" + + "\n\026ListScanConfigsRequest\022\016\n\006parent\030\001 \001(\t" + + "\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"" + + "\217\001\n\027UpdateScanConfigRequest\022C\n\013scan_conf" + + "ig\030\002 \001(\0132..google.cloud.websecurityscann" + + "er.v1.ScanConfig\022/\n\013update_mask\030\003 \001(\0132\032." + + "google.protobuf.FieldMask\"x\n\027ListScanCon" + + "figsResponse\022D\n\014scan_configs\030\001 \003(\0132..goo" + + "gle.cloud.websecurityscanner.v1.ScanConf" + + "ig\022\027\n\017next_page_token\030\002 \001(\t\"#\n\023StartScan" + + "RunRequest\022\014\n\004name\030\001 \001(\t\"!\n\021GetScanRunRe" + + "quest\022\014\n\004name\030\001 \001(\t\"L\n\023ListScanRunsReque" + + "st\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021" + + "\n\tpage_size\030\003 \001(\005\"o\n\024ListScanRunsRespons" + + "e\022>\n\tscan_runs\030\001 \003(\0132+.google.cloud.webs" + + "ecurityscanner.v1.ScanRun\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"\"\n\022StopScanRunRequest\022\014\n\004name" + + "\030\001 \001(\t\"O\n\026ListCrawledUrlsRequest\022\016\n\006pare" + + "nt\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_siz" + + "e\030\003 \001(\005\"x\n\027ListCrawledUrlsResponse\022D\n\014cr" + + "awled_urls\030\001 \003(\0132..google.cloud.websecur" + + "ityscanner.v1.CrawledUrl\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"!\n\021GetFindingRequest\022\014\n\004name\030\001" + + " \001(\t\"\\\n\023ListFindingsRequest\022\016\n\006parent\030\001 " + + "\001(\t\022\016\n\006filter\030\002 \001(\t\022\022\n\npage_token\030\003 \001(\t\022" + + "\021\n\tpage_size\030\004 \001(\005\"n\n\024ListFindingsRespon" + + "se\022=\n\010findings\030\001 \003(\0132+.google.cloud.webs" + + "ecurityscanner.v1.Finding\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"-\n\033ListFindingTypeStatsReques" + + "t\022\016\n\006parent\030\001 \001(\t\"p\n\034ListFindingTypeStat" + + "sResponse\022P\n\022finding_type_stats\030\001 \003(\01324." + + "google.cloud.websecurityscanner.v1.Findi" + + "ngTypeStats2\351\023\n\022WebSecurityScanner\022\271\001\n\020C" + + "reateScanConfig\022;.google.cloud.websecuri" + + "tyscanner.v1.CreateScanConfigRequest\032..g" + + "oogle.cloud.websecurityscanner.v1.ScanCo" + + "nfig\"8\202\323\344\223\0022\"#/v1/{parent=projects/*}/sc" + + "anConfigs:\013scan_config\022\224\001\n\020DeleteScanCon" + + "fig\022;.google.cloud.websecurityscanner.v1" + + ".DeleteScanConfigRequest\032\026.google.protob" + + "uf.Empty\"+\202\323\344\223\002%*#/v1/{name=projects/*/s" + + "canConfigs/*}\022\246\001\n\rGetScanConfig\0228.google" + + ".cloud.websecurityscanner.v1.GetScanConf" + + "igRequest\032..google.cloud.websecurityscan" + + "ner.v1.ScanConfig\"+\202\323\344\223\002%\022#/v1/{name=pro" + + "jects/*/scanConfigs/*}\022\267\001\n\017ListScanConfi" + + "gs\022:.google.cloud.websecurityscanner.v1." + + "ListScanConfigsRequest\032;.google.cloud.we" + + "bsecurityscanner.v1.ListScanConfigsRespo" + + "nse\"+\202\323\344\223\002%\022#/v1/{parent=projects/*}/sca" + + "nConfigs\022\305\001\n\020UpdateScanConfig\022;.google.c" + + "loud.websecurityscanner.v1.UpdateScanCon" + + "figRequest\032..google.cloud.websecuritysca" + + "nner.v1.ScanConfig\"D\202\323\344\223\002>2//v1/{scan_co" + + "nfig.name=projects/*/scanConfigs/*}:\013sca" + + "n_config\022\252\001\n\014StartScanRun\0227.google.cloud" + + ".websecurityscanner.v1.StartScanRunReque" + + "st\032+.google.cloud.websecurityscanner.v1." + + "ScanRun\"4\202\323\344\223\002.\")/v1/{name=projects/*/sc" + + "anConfigs/*}:start:\001*\022\250\001\n\nGetScanRun\0225.g" + + "oogle.cloud.websecurityscanner.v1.GetSca" + + "nRunRequest\032+.google.cloud.websecuritysc" + + "anner.v1.ScanRun\"6\202\323\344\223\0020\022./v1/{name=proj" + + "ects/*/scanConfigs/*/scanRuns/*}\022\271\001\n\014Lis" + + "tScanRuns\0227.google.cloud.websecurityscan" + + "ner.v1.ListScanRunsRequest\0328.google.clou" + + "d.websecurityscanner.v1.ListScanRunsResp" + + "onse\"6\202\323\344\223\0020\022./v1/{parent=projects/*/sca" + + "nConfigs/*}/scanRuns\022\262\001\n\013StopScanRun\0226.g" + + "oogle.cloud.websecurityscanner.v1.StopSc" + + "anRunRequest\032+.google.cloud.websecuritys" + + "canner.v1.ScanRun\">\202\323\344\223\0028\"3/v1/{name=pro" + + "jects/*/scanConfigs/*/scanRuns/*}:stop:\001" + + "*\022\320\001\n\017ListCrawledUrls\022:.google.cloud.web" + + "securityscanner.v1.ListCrawledUrlsReques" + + "t\032;.google.cloud.websecurityscanner.v1.L" + + "istCrawledUrlsResponse\"D\202\323\344\223\002>\022 * Information reported for an XSS. *
* * Protobuf type {@code google.cloud.websecurityscanner.v1.Xss} */ -public final class Xss extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Xss extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.Xss) XssOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Xss.newBuilder() to construct. private Xss(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Xss() { stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; errorMessage_ = ""; @@ -28,16 +46,15 @@ private Xss() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Xss(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Xss( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,40 +74,44 @@ private Xss( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stackTraces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stackTraces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stackTraces_.add(s); + break; } - stackTraces_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); + errorMessage_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - attackVector_ = rawValue; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + attackVector_ = rawValue; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - storedXssSeedingUrl_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + storedXssSeedingUrl_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,8 +119,7 @@ private Xss( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -108,29 +128,35 @@ private Xss( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.Xss.class, com.google.cloud.websecurityscanner.v1.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1.Xss.class, + com.google.cloud.websecurityscanner.v1.Xss.Builder.class); } /** + * + * *
    * Types of XSS attack vector.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.Xss.AttackVector} */ - public enum AttackVector - implements com.google.protobuf.ProtocolMessageEnum { + public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown attack vector.
      * 
@@ -139,6 +165,8 @@ public enum AttackVector */ ATTACK_VECTOR_UNSPECIFIED(0), /** + * + * *
      * The attack comes from fuzzing the browser's localStorage.
      * 
@@ -147,6 +175,8 @@ public enum AttackVector */ LOCAL_STORAGE(1), /** + * + * *
      * The attack comes from fuzzing the browser's sessionStorage.
      * 
@@ -155,6 +185,8 @@ public enum AttackVector */ SESSION_STORAGE(2), /** + * + * *
      * The attack comes from fuzzing the window's name property.
      * 
@@ -163,6 +195,8 @@ public enum AttackVector */ WINDOW_NAME(3), /** + * + * *
      * The attack comes from fuzzing the referrer property.
      * 
@@ -171,6 +205,8 @@ public enum AttackVector */ REFERRER(4), /** + * + * *
      * The attack comes from fuzzing an input element.
      * 
@@ -179,6 +215,8 @@ public enum AttackVector */ FORM_INPUT(5), /** + * + * *
      * The attack comes from fuzzing the browser's cookies.
      * 
@@ -187,6 +225,8 @@ public enum AttackVector */ COOKIE(6), /** + * + * *
      * The attack comes from hijacking the post messaging mechanism.
      * 
@@ -195,6 +235,8 @@ public enum AttackVector */ POST_MESSAGE(7), /** + * + * *
      * The attack comes from fuzzing parameters in the url.
      * 
@@ -203,6 +245,8 @@ public enum AttackVector */ GET_PARAMETERS(8), /** + * + * *
      * The attack comes from fuzzing the fragment in the url.
      * 
@@ -211,6 +255,8 @@ public enum AttackVector */ URL_FRAGMENT(9), /** + * + * *
      * The attack comes from fuzzing the HTML comments.
      * 
@@ -219,6 +265,8 @@ public enum AttackVector */ HTML_COMMENT(10), /** + * + * *
      * The attack comes from fuzzing the POST parameters.
      * 
@@ -227,6 +275,8 @@ public enum AttackVector */ POST_PARAMETERS(11), /** + * + * *
      * The attack comes from fuzzing the protocol.
      * 
@@ -235,6 +285,8 @@ public enum AttackVector */ PROTOCOL(12), /** + * + * *
      * The attack comes from the server side and is stored.
      * 
@@ -243,6 +295,8 @@ public enum AttackVector */ STORED_XSS(13), /** + * + * *
      * The attack is a Same-Origin Method Execution attack via a GET parameter.
      * 
@@ -251,6 +305,8 @@ public enum AttackVector */ SAME_ORIGIN(14), /** + * + * *
      * The attack payload is received from a third-party host via a URL that is
      * user-controllable
@@ -263,6 +319,8 @@ public enum AttackVector
     ;
 
     /**
+     *
+     *
      * 
      * Unknown attack vector.
      * 
@@ -271,6 +329,8 @@ public enum AttackVector */ public static final int ATTACK_VECTOR_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The attack comes from fuzzing the browser's localStorage.
      * 
@@ -279,6 +339,8 @@ public enum AttackVector */ public static final int LOCAL_STORAGE_VALUE = 1; /** + * + * *
      * The attack comes from fuzzing the browser's sessionStorage.
      * 
@@ -287,6 +349,8 @@ public enum AttackVector */ public static final int SESSION_STORAGE_VALUE = 2; /** + * + * *
      * The attack comes from fuzzing the window's name property.
      * 
@@ -295,6 +359,8 @@ public enum AttackVector */ public static final int WINDOW_NAME_VALUE = 3; /** + * + * *
      * The attack comes from fuzzing the referrer property.
      * 
@@ -303,6 +369,8 @@ public enum AttackVector */ public static final int REFERRER_VALUE = 4; /** + * + * *
      * The attack comes from fuzzing an input element.
      * 
@@ -311,6 +379,8 @@ public enum AttackVector */ public static final int FORM_INPUT_VALUE = 5; /** + * + * *
      * The attack comes from fuzzing the browser's cookies.
      * 
@@ -319,6 +389,8 @@ public enum AttackVector */ public static final int COOKIE_VALUE = 6; /** + * + * *
      * The attack comes from hijacking the post messaging mechanism.
      * 
@@ -327,6 +399,8 @@ public enum AttackVector */ public static final int POST_MESSAGE_VALUE = 7; /** + * + * *
      * The attack comes from fuzzing parameters in the url.
      * 
@@ -335,6 +409,8 @@ public enum AttackVector */ public static final int GET_PARAMETERS_VALUE = 8; /** + * + * *
      * The attack comes from fuzzing the fragment in the url.
      * 
@@ -343,6 +419,8 @@ public enum AttackVector */ public static final int URL_FRAGMENT_VALUE = 9; /** + * + * *
      * The attack comes from fuzzing the HTML comments.
      * 
@@ -351,6 +429,8 @@ public enum AttackVector */ public static final int HTML_COMMENT_VALUE = 10; /** + * + * *
      * The attack comes from fuzzing the POST parameters.
      * 
@@ -359,6 +439,8 @@ public enum AttackVector */ public static final int POST_PARAMETERS_VALUE = 11; /** + * + * *
      * The attack comes from fuzzing the protocol.
      * 
@@ -367,6 +449,8 @@ public enum AttackVector */ public static final int PROTOCOL_VALUE = 12; /** + * + * *
      * The attack comes from the server side and is stored.
      * 
@@ -375,6 +459,8 @@ public enum AttackVector */ public static final int STORED_XSS_VALUE = 13; /** + * + * *
      * The attack is a Same-Origin Method Execution attack via a GET parameter.
      * 
@@ -383,6 +469,8 @@ public enum AttackVector */ public static final int SAME_ORIGIN_VALUE = 14; /** + * + * *
      * The attack payload is received from a third-party host via a URL that is
      * user-controllable
@@ -392,7 +480,6 @@ public enum AttackVector
      */
     public static final int USER_CONTROLLABLE_URL_VALUE = 15;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -417,62 +504,75 @@ public static AttackVector valueOf(int value) {
      */
     public static AttackVector forNumber(int value) {
       switch (value) {
-        case 0: return ATTACK_VECTOR_UNSPECIFIED;
-        case 1: return LOCAL_STORAGE;
-        case 2: return SESSION_STORAGE;
-        case 3: return WINDOW_NAME;
-        case 4: return REFERRER;
-        case 5: return FORM_INPUT;
-        case 6: return COOKIE;
-        case 7: return POST_MESSAGE;
-        case 8: return GET_PARAMETERS;
-        case 9: return URL_FRAGMENT;
-        case 10: return HTML_COMMENT;
-        case 11: return POST_PARAMETERS;
-        case 12: return PROTOCOL;
-        case 13: return STORED_XSS;
-        case 14: return SAME_ORIGIN;
-        case 15: return USER_CONTROLLABLE_URL;
-        default: return null;
+        case 0:
+          return ATTACK_VECTOR_UNSPECIFIED;
+        case 1:
+          return LOCAL_STORAGE;
+        case 2:
+          return SESSION_STORAGE;
+        case 3:
+          return WINDOW_NAME;
+        case 4:
+          return REFERRER;
+        case 5:
+          return FORM_INPUT;
+        case 6:
+          return COOKIE;
+        case 7:
+          return POST_MESSAGE;
+        case 8:
+          return GET_PARAMETERS;
+        case 9:
+          return URL_FRAGMENT;
+        case 10:
+          return HTML_COMMENT;
+        case 11:
+          return POST_PARAMETERS;
+        case 12:
+          return PROTOCOL;
+        case 13:
+          return STORED_XSS;
+        case 14:
+          return SAME_ORIGIN;
+        case 15:
+          return USER_CONTROLLABLE_URL;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        AttackVector> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public AttackVector findValueByNumber(int number) {
-              return AttackVector.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public AttackVector findValueByNumber(int number) {
+            return AttackVector.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.websecurityscanner.v1.Xss.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final AttackVector[] VALUES = values();
 
-    public static AttackVector valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static AttackVector valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -492,34 +592,42 @@ private AttackVector(int value) {
   public static final int STACK_TRACES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList stackTraces_;
   /**
+   *
+   *
    * 
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList - getStackTracesList() { + public com.google.protobuf.ProtocolStringList getStackTracesList() { return stackTraces_; } /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -527,27 +635,32 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString - getStackTracesBytes(int index) { + public com.google.protobuf.ByteString getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object errorMessage_; /** + * + * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; + * * @return The errorMessage. */ @java.lang.Override @@ -556,29 +669,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** + * + * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -589,38 +702,52 @@ public java.lang.String getErrorMessage() { public static final int ATTACK_VECTOR_FIELD_NUMBER = 3; private int attackVector_; /** + * + * *
    * The attack vector of the payload triggering this XSS.
    * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; + * * @return The enum numeric value on the wire for attackVector. */ - @java.lang.Override public int getAttackVectorValue() { + @java.lang.Override + public int getAttackVectorValue() { return attackVector_; } /** + * + * *
    * The attack vector of the payload triggering this XSS.
    * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; + * * @return The attackVector. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xss.AttackVector getAttackVector() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xss.AttackVector getAttackVector() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = com.google.cloud.websecurityscanner.v1.Xss.AttackVector.valueOf(attackVector_); - return result == null ? com.google.cloud.websecurityscanner.v1.Xss.AttackVector.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = + com.google.cloud.websecurityscanner.v1.Xss.AttackVector.valueOf(attackVector_); + return result == null + ? com.google.cloud.websecurityscanner.v1.Xss.AttackVector.UNRECOGNIZED + : result; } public static final int STORED_XSS_SEEDING_URL_FIELD_NUMBER = 4; private volatile java.lang.Object storedXssSeedingUrl_; /** + * + * *
    * The reproduction url for the seeding POST request of a Stored XSS.
    * 
* * string stored_xss_seeding_url = 4; + * * @return The storedXssSeedingUrl. */ @java.lang.Override @@ -629,29 +756,29 @@ public java.lang.String getStoredXssSeedingUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storedXssSeedingUrl_ = s; return s; } } /** + * + * *
    * The reproduction url for the seeding POST request of a Stored XSS.
    * 
* * string stored_xss_seeding_url = 4; + * * @return The bytes for storedXssSeedingUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getStoredXssSeedingUrlBytes() { + public com.google.protobuf.ByteString getStoredXssSeedingUrlBytes() { java.lang.Object ref = storedXssSeedingUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storedXssSeedingUrl_ = b; return b; } else { @@ -660,6 +787,7 @@ public java.lang.String getStoredXssSeedingUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -671,15 +799,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < stackTraces_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stackTraces_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); } - if (attackVector_ != com.google.cloud.websecurityscanner.v1.Xss.AttackVector.ATTACK_VECTOR_UNSPECIFIED.getNumber()) { + if (attackVector_ + != com.google.cloud.websecurityscanner.v1.Xss.AttackVector.ATTACK_VECTOR_UNSPECIFIED + .getNumber()) { output.writeEnum(3, attackVector_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storedXssSeedingUrl_)) { @@ -705,9 +834,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); } - if (attackVector_ != com.google.cloud.websecurityscanner.v1.Xss.AttackVector.ATTACK_VECTOR_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, attackVector_); + if (attackVector_ + != com.google.cloud.websecurityscanner.v1.Xss.AttackVector.ATTACK_VECTOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, attackVector_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storedXssSeedingUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storedXssSeedingUrl_); @@ -720,20 +850,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1.Xss)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.Xss other = (com.google.cloud.websecurityscanner.v1.Xss) obj; + com.google.cloud.websecurityscanner.v1.Xss other = + (com.google.cloud.websecurityscanner.v1.Xss) obj; - if (!getStackTracesList() - .equals(other.getStackTracesList())) return false; - if (!getErrorMessage() - .equals(other.getErrorMessage())) return false; + if (!getStackTracesList().equals(other.getStackTracesList())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; if (attackVector_ != other.attackVector_) return false; - if (!getStoredXssSeedingUrl() - .equals(other.getStoredXssSeedingUrl())) return false; + if (!getStoredXssSeedingUrl().equals(other.getStoredXssSeedingUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -760,118 +888,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1.Xss parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.Xss parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.Xss parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1.Xss parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1.Xss parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.Xss parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1.Xss parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1.Xss prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information reported for an XSS.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.Xss} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1.Xss) com.google.cloud.websecurityscanner.v1.XssOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.Xss.class, com.google.cloud.websecurityscanner.v1.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1.Xss.class, + com.google.cloud.websecurityscanner.v1.Xss.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.Xss.newBuilder() @@ -879,16 +1016,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -904,9 +1040,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xss_descriptor; } @java.lang.Override @@ -925,7 +1061,8 @@ public com.google.cloud.websecurityscanner.v1.Xss build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xss buildPartial() { - com.google.cloud.websecurityscanner.v1.Xss result = new com.google.cloud.websecurityscanner.v1.Xss(this); + com.google.cloud.websecurityscanner.v1.Xss result = + new com.google.cloud.websecurityscanner.v1.Xss(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -943,38 +1080,39 @@ public com.google.cloud.websecurityscanner.v1.Xss buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1.Xss) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.Xss)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.Xss) other); } else { super.mergeFrom(other); return this; @@ -1032,44 +1170,55 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList stackTraces_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureStackTracesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { stackTraces_ = new com.google.protobuf.LazyStringArrayList(stackTraces_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList - getStackTracesList() { + public com.google.protobuf.ProtocolStringList getStackTracesList() { return stackTraces_.getUnmodifiableView(); } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -1077,80 +1226,90 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString - getStackTracesBytes(int index) { + public com.google.protobuf.ByteString getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param index The index to set the value at. * @param value The stackTraces to set. * @return This builder for chaining. */ - public Builder setStackTraces( - int index, java.lang.String value) { + public Builder setStackTraces(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.set(index, value); onChanged(); return this; } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param value The stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTraces( - java.lang.String value) { + public Builder addStackTraces(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); return this; } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param values The stackTraces to add. * @return This builder for chaining. */ - public Builder addAllStackTraces( - java.lang.Iterable values) { + public Builder addAllStackTraces(java.lang.Iterable values) { ensureStackTracesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stackTraces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stackTraces_); onChanged(); return this; } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @return This builder for chaining. */ public Builder clearStackTraces() { @@ -1160,20 +1319,22 @@ public Builder clearStackTraces() { return this; } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param value The bytes of the stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTracesBytes( - com.google.protobuf.ByteString value) { + public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); @@ -1182,18 +1343,20 @@ public Builder addStackTracesBytes( private java.lang.Object errorMessage_ = ""; /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -1202,20 +1365,21 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -1223,54 +1387,61 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage( - java.lang.String value) { + public Builder setErrorMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; @@ -1278,51 +1449,67 @@ public Builder setErrorMessageBytes( private int attackVector_ = 0; /** + * + * *
      * The attack vector of the payload triggering this XSS.
      * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; + * * @return The enum numeric value on the wire for attackVector. */ - @java.lang.Override public int getAttackVectorValue() { + @java.lang.Override + public int getAttackVectorValue() { return attackVector_; } /** + * + * *
      * The attack vector of the payload triggering this XSS.
      * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; + * * @param value The enum numeric value on the wire for attackVector to set. * @return This builder for chaining. */ public Builder setAttackVectorValue(int value) { - + attackVector_ = value; onChanged(); return this; } /** + * + * *
      * The attack vector of the payload triggering this XSS.
      * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; + * * @return The attackVector. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xss.AttackVector getAttackVector() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = com.google.cloud.websecurityscanner.v1.Xss.AttackVector.valueOf(attackVector_); - return result == null ? com.google.cloud.websecurityscanner.v1.Xss.AttackVector.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = + com.google.cloud.websecurityscanner.v1.Xss.AttackVector.valueOf(attackVector_); + return result == null + ? com.google.cloud.websecurityscanner.v1.Xss.AttackVector.UNRECOGNIZED + : result; } /** + * + * *
      * The attack vector of the payload triggering this XSS.
      * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; + * * @param value The attackVector to set. * @return This builder for chaining. */ @@ -1330,21 +1517,24 @@ public Builder setAttackVector(com.google.cloud.websecurityscanner.v1.Xss.Attack if (value == null) { throw new NullPointerException(); } - + attackVector_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The attack vector of the payload triggering this XSS.
      * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; + * * @return This builder for chaining. */ public Builder clearAttackVector() { - + attackVector_ = 0; onChanged(); return this; @@ -1352,18 +1542,20 @@ public Builder clearAttackVector() { private java.lang.Object storedXssSeedingUrl_ = ""; /** + * + * *
      * The reproduction url for the seeding POST request of a Stored XSS.
      * 
* * string stored_xss_seeding_url = 4; + * * @return The storedXssSeedingUrl. */ public java.lang.String getStoredXssSeedingUrl() { java.lang.Object ref = storedXssSeedingUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storedXssSeedingUrl_ = s; return s; @@ -1372,20 +1564,21 @@ public java.lang.String getStoredXssSeedingUrl() { } } /** + * + * *
      * The reproduction url for the seeding POST request of a Stored XSS.
      * 
* * string stored_xss_seeding_url = 4; + * * @return The bytes for storedXssSeedingUrl. */ - public com.google.protobuf.ByteString - getStoredXssSeedingUrlBytes() { + public com.google.protobuf.ByteString getStoredXssSeedingUrlBytes() { java.lang.Object ref = storedXssSeedingUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storedXssSeedingUrl_ = b; return b; } else { @@ -1393,61 +1586,68 @@ public java.lang.String getStoredXssSeedingUrl() { } } /** + * + * *
      * The reproduction url for the seeding POST request of a Stored XSS.
      * 
* * string stored_xss_seeding_url = 4; + * * @param value The storedXssSeedingUrl to set. * @return This builder for chaining. */ - public Builder setStoredXssSeedingUrl( - java.lang.String value) { + public Builder setStoredXssSeedingUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + storedXssSeedingUrl_ = value; onChanged(); return this; } /** + * + * *
      * The reproduction url for the seeding POST request of a Stored XSS.
      * 
* * string stored_xss_seeding_url = 4; + * * @return This builder for chaining. */ public Builder clearStoredXssSeedingUrl() { - + storedXssSeedingUrl_ = getDefaultInstance().getStoredXssSeedingUrl(); onChanged(); return this; } /** + * + * *
      * The reproduction url for the seeding POST request of a Stored XSS.
      * 
* * string stored_xss_seeding_url = 4; + * * @param value The bytes for storedXssSeedingUrl to set. * @return This builder for chaining. */ - public Builder setStoredXssSeedingUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setStoredXssSeedingUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storedXssSeedingUrl_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1457,12 +1657,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.Xss) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.Xss) private static final com.google.cloud.websecurityscanner.v1.Xss DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.Xss(); } @@ -1471,16 +1671,16 @@ public static com.google.cloud.websecurityscanner.v1.Xss getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Xss parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Xss(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Xss parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Xss(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1495,6 +1695,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.Xss getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java index 881b7416..28d99d6c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java @@ -1,109 +1,151 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1/finding_addon.proto package com.google.cloud.websecurityscanner.v1; -public interface XssOrBuilder extends +public interface XssOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.Xss) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @return A list containing the stackTraces. */ - java.util.List - getStackTracesList(); + java.util.List getStackTracesList(); /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @return The count of stackTraces. */ int getStackTracesCount(); /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @param index The index of the element to return. * @return The stackTraces at the given index. */ java.lang.String getStackTraces(int index); /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - com.google.protobuf.ByteString - getStackTracesBytes(int index); + com.google.protobuf.ByteString getStackTracesBytes(int index); /** + * + * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; + * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** + * + * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString - getErrorMessageBytes(); + com.google.protobuf.ByteString getErrorMessageBytes(); /** + * + * *
    * The attack vector of the payload triggering this XSS.
    * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; + * * @return The enum numeric value on the wire for attackVector. */ int getAttackVectorValue(); /** + * + * *
    * The attack vector of the payload triggering this XSS.
    * 
* * .google.cloud.websecurityscanner.v1.Xss.AttackVector attack_vector = 3; + * * @return The attackVector. */ com.google.cloud.websecurityscanner.v1.Xss.AttackVector getAttackVector(); /** + * + * *
    * The reproduction url for the seeding POST request of a Stored XSS.
    * 
* * string stored_xss_seeding_url = 4; + * * @return The storedXssSeedingUrl. */ java.lang.String getStoredXssSeedingUrl(); /** + * + * *
    * The reproduction url for the seeding POST request of a Stored XSS.
    * 
* * string stored_xss_seeding_url = 4; + * * @return The bytes for storedXssSeedingUrl. */ - com.google.protobuf.ByteString - getStoredXssSeedingUrlBytes(); + com.google.protobuf.ByteString getStoredXssSeedingUrlBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto rename to proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto rename to proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto rename to proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto rename to proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto rename to proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto rename to proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto rename to proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto rename to proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto rename to proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto rename to proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto b/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto rename to proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java similarity index 71% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java index 8d2f05ff..2d700ee5 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/crawled_url.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
  * Security Scanner Service crawls the web applications, following all links
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.CrawledUrl}
  */
-public final class CrawledUrl extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CrawledUrl extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.CrawledUrl)
     CrawledUrlOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CrawledUrl.newBuilder() to construct.
   private CrawledUrl(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CrawledUrl() {
     httpMethod_ = "";
     url_ = "";
@@ -29,16 +47,15 @@ private CrawledUrl() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CrawledUrl();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CrawledUrl(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,31 +74,34 @@ private CrawledUrl(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            httpMethod_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              httpMethod_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            url_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              url_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            body_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              body_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -89,35 +109,40 @@ private CrawledUrl(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto
+        .internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto
+        .internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.class, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder.class);
+            com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.class,
+            com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder.class);
   }
 
   public static final int HTTP_METHOD_FIELD_NUMBER = 1;
   private volatile java.lang.Object httpMethod_;
   /**
+   *
+   *
    * 
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; + * * @return The httpMethod. */ @java.lang.Override @@ -126,30 +151,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** + * + * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; + * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString - getHttpMethodBytes() { + public com.google.protobuf.ByteString getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -160,11 +185,14 @@ public java.lang.String getHttpMethod() { public static final int URL_FIELD_NUMBER = 2; private volatile java.lang.Object url_; /** + * + * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; + * * @return The url. */ @java.lang.Override @@ -173,29 +201,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** + * + * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; + * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -206,11 +234,14 @@ public java.lang.String getUrl() { public static final int BODY_FIELD_NUMBER = 3; private volatile java.lang.Object body_; /** + * + * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; + * * @return The body. */ @java.lang.Override @@ -219,29 +250,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** + * + * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; + * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString - getBodyBytes() { + public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); body_ = b; return b; } else { @@ -250,6 +281,7 @@ public java.lang.String getBody() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +293,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpMethod_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpMethod_); } @@ -298,19 +329,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.CrawledUrl)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl other = (com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) obj; + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl other = + (com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) obj; - if (!getHttpMethod() - .equals(other.getHttpMethod())) return false; - if (!getUrl() - .equals(other.getUrl())) return false; - if (!getBody() - .equals(other.getBody())) return false; + if (!getHttpMethod().equals(other.getHttpMethod())) return false; + if (!getUrl().equals(other.getUrl())) return false; + if (!getBody().equals(other.getBody())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,96 +363,104 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.CrawledUrl prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
    * Security Scanner Service crawls the web applications, following all links
@@ -432,21 +469,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.CrawledUrl}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.CrawledUrl)
       com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto
+          .internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto
+          .internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.class, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder.class);
+              com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.class,
+              com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.newBuilder()
@@ -454,16 +493,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -477,9 +515,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto
+          .internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
@@ -498,7 +536,8 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl buildPartial() {
-      com.google.cloud.websecurityscanner.v1alpha.CrawledUrl result = new com.google.cloud.websecurityscanner.v1alpha.CrawledUrl(this);
+      com.google.cloud.websecurityscanner.v1alpha.CrawledUrl result =
+          new com.google.cloud.websecurityscanner.v1alpha.CrawledUrl(this);
       result.httpMethod_ = httpMethod_;
       result.url_ = url_;
       result.body_ = body_;
@@ -510,38 +549,39 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.CrawledUrl)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -549,7 +589,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.CrawledUrl other) {
-      if (other == com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance()) return this;
+      if (other == com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance())
+        return this;
       if (!other.getHttpMethod().isEmpty()) {
         httpMethod_ = other.httpMethod_;
         onChanged();
@@ -581,7 +622,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1alpha.CrawledUrl) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -593,19 +635,21 @@ public Builder mergeFrom(
 
     private java.lang.Object httpMethod_ = "";
     /**
+     *
+     *
      * 
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; + * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -614,21 +658,22 @@ public java.lang.String getHttpMethod() { } } /** + * + * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; + * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString - getHttpMethodBytes() { + public com.google.protobuf.ByteString getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -636,57 +681,64 @@ public java.lang.String getHttpMethod() { } } /** + * + * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; + * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod( - java.lang.String value) { + public Builder setHttpMethod(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; + * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** + * + * *
      * Output only. The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; + * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes( - com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -694,18 +746,20 @@ public Builder setHttpMethodBytes( private java.lang.Object url_ = ""; /** + * + * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; + * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -714,20 +768,21 @@ public java.lang.String getUrl() { } } /** + * + * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; + * * @return The bytes for url. */ - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -735,54 +790,61 @@ public java.lang.String getUrl() { } } /** + * + * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; + * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl( - java.lang.String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; + * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** + * + * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; + * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; @@ -790,18 +852,20 @@ public Builder setUrlBytes( private java.lang.Object body_ = ""; /** + * + * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; + * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -810,20 +874,21 @@ public java.lang.String getBody() { } } /** + * + * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; + * * @return The bytes for body. */ - public com.google.protobuf.ByteString - getBodyBytes() { + public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); body_ = b; return b; } else { @@ -831,61 +896,68 @@ public java.lang.String getBody() { } } /** + * + * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; + * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody( - java.lang.String value) { + public Builder setBody(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; + * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** + * + * *
      * Output only. The body of the request that was used to visit the URL.
      * 
* * string body = 3; + * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes( - com.google.protobuf.ByteString value) { + public Builder setBodyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -895,12 +967,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.CrawledUrl) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.CrawledUrl) private static final com.google.cloud.websecurityscanner.v1alpha.CrawledUrl DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.CrawledUrl(); } @@ -909,16 +981,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CrawledUrl parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CrawledUrl(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CrawledUrl parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CrawledUrl(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -933,6 +1005,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java similarity index 62% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java index 16190d96..d92bd9a1 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java @@ -1,71 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/crawled_url.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface CrawledUrlOrBuilder extends +public interface CrawledUrlOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.CrawledUrl) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; + * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** + * + * *
    * Output only. The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; + * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString - getHttpMethodBytes(); + com.google.protobuf.ByteString getHttpMethodBytes(); /** + * + * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; + * * @return The url. */ java.lang.String getUrl(); /** + * + * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; + * * @return The bytes for url. */ - com.google.protobuf.ByteString - getUrlBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** + * + * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; + * * @return The body. */ java.lang.String getBody(); /** + * + * *
    * Output only. The body of the request that was used to visit the URL.
    * 
* * string body = 3; + * * @return The bytes for body. */ - com.google.protobuf.ByteString - getBodyBytes(); + com.google.protobuf.ByteString getBodyBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java new file mode 100644 index 00000000..215f7e44 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java @@ -0,0 +1,67 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/crawled_url.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class CrawledUrlProto { + private CrawledUrlProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/websecurityscanner/v1alph" + + "a/crawled_url.proto\022\'google.cloud.websec" + + "urityscanner.v1alpha\"<\n\nCrawledUrl\022\023\n\013ht" + + "tp_method\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001" + + "(\tB\233\001\n+com.google.cloud.websecurityscann" + + "er.v1alphaB\017CrawledUrlProtoP\001ZYgoogle.go" + + "lang.org/genproto/googleapis/cloud/webse" + + "curityscanner/v1alpha;websecurityscanner" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_CrawledUrl_descriptor, + new java.lang.String[] { + "HttpMethod", "Url", "Body", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java similarity index 61% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java index b0a8845e..0f68af4a 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Request for the `CreateScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest} */ -public final class CreateScanConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) CreateScanConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateScanConfigRequest.newBuilder() to construct. private CreateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateScanConfigRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,37 @@ private CreateScanConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); + parent_ = s; + break; } - scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); + } + scanConfig_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +108,42 @@ private CreateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,30 +152,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -157,11 +188,16 @@ public java.lang.String getParent() { public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1alpha.ScanConfig scanConfig_; /** + * + * *
    * Required. The ScanConfig to be created.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -169,23 +205,34 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** + * + * *
    * Required. The ScanConfig to be created.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig() { - return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() + : scanConfig_; } /** + * + * *
    * Required. The ScanConfig to be created.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder() { @@ -193,6 +240,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +252,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -225,8 +272,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (scanConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getScanConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,19 +282,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest other = + (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasScanConfig() != other.hasScanConfig()) return false; if (hasScanConfig()) { - if (!getScanConfig() - .equals(other.getScanConfig())) return false; + if (!getScanConfig().equals(other.getScanConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,134 +318,145 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `CreateScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,14 +472,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest + .getDefaultInstance(); } @java.lang.Override @@ -437,7 +495,8 @@ public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest build @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest(this); result.parent_ = parent_; if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; @@ -452,46 +511,51 @@ public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -518,7 +582,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -530,19 +596,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -551,21 +621,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -573,57 +646,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -631,39 +717,58 @@ public Builder setParentBytes( private com.google.cloud.websecurityscanner.v1alpha.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> + scanConfigBuilder_; /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() + : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -679,11 +784,15 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanCon return this; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setScanConfig( com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder builderForValue) { @@ -697,17 +806,23 @@ public Builder setScanConfig( return this; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanConfig value) { if (scanConfigBuilder_ == null) { if (scanConfig_ != null) { scanConfig_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.newBuilder(scanConfig_) + .mergeFrom(value) + .buildPartial(); } else { scanConfig_ = value; } @@ -719,11 +834,15 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanC return this; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearScanConfig() { if (scanConfigBuilder_ == null) { @@ -737,55 +856,72 @@ public Builder clearScanConfig() { return this; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanConfigBuilder() { - + onChanged(); return getScanConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder + getScanConfigOrBuilder() { if (scanConfigBuilder_ != null) { return scanConfigBuilder_.getMessageOrBuilder(); } else { - return scanConfig_ == null ? - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() + : scanConfig_; } } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> getScanConfigFieldBuilder() { if (scanConfigBuilder_ == null) { - scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( - getScanConfig(), - getParentForChildren(), - isClean()); + scanConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( + getScanConfig(), getParentForChildren(), isClean()); scanConfig_ = null; } return scanConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,30 +931,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,9 +968,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..2523f792 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface CreateScanConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource name where the scan is created, which should be a
+   * project resource name in the format 'projects/{projectId}'.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource name where the scan is created, which should be a
+   * project resource name in the format 'projects/{projectId}'.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scanConfig field is set. + */ + boolean hasScanConfig(); + /** + * + * + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scanConfig. + */ + com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig(); + /** + * + * + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder(); +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java similarity index 63% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java index 5f14e639..757144a2 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Request for the `DeleteScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest} */ -public final class DeleteScanConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) DeleteScanConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteScanConfigRequest.newBuilder() to construct. private DeleteScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteScanConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private DeleteScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest other = (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest other = + (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +233,145 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `DeleteScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,14 +381,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest + .getDefaultInstance(); } @java.lang.Override @@ -364,7 +404,8 @@ public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest build @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest result = new com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +415,51 @@ public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +483,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +497,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +522,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +547,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +627,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +664,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..0080af33 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface DeleteScanConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ScanConfig to be deleted. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the ScanConfig to be deleted. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java similarity index 72% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java index e450b824..c980481d 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * A Finding resource represents a vulnerability instance identified during a
  * ScanRun.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.Finding}
  */
-public final class Finding extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Finding extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.Finding)
     FindingOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Finding.newBuilder() to construct.
   private Finding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Finding() {
     name_ = "";
     findingType_ = 0;
@@ -35,16 +53,15 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Finding();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Finding(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -63,138 +80,170 @@ private Finding(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
-
-            findingType_ = rawValue;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            httpMethod_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            fuzzedUrl_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            body_ = s;
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            description_ = s;
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            reproductionUrl_ = s;
-            break;
-          }
-          case 66: {
-            java.lang.String s = input.readStringRequireUtf8();
+              findingType_ = rawValue;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            frameUrl_ = s;
-            break;
-          }
-          case 74: {
-            java.lang.String s = input.readStringRequireUtf8();
+              httpMethod_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            finalUrl_ = s;
-            break;
-          }
-          case 82: {
-            java.lang.String s = input.readStringRequireUtf8();
+              fuzzedUrl_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            trackingId_ = s;
-            break;
-          }
-          case 90: {
-            com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder subBuilder = null;
-            if (outdatedLibrary_ != null) {
-              subBuilder = outdatedLibrary_.toBuilder();
+              body_ = s;
+              break;
             }
-            outdatedLibrary_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outdatedLibrary_);
-              outdatedLibrary_ = subBuilder.buildPartial();
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              description_ = s;
+              break;
             }
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 98: {
-            com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder subBuilder = null;
-            if (violatingResource_ != null) {
-              subBuilder = violatingResource_.toBuilder();
+              reproductionUrl_ = s;
+              break;
             }
-            violatingResource_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(violatingResource_);
-              violatingResource_ = subBuilder.buildPartial();
+          case 66:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              frameUrl_ = s;
+              break;
             }
+          case 74:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 106: {
-            com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder subBuilder = null;
-            if (vulnerableParameters_ != null) {
-              subBuilder = vulnerableParameters_.toBuilder();
+              finalUrl_ = s;
+              break;
             }
-            vulnerableParameters_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(vulnerableParameters_);
-              vulnerableParameters_ = subBuilder.buildPartial();
+          case 82:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              trackingId_ = s;
+              break;
             }
+          case 90:
+            {
+              com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder subBuilder = null;
+              if (outdatedLibrary_ != null) {
+                subBuilder = outdatedLibrary_.toBuilder();
+              }
+              outdatedLibrary_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outdatedLibrary_);
+                outdatedLibrary_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 114: {
-            com.google.cloud.websecurityscanner.v1alpha.Xss.Builder subBuilder = null;
-            if (xss_ != null) {
-              subBuilder = xss_.toBuilder();
+              break;
             }
-            xss_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.Xss.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(xss_);
-              xss_ = subBuilder.buildPartial();
+          case 98:
+            {
+              com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder subBuilder =
+                  null;
+              if (violatingResource_ != null) {
+                subBuilder = violatingResource_.toBuilder();
+              }
+              violatingResource_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(violatingResource_);
+                violatingResource_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 106:
+            {
+              com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder subBuilder =
+                  null;
+              if (vulnerableParameters_ != null) {
+                subBuilder = vulnerableParameters_.toBuilder();
+              }
+              vulnerableParameters_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(vulnerableParameters_);
+                vulnerableParameters_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 122: {
-            com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder subBuilder = null;
-            if (vulnerableHeaders_ != null) {
-              subBuilder = vulnerableHeaders_.toBuilder();
+              break;
             }
-            vulnerableHeaders_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(vulnerableHeaders_);
-              vulnerableHeaders_ = subBuilder.buildPartial();
+          case 114:
+            {
+              com.google.cloud.websecurityscanner.v1alpha.Xss.Builder subBuilder = null;
+              if (xss_ != null) {
+                subBuilder = xss_.toBuilder();
+              }
+              xss_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1alpha.Xss.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(xss_);
+                xss_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 122:
+            {
+              com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder subBuilder =
+                  null;
+              if (vulnerableHeaders_ != null) {
+                subBuilder = vulnerableHeaders_.toBuilder();
+              }
+              vulnerableHeaders_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(vulnerableHeaders_);
+                vulnerableHeaders_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -202,36 +251,41 @@ private Finding(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingProto.internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1alpha.FindingProto
+        .internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingProto.internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1alpha.FindingProto
+        .internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1alpha.Finding.class, com.google.cloud.websecurityscanner.v1alpha.Finding.Builder.class);
+            com.google.cloud.websecurityscanner.v1alpha.Finding.class,
+            com.google.cloud.websecurityscanner.v1alpha.Finding.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Types of Findings.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1alpha.Finding.FindingType} */ - public enum FindingType - implements com.google.protobuf.ProtocolMessageEnum { + public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The invalid finding type.
      * 
@@ -240,6 +294,8 @@ public enum FindingType */ FINDING_TYPE_UNSPECIFIED(0), /** + * + * *
      * A page that was served over HTTPS also resources over HTTP. A
      * man-in-the-middle attacker could tamper with the HTTP resource and gain
@@ -251,6 +307,8 @@ public enum FindingType
      */
     MIXED_CONTENT(1),
     /**
+     *
+     *
      * 
      * The version of an included library is known to contain a security issue.
      * The scanner checks the version of library in use against a known list of
@@ -262,6 +320,8 @@ public enum FindingType
      */
     OUTDATED_LIBRARY(2),
     /**
+     *
+     *
      * 
      * This type of vulnerability occurs when the value of a request parameter
      * is reflected at the beginning of the response, for example, in requests
@@ -275,6 +335,8 @@ public enum FindingType
      */
     ROSETTA_FLASH(5),
     /**
+     *
+     *
      * 
      * A cross-site scripting (XSS) bug is found via JavaScript callback. For
      * detailed explanations on XSS, see
@@ -285,6 +347,8 @@ public enum FindingType
      */
     XSS_CALLBACK(3),
     /**
+     *
+     *
      * 
      * A potential cross-site scripting (XSS) bug due to JavaScript breakage.
      * In some circumstances, the application under test might modify the test
@@ -301,6 +365,8 @@ public enum FindingType
      */
     XSS_ERROR(4),
     /**
+     *
+     *
      * 
      * An application appears to be transmitting a password field in clear text.
      * An attacker can eavesdrop network traffic and sniff the password field.
@@ -310,6 +376,8 @@ public enum FindingType
      */
     CLEAR_TEXT_PASSWORD(6),
     /**
+     *
+     *
      * 
      * An application returns sensitive content with an invalid content type,
      * or without an 'X-Content-Type-Options: nosniff' header.
@@ -319,6 +387,8 @@ public enum FindingType
      */
     INVALID_CONTENT_TYPE(7),
     /**
+     *
+     *
      * 
      * A cross-site scripting (XSS) vulnerability in AngularJS module that
      * occurs when a user-provided string is interpolated by Angular.
@@ -328,6 +398,8 @@ public enum FindingType
      */
     XSS_ANGULAR_CALLBACK(8),
     /**
+     *
+     *
      * 
      * A malformed or invalid valued header.
      * 
@@ -336,6 +408,8 @@ public enum FindingType */ INVALID_HEADER(9), /** + * + * *
      * Misspelled security header name.
      * 
@@ -344,6 +418,8 @@ public enum FindingType */ MISSPELLED_SECURITY_HEADER_NAME(10), /** + * + * *
      * Mismatching values in a duplicate security header.
      * 
@@ -355,6 +431,8 @@ public enum FindingType ; /** + * + * *
      * The invalid finding type.
      * 
@@ -363,6 +441,8 @@ public enum FindingType */ public static final int FINDING_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * A page that was served over HTTPS also resources over HTTP. A
      * man-in-the-middle attacker could tamper with the HTTP resource and gain
@@ -374,6 +454,8 @@ public enum FindingType
      */
     public static final int MIXED_CONTENT_VALUE = 1;
     /**
+     *
+     *
      * 
      * The version of an included library is known to contain a security issue.
      * The scanner checks the version of library in use against a known list of
@@ -385,6 +467,8 @@ public enum FindingType
      */
     public static final int OUTDATED_LIBRARY_VALUE = 2;
     /**
+     *
+     *
      * 
      * This type of vulnerability occurs when the value of a request parameter
      * is reflected at the beginning of the response, for example, in requests
@@ -398,6 +482,8 @@ public enum FindingType
      */
     public static final int ROSETTA_FLASH_VALUE = 5;
     /**
+     *
+     *
      * 
      * A cross-site scripting (XSS) bug is found via JavaScript callback. For
      * detailed explanations on XSS, see
@@ -408,6 +494,8 @@ public enum FindingType
      */
     public static final int XSS_CALLBACK_VALUE = 3;
     /**
+     *
+     *
      * 
      * A potential cross-site scripting (XSS) bug due to JavaScript breakage.
      * In some circumstances, the application under test might modify the test
@@ -424,6 +512,8 @@ public enum FindingType
      */
     public static final int XSS_ERROR_VALUE = 4;
     /**
+     *
+     *
      * 
      * An application appears to be transmitting a password field in clear text.
      * An attacker can eavesdrop network traffic and sniff the password field.
@@ -433,6 +523,8 @@ public enum FindingType
      */
     public static final int CLEAR_TEXT_PASSWORD_VALUE = 6;
     /**
+     *
+     *
      * 
      * An application returns sensitive content with an invalid content type,
      * or without an 'X-Content-Type-Options: nosniff' header.
@@ -442,6 +534,8 @@ public enum FindingType
      */
     public static final int INVALID_CONTENT_TYPE_VALUE = 7;
     /**
+     *
+     *
      * 
      * A cross-site scripting (XSS) vulnerability in AngularJS module that
      * occurs when a user-provided string is interpolated by Angular.
@@ -451,6 +545,8 @@ public enum FindingType
      */
     public static final int XSS_ANGULAR_CALLBACK_VALUE = 8;
     /**
+     *
+     *
      * 
      * A malformed or invalid valued header.
      * 
@@ -459,6 +555,8 @@ public enum FindingType */ public static final int INVALID_HEADER_VALUE = 9; /** + * + * *
      * Misspelled security header name.
      * 
@@ -467,6 +565,8 @@ public enum FindingType */ public static final int MISSPELLED_SECURITY_HEADER_NAME_VALUE = 10; /** + * + * *
      * Mismatching values in a duplicate security header.
      * 
@@ -475,7 +575,6 @@ public enum FindingType */ public static final int MISMATCHING_SECURITY_HEADER_VALUES_VALUE = 11; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -500,58 +599,69 @@ public static FindingType valueOf(int value) { */ public static FindingType forNumber(int value) { switch (value) { - case 0: return FINDING_TYPE_UNSPECIFIED; - case 1: return MIXED_CONTENT; - case 2: return OUTDATED_LIBRARY; - case 5: return ROSETTA_FLASH; - case 3: return XSS_CALLBACK; - case 4: return XSS_ERROR; - case 6: return CLEAR_TEXT_PASSWORD; - case 7: return INVALID_CONTENT_TYPE; - case 8: return XSS_ANGULAR_CALLBACK; - case 9: return INVALID_HEADER; - case 10: return MISSPELLED_SECURITY_HEADER_NAME; - case 11: return MISMATCHING_SECURITY_HEADER_VALUES; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return FINDING_TYPE_UNSPECIFIED; + case 1: + return MIXED_CONTENT; + case 2: + return OUTDATED_LIBRARY; + case 5: + return ROSETTA_FLASH; + case 3: + return XSS_CALLBACK; + case 4: + return XSS_ERROR; + case 6: + return CLEAR_TEXT_PASSWORD; + case 7: + return INVALID_CONTENT_TYPE; + case 8: + return XSS_ANGULAR_CALLBACK; + case 9: + return INVALID_HEADER; + case 10: + return MISSPELLED_SECURITY_HEADER_NAME; + case 11: + return MISMATCHING_SECURITY_HEADER_VALUES; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - FindingType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FindingType findValueByNumber(int number) { - return FindingType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FindingType findValueByNumber(int number) { + return FindingType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.Finding.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.Finding.getDescriptor() + .getEnumTypes() + .get(0); } private static final FindingType[] VALUES = values(); - public static FindingType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static FindingType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -571,6 +681,8 @@ private FindingType(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -578,6 +690,7 @@ private FindingType(int value) {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -586,14 +699,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -601,16 +715,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -621,39 +734,53 @@ public java.lang.String getName() { public static final int FINDING_TYPE_FIELD_NUMBER = 2; private int findingType_; /** + * + * *
    * The type of the Finding.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; + * * @return The enum numeric value on the wire for findingType. */ - @java.lang.Override public int getFindingTypeValue() { + @java.lang.Override + public int getFindingTypeValue() { return findingType_; } /** + * + * *
    * The type of the Finding.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; + * * @return The findingType. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); - return result == null ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); + return result == null + ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED + : result; } public static final int HTTP_METHOD_FIELD_NUMBER = 3; private volatile java.lang.Object httpMethod_; /** + * + * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; + * * @return The httpMethod. */ @java.lang.Override @@ -662,30 +789,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** + * + * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; + * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString - getHttpMethodBytes() { + public com.google.protobuf.ByteString getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -696,12 +823,15 @@ public java.lang.String getHttpMethod() { public static final int FUZZED_URL_FIELD_NUMBER = 4; private volatile java.lang.Object fuzzedUrl_; /** + * + * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; + * * @return The fuzzedUrl. */ @java.lang.Override @@ -710,30 +840,30 @@ public java.lang.String getFuzzedUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; } } /** + * + * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; + * * @return The bytes for fuzzedUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getFuzzedUrlBytes() { + public com.google.protobuf.ByteString getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -744,11 +874,14 @@ public java.lang.String getFuzzedUrl() { public static final int BODY_FIELD_NUMBER = 5; private volatile java.lang.Object body_; /** + * + * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; + * * @return The body. */ @java.lang.Override @@ -757,29 +890,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** + * + * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; + * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString - getBodyBytes() { + public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); body_ = b; return b; } else { @@ -790,11 +923,14 @@ public java.lang.String getBody() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** + * + * *
    * The description of the vulnerability.
    * 
* * string description = 6; + * * @return The description. */ @java.lang.Override @@ -803,29 +939,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * The description of the vulnerability.
    * 
* * string description = 6; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -836,12 +972,15 @@ public java.lang.String getDescription() { public static final int REPRODUCTION_URL_FIELD_NUMBER = 7; private volatile java.lang.Object reproductionUrl_; /** + * + * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; + * * @return The reproductionUrl. */ @java.lang.Override @@ -850,30 +989,30 @@ public java.lang.String getReproductionUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; } } /** + * + * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; + * * @return The bytes for reproductionUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getReproductionUrlBytes() { + public com.google.protobuf.ByteString getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -884,12 +1023,15 @@ public java.lang.String getReproductionUrl() { public static final int FRAME_URL_FIELD_NUMBER = 8; private volatile java.lang.Object frameUrl_; /** + * + * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; + * * @return The frameUrl. */ @java.lang.Override @@ -898,30 +1040,30 @@ public java.lang.String getFrameUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; } } /** + * + * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; + * * @return The bytes for frameUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getFrameUrlBytes() { + public com.google.protobuf.ByteString getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -932,11 +1074,14 @@ public java.lang.String getFrameUrl() { public static final int FINAL_URL_FIELD_NUMBER = 9; private volatile java.lang.Object finalUrl_; /** + * + * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; + * * @return The finalUrl. */ @java.lang.Override @@ -945,29 +1090,29 @@ public java.lang.String getFinalUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; } } /** + * + * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; + * * @return The bytes for finalUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getFinalUrlBytes() { + public com.google.protobuf.ByteString getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -978,12 +1123,15 @@ public java.lang.String getFinalUrl() { public static final int TRACKING_ID_FIELD_NUMBER = 10; private volatile java.lang.Object trackingId_; /** + * + * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; + * * @return The trackingId. */ @java.lang.Override @@ -992,30 +1140,30 @@ public java.lang.String getTrackingId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; } } /** + * + * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; + * * @return The bytes for trackingId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTrackingIdBytes() { + public com.google.protobuf.ByteString getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); trackingId_ = b; return b; } else { @@ -1026,11 +1174,14 @@ public java.lang.String getTrackingId() { public static final int OUTDATED_LIBRARY_FIELD_NUMBER = 11; private com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdatedLibrary_; /** + * + * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; + * * @return Whether the outdatedLibrary field is set. */ @java.lang.Override @@ -1038,18 +1189,25 @@ public boolean hasOutdatedLibrary() { return outdatedLibrary_ != null; } /** + * + * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; + * * @return The outdatedLibrary. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getOutdatedLibrary() { - return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; + return outdatedLibrary_ == null + ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() + : outdatedLibrary_; } /** + * + * *
    * An addon containing information about outdated libraries.
    * 
@@ -1057,19 +1215,24 @@ public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getOutdatedLi * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder + getOutdatedLibraryOrBuilder() { return getOutdatedLibrary(); } public static final int VIOLATING_RESOURCE_FIELD_NUMBER = 12; private com.google.cloud.websecurityscanner.v1alpha.ViolatingResource violatingResource_; /** + * + * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * + * * @return Whether the violatingResource field is set. */ @java.lang.Override @@ -1077,39 +1240,53 @@ public boolean hasViolatingResource() { return violatingResource_ != null; } /** + * + * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * + * * @return The violatingResource. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getViolatingResource() { - return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() : violatingResource_; + return violatingResource_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() + : violatingResource_; } /** + * + * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder + getViolatingResourceOrBuilder() { return getViolatingResource(); } public static final int VULNERABLE_HEADERS_FIELD_NUMBER = 15; private com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerableHeaders_; /** + * + * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * + * * @return Whether the vulnerableHeaders field is set. */ @java.lang.Override @@ -1117,38 +1294,52 @@ public boolean hasVulnerableHeaders() { return vulnerableHeaders_ != null; } /** + * + * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * + * * @return The vulnerableHeaders. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getVulnerableHeaders() { - return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; + return vulnerableHeaders_ == null + ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() + : vulnerableHeaders_; } /** + * + * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder + getVulnerableHeadersOrBuilder() { return getVulnerableHeaders(); } public static final int VULNERABLE_PARAMETERS_FIELD_NUMBER = 13; private com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerableParameters_; /** + * + * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * + * * @return Whether the vulnerableParameters field is set. */ @java.lang.Override @@ -1156,39 +1347,53 @@ public boolean hasVulnerableParameters() { return vulnerableParameters_ != null; } /** + * + * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * + * * @return The vulnerableParameters. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getVulnerableParameters() { - return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters + getVulnerableParameters() { + return vulnerableParameters_ == null + ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() + : vulnerableParameters_; } /** + * + * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder + getVulnerableParametersOrBuilder() { return getVulnerableParameters(); } public static final int XSS_FIELD_NUMBER = 14; private com.google.cloud.websecurityscanner.v1alpha.Xss xss_; /** + * + * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; + * * @return Whether the xss field is set. */ @java.lang.Override @@ -1196,18 +1401,25 @@ public boolean hasXss() { return xss_ != null; } /** + * + * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; + * * @return The xss. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Xss getXss() { - return xss_ == null ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() : xss_; + return xss_ == null + ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() + : xss_; } /** + * + * *
    * An addon containing information reported for an XSS, if any.
    * 
@@ -1220,6 +1432,7 @@ public com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder getXssOrBuilder( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1231,12 +1444,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (findingType_ != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED.getNumber()) { + if (findingType_ + != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, findingType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpMethod_)) { @@ -1290,9 +1504,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (findingType_ != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, findingType_); + if (findingType_ + != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, findingType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpMethod_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, httpMethod_); @@ -1319,24 +1534,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, trackingId_); } if (outdatedLibrary_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getOutdatedLibrary()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getOutdatedLibrary()); } if (violatingResource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getViolatingResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getViolatingResource()); } if (vulnerableParameters_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getVulnerableParameters()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(13, getVulnerableParameters()); } if (xss_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getXss()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getXss()); } if (vulnerableHeaders_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getVulnerableHeaders()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getVulnerableHeaders()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1346,56 +1557,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.Finding)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.Finding other = (com.google.cloud.websecurityscanner.v1alpha.Finding) obj; + com.google.cloud.websecurityscanner.v1alpha.Finding other = + (com.google.cloud.websecurityscanner.v1alpha.Finding) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (findingType_ != other.findingType_) return false; - if (!getHttpMethod() - .equals(other.getHttpMethod())) return false; - if (!getFuzzedUrl() - .equals(other.getFuzzedUrl())) return false; - if (!getBody() - .equals(other.getBody())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getReproductionUrl() - .equals(other.getReproductionUrl())) return false; - if (!getFrameUrl() - .equals(other.getFrameUrl())) return false; - if (!getFinalUrl() - .equals(other.getFinalUrl())) return false; - if (!getTrackingId() - .equals(other.getTrackingId())) return false; + if (!getHttpMethod().equals(other.getHttpMethod())) return false; + if (!getFuzzedUrl().equals(other.getFuzzedUrl())) return false; + if (!getBody().equals(other.getBody())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getReproductionUrl().equals(other.getReproductionUrl())) return false; + if (!getFrameUrl().equals(other.getFrameUrl())) return false; + if (!getFinalUrl().equals(other.getFinalUrl())) return false; + if (!getTrackingId().equals(other.getTrackingId())) return false; if (hasOutdatedLibrary() != other.hasOutdatedLibrary()) return false; if (hasOutdatedLibrary()) { - if (!getOutdatedLibrary() - .equals(other.getOutdatedLibrary())) return false; + if (!getOutdatedLibrary().equals(other.getOutdatedLibrary())) return false; } if (hasViolatingResource() != other.hasViolatingResource()) return false; if (hasViolatingResource()) { - if (!getViolatingResource() - .equals(other.getViolatingResource())) return false; + if (!getViolatingResource().equals(other.getViolatingResource())) return false; } if (hasVulnerableHeaders() != other.hasVulnerableHeaders()) return false; if (hasVulnerableHeaders()) { - if (!getVulnerableHeaders() - .equals(other.getVulnerableHeaders())) return false; + if (!getVulnerableHeaders().equals(other.getVulnerableHeaders())) return false; } if (hasVulnerableParameters() != other.hasVulnerableParameters()) return false; if (hasVulnerableParameters()) { - if (!getVulnerableParameters() - .equals(other.getVulnerableParameters())) return false; + if (!getVulnerableParameters().equals(other.getVulnerableParameters())) return false; } if (hasXss() != other.hasXss()) return false; if (hasXss()) { - if (!getXss() - .equals(other.getXss())) return false; + if (!getXss().equals(other.getXss())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1454,96 +1652,103 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.Finding parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.Finding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.Finding parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.Finding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.Finding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A Finding resource represents a vulnerability instance identified during a
    * ScanRun.
@@ -1551,21 +1756,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.Finding}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.Finding)
       com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingProto.internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingProto
+          .internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingProto.internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1alpha.FindingProto
+          .internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1alpha.Finding.class, com.google.cloud.websecurityscanner.v1alpha.Finding.Builder.class);
+              com.google.cloud.websecurityscanner.v1alpha.Finding.class,
+              com.google.cloud.websecurityscanner.v1alpha.Finding.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1alpha.Finding.newBuilder()
@@ -1573,16 +1780,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1640,9 +1846,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingProto.internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingProto
+          .internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor;
     }
 
     @java.lang.Override
@@ -1661,7 +1867,8 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1alpha.Finding buildPartial() {
-      com.google.cloud.websecurityscanner.v1alpha.Finding result = new com.google.cloud.websecurityscanner.v1alpha.Finding(this);
+      com.google.cloud.websecurityscanner.v1alpha.Finding result =
+          new com.google.cloud.websecurityscanner.v1alpha.Finding(this);
       result.name_ = name_;
       result.findingType_ = findingType_;
       result.httpMethod_ = httpMethod_;
@@ -1705,38 +1912,39 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1alpha.Finding) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.Finding)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.Finding) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1744,7 +1952,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.Finding other) {
-      if (other == com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance()) return this;
+      if (other == com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1818,7 +2027,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.Finding) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1alpha.Finding) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1830,6 +2040,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1837,13 +2049,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1852,6 +2064,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1859,15 +2073,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1875,6 +2088,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1882,20 +2097,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1903,15 +2120,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1919,16 +2139,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1936,73 +2156,93 @@ public Builder setNameBytes( private int findingType_ = 0; /** + * + * *
      * The type of the Finding.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; + * * @return The enum numeric value on the wire for findingType. */ - @java.lang.Override public int getFindingTypeValue() { + @java.lang.Override + public int getFindingTypeValue() { return findingType_; } /** + * + * *
      * The type of the Finding.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; + * * @param value The enum numeric value on the wire for findingType to set. * @return This builder for chaining. */ public Builder setFindingTypeValue(int value) { - + findingType_ = value; onChanged(); return this; } /** + * + * *
      * The type of the Finding.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; + * * @return The findingType. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); - return result == null ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); + return result == null + ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED + : result; } /** + * + * *
      * The type of the Finding.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; + * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType(com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType value) { + public Builder setFindingType( + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType value) { if (value == null) { throw new NullPointerException(); } - + findingType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of the Finding.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; + * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = 0; onChanged(); return this; @@ -2010,19 +2250,21 @@ public Builder clearFindingType() { private java.lang.Object httpMethod_ = ""; /** + * + * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; + * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -2031,21 +2273,22 @@ public java.lang.String getHttpMethod() { } } /** + * + * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; + * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString - getHttpMethodBytes() { + public com.google.protobuf.ByteString getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -2053,57 +2296,64 @@ public java.lang.String getHttpMethod() { } } /** + * + * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; + * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod( - java.lang.String value) { + public Builder setHttpMethod(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** + * + * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; + * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** + * + * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; + * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes( - com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -2111,19 +2361,21 @@ public Builder setHttpMethodBytes( private java.lang.Object fuzzedUrl_ = ""; /** + * + * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; + * * @return The fuzzedUrl. */ public java.lang.String getFuzzedUrl() { java.lang.Object ref = fuzzedUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; @@ -2132,21 +2384,22 @@ public java.lang.String getFuzzedUrl() { } } /** + * + * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; + * * @return The bytes for fuzzedUrl. */ - public com.google.protobuf.ByteString - getFuzzedUrlBytes() { + public com.google.protobuf.ByteString getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -2154,57 +2407,64 @@ public java.lang.String getFuzzedUrl() { } } /** + * + * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; + * * @param value The fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrl( - java.lang.String value) { + public Builder setFuzzedUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fuzzedUrl_ = value; onChanged(); return this; } /** + * + * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; + * * @return This builder for chaining. */ public Builder clearFuzzedUrl() { - + fuzzedUrl_ = getDefaultInstance().getFuzzedUrl(); onChanged(); return this; } /** + * + * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; + * * @param value The bytes for fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fuzzedUrl_ = value; onChanged(); return this; @@ -2212,18 +2472,20 @@ public Builder setFuzzedUrlBytes( private java.lang.Object body_ = ""; /** + * + * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; + * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -2232,20 +2494,21 @@ public java.lang.String getBody() { } } /** + * + * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; + * * @return The bytes for body. */ - public com.google.protobuf.ByteString - getBodyBytes() { + public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); body_ = b; return b; } else { @@ -2253,54 +2516,61 @@ public java.lang.String getBody() { } } /** + * + * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; + * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody( - java.lang.String value) { + public Builder setBody(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** + * + * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; + * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** + * + * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; + * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes( - com.google.protobuf.ByteString value) { + public Builder setBodyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; @@ -2308,18 +2578,20 @@ public Builder setBodyBytes( private java.lang.Object description_ = ""; /** + * + * *
      * The description of the vulnerability.
      * 
* * string description = 6; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2328,20 +2600,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the vulnerability.
      * 
* * string description = 6; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -2349,54 +2622,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the vulnerability.
      * 
* * string description = 6; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * The description of the vulnerability.
      * 
* * string description = 6; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * The description of the vulnerability.
      * 
* * string description = 6; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2404,19 +2684,21 @@ public Builder setDescriptionBytes( private java.lang.Object reproductionUrl_ = ""; /** + * + * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; + * * @return The reproductionUrl. */ public java.lang.String getReproductionUrl() { java.lang.Object ref = reproductionUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; @@ -2425,21 +2707,22 @@ public java.lang.String getReproductionUrl() { } } /** + * + * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; + * * @return The bytes for reproductionUrl. */ - public com.google.protobuf.ByteString - getReproductionUrlBytes() { + public com.google.protobuf.ByteString getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -2447,57 +2730,64 @@ public java.lang.String getReproductionUrl() { } } /** + * + * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; + * * @param value The reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrl( - java.lang.String value) { + public Builder setReproductionUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reproductionUrl_ = value; onChanged(); return this; } /** + * + * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; + * * @return This builder for chaining. */ public Builder clearReproductionUrl() { - + reproductionUrl_ = getDefaultInstance().getReproductionUrl(); onChanged(); return this; } /** + * + * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; + * * @param value The bytes for reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reproductionUrl_ = value; onChanged(); return this; @@ -2505,19 +2795,21 @@ public Builder setReproductionUrlBytes( private java.lang.Object frameUrl_ = ""; /** + * + * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; + * * @return The frameUrl. */ public java.lang.String getFrameUrl() { java.lang.Object ref = frameUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; @@ -2526,21 +2818,22 @@ public java.lang.String getFrameUrl() { } } /** + * + * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; + * * @return The bytes for frameUrl. */ - public com.google.protobuf.ByteString - getFrameUrlBytes() { + public com.google.protobuf.ByteString getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -2548,57 +2841,64 @@ public java.lang.String getFrameUrl() { } } /** + * + * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; + * * @param value The frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrl( - java.lang.String value) { + public Builder setFrameUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + frameUrl_ = value; onChanged(); return this; } /** + * + * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; + * * @return This builder for chaining. */ public Builder clearFrameUrl() { - + frameUrl_ = getDefaultInstance().getFrameUrl(); onChanged(); return this; } /** + * + * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; + * * @param value The bytes for frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + frameUrl_ = value; onChanged(); return this; @@ -2606,18 +2906,20 @@ public Builder setFrameUrlBytes( private java.lang.Object finalUrl_ = ""; /** + * + * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; + * * @return The finalUrl. */ public java.lang.String getFinalUrl() { java.lang.Object ref = finalUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; @@ -2626,20 +2928,21 @@ public java.lang.String getFinalUrl() { } } /** + * + * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; + * * @return The bytes for finalUrl. */ - public com.google.protobuf.ByteString - getFinalUrlBytes() { + public com.google.protobuf.ByteString getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -2647,54 +2950,61 @@ public java.lang.String getFinalUrl() { } } /** + * + * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; + * * @param value The finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrl( - java.lang.String value) { + public Builder setFinalUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + finalUrl_ = value; onChanged(); return this; } /** + * + * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; + * * @return This builder for chaining. */ public Builder clearFinalUrl() { - + finalUrl_ = getDefaultInstance().getFinalUrl(); onChanged(); return this; } /** + * + * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; + * * @param value The bytes for finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + finalUrl_ = value; onChanged(); return this; @@ -2702,19 +3012,21 @@ public Builder setFinalUrlBytes( private java.lang.Object trackingId_ = ""; /** + * + * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; + * * @return The trackingId. */ public java.lang.String getTrackingId() { java.lang.Object ref = trackingId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; @@ -2723,21 +3035,22 @@ public java.lang.String getTrackingId() { } } /** + * + * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; + * * @return The bytes for trackingId. */ - public com.google.protobuf.ByteString - getTrackingIdBytes() { + public com.google.protobuf.ByteString getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); trackingId_ = b; return b; } else { @@ -2745,57 +3058,64 @@ public java.lang.String getTrackingId() { } } /** + * + * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; + * * @param value The trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingId( - java.lang.String value) { + public Builder setTrackingId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trackingId_ = value; onChanged(); return this; } /** + * + * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; + * * @return This builder for chaining. */ public Builder clearTrackingId() { - + trackingId_ = getDefaultInstance().getTrackingId(); onChanged(); return this; } /** + * + * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; + * * @param value The bytes for trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingIdBytes( - com.google.protobuf.ByteString value) { + public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trackingId_ = value; onChanged(); return this; @@ -2803,41 +3123,55 @@ public Builder setTrackingIdBytes( private com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdatedLibrary_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder> outdatedLibraryBuilder_; + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder> + outdatedLibraryBuilder_; /** + * + * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; + * * @return Whether the outdatedLibrary field is set. */ public boolean hasOutdatedLibrary() { return outdatedLibraryBuilder_ != null || outdatedLibrary_ != null; } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; + * * @return The outdatedLibrary. */ public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getOutdatedLibrary() { if (outdatedLibraryBuilder_ == null) { - return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; + return outdatedLibrary_ == null + ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() + : outdatedLibrary_; } else { return outdatedLibraryBuilder_.getMessage(); } } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ - public Builder setOutdatedLibrary(com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary value) { + public Builder setOutdatedLibrary( + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2851,6 +3185,8 @@ public Builder setOutdatedLibrary(com.google.cloud.websecurityscanner.v1alpha.Ou return this; } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
@@ -2869,17 +3205,23 @@ public Builder setOutdatedLibrary( return this; } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ - public Builder mergeOutdatedLibrary(com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary value) { + public Builder mergeOutdatedLibrary( + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (outdatedLibrary_ != null) { outdatedLibrary_ = - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.newBuilder(outdatedLibrary_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.newBuilder( + outdatedLibrary_) + .mergeFrom(value) + .buildPartial(); } else { outdatedLibrary_ = value; } @@ -2891,6 +3233,8 @@ public Builder mergeOutdatedLibrary(com.google.cloud.websecurityscanner.v1alpha. return this; } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
@@ -2909,33 +3253,42 @@ public Builder clearOutdatedLibrary() { return this; } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder getOutdatedLibraryBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder + getOutdatedLibraryBuilder() { + onChanged(); return getOutdatedLibraryFieldBuilder().getBuilder(); } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder + getOutdatedLibraryOrBuilder() { if (outdatedLibraryBuilder_ != null) { return outdatedLibraryBuilder_.getMessageOrBuilder(); } else { - return outdatedLibrary_ == null ? - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; + return outdatedLibrary_ == null + ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() + : outdatedLibrary_; } } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
@@ -2943,14 +3296,17 @@ public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder getO * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder> getOutdatedLibraryFieldBuilder() { if (outdatedLibraryBuilder_ == null) { - outdatedLibraryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder>( - getOutdatedLibrary(), - getParentForChildren(), - isClean()); + outdatedLibraryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary, + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder, + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder>( + getOutdatedLibrary(), getParentForChildren(), isClean()); outdatedLibrary_ = null; } return outdatedLibraryBuilder_; @@ -2958,44 +3314,61 @@ public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder getO private com.google.cloud.websecurityscanner.v1alpha.ViolatingResource violatingResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder> violatingResourceBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, + com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder> + violatingResourceBuilder_; /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * + * * @return Whether the violatingResource field is set. */ public boolean hasViolatingResource() { return violatingResourceBuilder_ != null || violatingResource_ != null; } /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * + * * @return The violatingResource. */ public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getViolatingResource() { if (violatingResourceBuilder_ == null) { - return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() : violatingResource_; + return violatingResource_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() + : violatingResource_; } else { return violatingResourceBuilder_.getMessage(); } } /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * */ - public Builder setViolatingResource(com.google.cloud.websecurityscanner.v1alpha.ViolatingResource value) { + public Builder setViolatingResource( + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource value) { if (violatingResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3009,12 +3382,15 @@ public Builder setViolatingResource(com.google.cloud.websecurityscanner.v1alpha. return this; } /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * */ public Builder setViolatingResource( com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder builderForValue) { @@ -3028,18 +3404,25 @@ public Builder setViolatingResource( return this; } /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * */ - public Builder mergeViolatingResource(com.google.cloud.websecurityscanner.v1alpha.ViolatingResource value) { + public Builder mergeViolatingResource( + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource value) { if (violatingResourceBuilder_ == null) { if (violatingResource_ != null) { violatingResource_ = - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.newBuilder(violatingResource_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.newBuilder( + violatingResource_) + .mergeFrom(value) + .buildPartial(); } else { violatingResource_ = value; } @@ -3051,12 +3434,15 @@ public Builder mergeViolatingResource(com.google.cloud.websecurityscanner.v1alph return this; } /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * */ public Builder clearViolatingResource() { if (violatingResourceBuilder_ == null) { @@ -3070,51 +3456,66 @@ public Builder clearViolatingResource() { return this; } /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * */ - public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder getViolatingResourceBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder + getViolatingResourceBuilder() { + onChanged(); return getViolatingResourceFieldBuilder().getBuilder(); } /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * */ - public com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder + getViolatingResourceOrBuilder() { if (violatingResourceBuilder_ != null) { return violatingResourceBuilder_.getMessageOrBuilder(); } else { - return violatingResource_ == null ? - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() : violatingResource_; + return violatingResource_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() + : violatingResource_; } } /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, + com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder> getViolatingResourceFieldBuilder() { if (violatingResourceBuilder_ == null) { - violatingResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder>( - getViolatingResource(), - getParentForChildren(), - isClean()); + violatingResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource, + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder, + com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder>( + getViolatingResource(), getParentForChildren(), isClean()); violatingResource_ = null; } return violatingResourceBuilder_; @@ -3122,41 +3523,58 @@ public com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder ge private com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerableHeaders_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder> vulnerableHeadersBuilder_; + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder> + vulnerableHeadersBuilder_; /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * + * * @return Whether the vulnerableHeaders field is set. */ public boolean hasVulnerableHeaders() { return vulnerableHeadersBuilder_ != null || vulnerableHeaders_ != null; } /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * + * * @return The vulnerableHeaders. */ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getVulnerableHeaders() { if (vulnerableHeadersBuilder_ == null) { - return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; + return vulnerableHeaders_ == null + ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() + : vulnerableHeaders_; } else { return vulnerableHeadersBuilder_.getMessage(); } } /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * */ - public Builder setVulnerableHeaders(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders value) { + public Builder setVulnerableHeaders( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3170,11 +3588,14 @@ public Builder setVulnerableHeaders(com.google.cloud.websecurityscanner.v1alpha. return this; } /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * */ public Builder setVulnerableHeaders( com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder builderForValue) { @@ -3188,17 +3609,24 @@ public Builder setVulnerableHeaders( return this; } /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * */ - public Builder mergeVulnerableHeaders(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders value) { + public Builder mergeVulnerableHeaders( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (vulnerableHeaders_ != null) { vulnerableHeaders_ = - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.newBuilder(vulnerableHeaders_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.newBuilder( + vulnerableHeaders_) + .mergeFrom(value) + .buildPartial(); } else { vulnerableHeaders_ = value; } @@ -3210,11 +3638,14 @@ public Builder mergeVulnerableHeaders(com.google.cloud.websecurityscanner.v1alph return this; } /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * */ public Builder clearVulnerableHeaders() { if (vulnerableHeadersBuilder_ == null) { @@ -3228,48 +3659,63 @@ public Builder clearVulnerableHeaders() { return this; } /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder getVulnerableHeadersBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder + getVulnerableHeadersBuilder() { + onChanged(); return getVulnerableHeadersFieldBuilder().getBuilder(); } /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder + getVulnerableHeadersOrBuilder() { if (vulnerableHeadersBuilder_ != null) { return vulnerableHeadersBuilder_.getMessageOrBuilder(); } else { - return vulnerableHeaders_ == null ? - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; + return vulnerableHeaders_ == null + ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() + : vulnerableHeaders_; } } /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder> getVulnerableHeadersFieldBuilder() { if (vulnerableHeadersBuilder_ == null) { - vulnerableHeadersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder>( - getVulnerableHeaders(), - getParentForChildren(), - isClean()); + vulnerableHeadersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder>( + getVulnerableHeaders(), getParentForChildren(), isClean()); vulnerableHeaders_ = null; } return vulnerableHeadersBuilder_; @@ -3277,44 +3723,65 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder ge private com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerableParameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder> vulnerableParametersBuilder_; + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, + com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder> + vulnerableParametersBuilder_; /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * + * * @return Whether the vulnerableParameters field is set. */ public boolean hasVulnerableParameters() { return vulnerableParametersBuilder_ != null || vulnerableParameters_ != null; } /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * + * * @return The vulnerableParameters. */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getVulnerableParameters() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters + getVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { - return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; + return vulnerableParameters_ == null + ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() + : vulnerableParameters_; } else { return vulnerableParametersBuilder_.getMessage(); } } /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * */ - public Builder setVulnerableParameters(com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters value) { + public Builder setVulnerableParameters( + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3328,12 +3795,16 @@ public Builder setVulnerableParameters(com.google.cloud.websecurityscanner.v1alp return this; } /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * */ public Builder setVulnerableParameters( com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder builderForValue) { @@ -3347,18 +3818,26 @@ public Builder setVulnerableParameters( return this; } /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * */ - public Builder mergeVulnerableParameters(com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters value) { + public Builder mergeVulnerableParameters( + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (vulnerableParameters_ != null) { vulnerableParameters_ = - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.newBuilder(vulnerableParameters_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.newBuilder( + vulnerableParameters_) + .mergeFrom(value) + .buildPartial(); } else { vulnerableParameters_ = value; } @@ -3370,12 +3849,16 @@ public Builder mergeVulnerableParameters(com.google.cloud.websecurityscanner.v1a return this; } /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * */ public Builder clearVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { @@ -3389,51 +3872,69 @@ public Builder clearVulnerableParameters() { return this; } /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder getVulnerableParametersBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder + getVulnerableParametersBuilder() { + onChanged(); return getVulnerableParametersFieldBuilder().getBuilder(); } /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder + getVulnerableParametersOrBuilder() { if (vulnerableParametersBuilder_ != null) { return vulnerableParametersBuilder_.getMessageOrBuilder(); } else { - return vulnerableParameters_ == null ? - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; + return vulnerableParameters_ == null + ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() + : vulnerableParameters_; } } /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, + com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder> getVulnerableParametersFieldBuilder() { if (vulnerableParametersBuilder_ == null) { - vulnerableParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder>( - getVulnerableParameters(), - getParentForChildren(), - isClean()); + vulnerableParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters, + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder, + com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder>( + getVulnerableParameters(), getParentForChildren(), isClean()); vulnerableParameters_ = null; } return vulnerableParametersBuilder_; @@ -3441,34 +3942,47 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder private com.google.cloud.websecurityscanner.v1alpha.Xss xss_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Xss, com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder> xssBuilder_; + com.google.cloud.websecurityscanner.v1alpha.Xss, + com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, + com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder> + xssBuilder_; /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; + * * @return Whether the xss field is set. */ public boolean hasXss() { return xssBuilder_ != null || xss_ != null; } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; + * * @return The xss. */ public com.google.cloud.websecurityscanner.v1alpha.Xss getXss() { if (xssBuilder_ == null) { - return xss_ == null ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() : xss_; + return xss_ == null + ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() + : xss_; } else { return xssBuilder_.getMessage(); } } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3489,14 +4003,15 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1alpha.Xss value) { return this; } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; */ - public Builder setXss( - com.google.cloud.websecurityscanner.v1alpha.Xss.Builder builderForValue) { + public Builder setXss(com.google.cloud.websecurityscanner.v1alpha.Xss.Builder builderForValue) { if (xssBuilder_ == null) { xss_ = builderForValue.build(); onChanged(); @@ -3507,6 +4022,8 @@ public Builder setXss( return this; } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3517,7 +4034,9 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1alpha.Xss value) { if (xssBuilder_ == null) { if (xss_ != null) { xss_ = - com.google.cloud.websecurityscanner.v1alpha.Xss.newBuilder(xss_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.Xss.newBuilder(xss_) + .mergeFrom(value) + .buildPartial(); } else { xss_ = value; } @@ -3529,6 +4048,8 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1alpha.Xss value) { return this; } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3547,6 +4068,8 @@ public Builder clearXss() { return this; } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3554,11 +4077,13 @@ public Builder clearXss() { * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; */ public com.google.cloud.websecurityscanner.v1alpha.Xss.Builder getXssBuilder() { - + onChanged(); return getXssFieldBuilder().getBuilder(); } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3569,11 +4094,14 @@ public com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder getXssOrBuilder( if (xssBuilder_ != null) { return xssBuilder_.getMessageOrBuilder(); } else { - return xss_ == null ? - com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() : xss_; + return xss_ == null + ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() + : xss_; } } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3581,21 +4109,24 @@ public com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder getXssOrBuilder( * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Xss, com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.Xss, + com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, + com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder> getXssFieldBuilder() { if (xssBuilder_ == null) { - xssBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Xss, com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder>( - getXss(), - getParentForChildren(), - isClean()); + xssBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.Xss, + com.google.cloud.websecurityscanner.v1alpha.Xss.Builder, + com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder>( + getXss(), getParentForChildren(), isClean()); xss_ = null; } return xssBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3605,12 +4136,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.Finding) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.Finding) private static final com.google.cloud.websecurityscanner.v1alpha.Finding DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.Finding(); } @@ -3619,16 +4150,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.Finding getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Finding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Finding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Finding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3643,6 +4174,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java new file mode 100644 index 00000000..52d187d3 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java @@ -0,0 +1,139 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class FindingAddonProto { + private FindingAddonProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n;google/cloud/websecurityscanner/v1alph" + + "a/finding_addon.proto\022\'google.cloud.webs" + + "ecurityscanner.v1alpha\"Q\n\017OutdatedLibrar" + + "y\022\024\n\014library_name\030\001 \001(\t\022\017\n\007version\030\002 \001(\t" + + "\022\027\n\017learn_more_urls\030\003 \003(\t\"?\n\021ViolatingRe" + + "source\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resource" + + "_url\030\002 \001(\t\"/\n\024VulnerableParameters\022\027\n\017pa" + + "rameter_names\030\001 \003(\t\"\352\001\n\021VulnerableHeader" + + "s\022R\n\007headers\030\001 \003(\0132A.google.cloud.websec" + + "urityscanner.v1alpha.VulnerableHeaders.H" + + "eader\022Z\n\017missing_headers\030\002 \003(\0132A.google." + + "cloud.websecurityscanner.v1alpha.Vulnera" + + "bleHeaders.Header\032%\n\006Header\022\014\n\004name\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t\"2\n\003Xss\022\024\n\014stack_traces\030" + + "\001 \003(\t\022\025\n\rerror_message\030\002 \001(\tB\235\001\n+com.goo" + + "gle.cloud.websecurityscanner.v1alphaB\021Fi" + + "ndingAddonProtoP\001ZYgoogle.golang.org/gen" + + "proto/googleapis/cloud/websecurityscanne" + + "r/v1alpha;websecurityscannerb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor, + new java.lang.String[] { + "LibraryName", "Version", "LearnMoreUrls", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor, + new java.lang.String[] { + "ContentType", "ResourceUrl", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor, + new java.lang.String[] { + "ParameterNames", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor, + new java.lang.String[] { + "Headers", "MissingHeaders", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor = + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor, + new java.lang.String[] { + "Name", "Value", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor, + new java.lang.String[] { + "StackTraces", "ErrorMessage", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java similarity index 100% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java similarity index 80% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java index fda89e42..a66e52d5 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface FindingOrBuilder extends +public interface FindingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.Finding) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -15,10 +33,13 @@ public interface FindingOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -26,333 +47,432 @@ public interface FindingOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The type of the Finding.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; + * * @return The enum numeric value on the wire for findingType. */ int getFindingTypeValue(); /** + * + * *
    * The type of the Finding.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; + * * @return The findingType. */ com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType(); /** + * + * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; + * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** + * + * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; + * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString - getHttpMethodBytes(); + com.google.protobuf.ByteString getHttpMethodBytes(); /** + * + * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; + * * @return The fuzzedUrl. */ java.lang.String getFuzzedUrl(); /** + * + * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; + * * @return The bytes for fuzzedUrl. */ - com.google.protobuf.ByteString - getFuzzedUrlBytes(); + com.google.protobuf.ByteString getFuzzedUrlBytes(); /** + * + * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; + * * @return The body. */ java.lang.String getBody(); /** + * + * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; + * * @return The bytes for body. */ - com.google.protobuf.ByteString - getBodyBytes(); + com.google.protobuf.ByteString getBodyBytes(); /** + * + * *
    * The description of the vulnerability.
    * 
* * string description = 6; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * The description of the vulnerability.
    * 
* * string description = 6; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; + * * @return The reproductionUrl. */ java.lang.String getReproductionUrl(); /** + * + * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; + * * @return The bytes for reproductionUrl. */ - com.google.protobuf.ByteString - getReproductionUrlBytes(); + com.google.protobuf.ByteString getReproductionUrlBytes(); /** + * + * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; + * * @return The frameUrl. */ java.lang.String getFrameUrl(); /** + * + * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; + * * @return The bytes for frameUrl. */ - com.google.protobuf.ByteString - getFrameUrlBytes(); + com.google.protobuf.ByteString getFrameUrlBytes(); /** + * + * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; + * * @return The finalUrl. */ java.lang.String getFinalUrl(); /** + * + * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; + * * @return The bytes for finalUrl. */ - com.google.protobuf.ByteString - getFinalUrlBytes(); + com.google.protobuf.ByteString getFinalUrlBytes(); /** + * + * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; + * * @return The trackingId. */ java.lang.String getTrackingId(); /** + * + * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; + * * @return The bytes for trackingId. */ - com.google.protobuf.ByteString - getTrackingIdBytes(); + com.google.protobuf.ByteString getTrackingIdBytes(); /** + * + * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; + * * @return Whether the outdatedLibrary field is set. */ boolean hasOutdatedLibrary(); /** + * + * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; + * * @return The outdatedLibrary. */ com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getOutdatedLibrary(); /** + * + * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1alpha.OutdatedLibrary outdated_library = 11; */ - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder + getOutdatedLibraryOrBuilder(); /** + * + * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * + * * @return Whether the violatingResource field is set. */ boolean hasViolatingResource(); /** + * + * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * + * * @return The violatingResource. */ com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getViolatingResource(); /** + * + * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1alpha.ViolatingResource violating_resource = 12; + * */ - com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder getViolatingResourceOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder + getViolatingResourceOrBuilder(); /** + * + * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * + * * @return Whether the vulnerableHeaders field is set. */ boolean hasVulnerableHeaders(); /** + * + * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * + * * @return The vulnerableHeaders. */ com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getVulnerableHeaders(); /** + * + * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders vulnerable_headers = 15; + * */ - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder + getVulnerableHeadersOrBuilder(); /** + * + * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * + * * @return Whether the vulnerableParameters field is set. */ boolean hasVulnerableParameters(); /** + * + * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * + * * @return The vulnerableParameters. */ com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getVulnerableParameters(); /** + * + * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1alpha.VulnerableParameters vulnerable_parameters = 13; + * */ - com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder + getVulnerableParametersOrBuilder(); /** + * + * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; + * * @return Whether the xss field is set. */ boolean hasXss(); /** + * + * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Xss xss = 14; + * * @return The xss. */ com.google.cloud.websecurityscanner.v1alpha.Xss getXss(); /** + * + * *
    * An addon containing information reported for an XSS, if any.
    * 
diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java new file mode 100644 index 00000000..ddc6f293 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java @@ -0,0 +1,120 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/finding.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class FindingProto { + private FindingProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/websecurityscanner/v1alph" + + "a/finding.proto\022\'google.cloud.websecurit" + + "yscanner.v1alpha\032\031google/api/resource.pr" + + "oto\032;google/cloud/websecurityscanner/v1a" + + "lpha/finding_addon.proto\"\351\010\n\007Finding\022\014\n\004" + + "name\030\001 \001(\t\022R\n\014finding_type\030\002 \001(\0162<.googl" + + "e.cloud.websecurityscanner.v1alpha.Findi" + + "ng.FindingType\022\023\n\013http_method\030\003 \001(\t\022\022\n\nf" + + "uzzed_url\030\004 \001(\t\022\014\n\004body\030\005 \001(\t\022\023\n\013descrip" + + "tion\030\006 \001(\t\022\030\n\020reproduction_url\030\007 \001(\t\022\021\n\t" + + "frame_url\030\010 \001(\t\022\021\n\tfinal_url\030\t \001(\t\022\023\n\013tr" + + "acking_id\030\n \001(\t\022R\n\020outdated_library\030\013 \001(" + + "\01328.google.cloud.websecurityscanner.v1al" + + "pha.OutdatedLibrary\022V\n\022violating_resourc" + + "e\030\014 \001(\0132:.google.cloud.websecurityscanne" + + "r.v1alpha.ViolatingResource\022V\n\022vulnerabl" + + "e_headers\030\017 \001(\0132:.google.cloud.websecuri" + + "tyscanner.v1alpha.VulnerableHeaders\022\\\n\025v" + + "ulnerable_parameters\030\r \001(\0132=.google.clou" + + "d.websecurityscanner.v1alpha.VulnerableP" + + "arameters\0229\n\003xss\030\016 \001(\0132,.google.cloud.we" + + "bsecurityscanner.v1alpha.Xss\"\266\002\n\013Finding" + + "Type\022\034\n\030FINDING_TYPE_UNSPECIFIED\020\000\022\021\n\rMI" + + "XED_CONTENT\020\001\022\024\n\020OUTDATED_LIBRARY\020\002\022\021\n\rR" + + "OSETTA_FLASH\020\005\022\020\n\014XSS_CALLBACK\020\003\022\r\n\tXSS_" + + "ERROR\020\004\022\027\n\023CLEAR_TEXT_PASSWORD\020\006\022\030\n\024INVA" + + "LID_CONTENT_TYPE\020\007\022\030\n\024XSS_ANGULAR_CALLBA" + + "CK\020\010\022\022\n\016INVALID_HEADER\020\t\022#\n\037MISSPELLED_S" + + "ECURITY_HEADER_NAME\020\n\022&\n\"MISMATCHING_SEC" + + "URITY_HEADER_VALUES\020\013:\204\001\352A\200\001\n)websecurit" + + "yscanner.googleapis.com/Finding\022Sproject" + + "s/{project}/scanConfigs/{scan_config}/sc" + + "anRuns/{scan_run}/findings/{finding}B\230\001\n" + + "+com.google.cloud.websecurityscanner.v1a" + + "lphaB\014FindingProtoP\001ZYgoogle.golang.org/" + + "genproto/googleapis/cloud/websecuritysca" + + "nner/v1alpha;websecurityscannerb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_Finding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_Finding_descriptor, + new java.lang.String[] { + "Name", + "FindingType", + "HttpMethod", + "FuzzedUrl", + "Body", + "Description", + "ReproductionUrl", + "FrameUrl", + "FinalUrl", + "TrackingId", + "OutdatedLibrary", + "ViolatingResource", + "VulnerableHeaders", + "VulnerableParameters", + "Xss", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java similarity index 68% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java index 53bba4a7..3fa56903 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * A FindingTypeStats resource represents stats regarding a specific FindingType
  * of Findings under a given ScanRun.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.FindingTypeStats}
  */
-public final class FindingTypeStats extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FindingTypeStats extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.FindingTypeStats)
     FindingTypeStatsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FindingTypeStats.newBuilder() to construct.
   private FindingTypeStats(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FindingTypeStats() {
     findingType_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FindingTypeStats();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private FindingTypeStats(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,24 +71,25 @@ private FindingTypeStats(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
-
-            findingType_ = rawValue;
-            break;
-          }
-          case 16: {
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            findingCount_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              findingType_ = rawValue;
+              break;
+            }
+          case 16:
+            {
+              findingCount_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -79,61 +97,77 @@ private FindingTypeStats(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto
+        .internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto
+        .internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder.class);
+            com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.class,
+            com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder.class);
   }
 
   public static final int FINDING_TYPE_FIELD_NUMBER = 1;
   private int findingType_;
   /**
+   *
+   *
    * 
    * The finding type associated with the stats.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; + * * @return The enum numeric value on the wire for findingType. */ - @java.lang.Override public int getFindingTypeValue() { + @java.lang.Override + public int getFindingTypeValue() { return findingType_; } /** + * + * *
    * The finding type associated with the stats.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; + * * @return The findingType. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); - return result == null ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); + return result == null + ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED + : result; } public static final int FINDING_COUNT_FIELD_NUMBER = 2; private int findingCount_; /** + * + * *
    * The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; + * * @return The findingCount. */ @java.lang.Override @@ -142,6 +176,7 @@ public int getFindingCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,9 +188,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (findingType_ != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (findingType_ + != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, findingType_); } if (findingCount_ != 0) { @@ -170,13 +206,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (findingType_ != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, findingType_); + if (findingType_ + != com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.FINDING_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, findingType_); } if (findingCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, findingCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, findingCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -186,16 +222,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats other = (com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) obj; + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats other = + (com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) obj; if (findingType_ != other.findingType_) return false; - if (getFindingCount() - != other.getFindingCount()) return false; + if (getFindingCount() != other.getFindingCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -217,96 +253,104 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A FindingTypeStats resource represents stats regarding a specific FindingType
    * of Findings under a given ScanRun.
@@ -314,21 +358,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.FindingTypeStats}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.FindingTypeStats)
       com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto
+          .internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto
+          .internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder.class);
+              com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.class,
+              com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.newBuilder()
@@ -336,16 +382,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -357,13 +402,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto
+          .internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getDefaultInstanceForType() {
+    public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats
+        getDefaultInstanceForType() {
       return com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance();
     }
 
@@ -378,7 +424,8 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats buildPartial() {
-      com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats result = new com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats(this);
+      com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats result =
+          new com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats(this);
       result.findingType_ = findingType_;
       result.findingCount_ = findingCount_;
       onBuilt();
@@ -389,38 +436,39 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -428,7 +476,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats other) {
-      if (other == com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance())
+        return this;
       if (other.findingType_ != 0) {
         setFindingTypeValue(other.getFindingTypeValue());
       }
@@ -454,7 +504,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -466,85 +517,108 @@ public Builder mergeFrom(
 
     private int findingType_ = 0;
     /**
+     *
+     *
      * 
      * The finding type associated with the stats.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; + * * @return The enum numeric value on the wire for findingType. */ - @java.lang.Override public int getFindingTypeValue() { + @java.lang.Override + public int getFindingTypeValue() { return findingType_; } /** + * + * *
      * The finding type associated with the stats.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; + * * @param value The enum numeric value on the wire for findingType to set. * @return This builder for chaining. */ public Builder setFindingTypeValue(int value) { - + findingType_ = value; onChanged(); return this; } /** + * + * *
      * The finding type associated with the stats.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; + * * @return The findingType. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); - return result == null ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.valueOf(findingType_); + return result == null + ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED + : result; } /** + * + * *
      * The finding type associated with the stats.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; + * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType(com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType value) { + public Builder setFindingType( + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType value) { if (value == null) { throw new NullPointerException(); } - + findingType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The finding type associated with the stats.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; + * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = 0; onChanged(); return this; } - private int findingCount_ ; + private int findingCount_; /** + * + * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; + * * @return The findingCount. */ @java.lang.Override @@ -552,37 +626,43 @@ public int getFindingCount() { return findingCount_; } /** + * + * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; + * * @param value The findingCount to set. * @return This builder for chaining. */ public Builder setFindingCount(int value) { - + findingCount_ = value; onChanged(); return this; } /** + * + * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; + * * @return This builder for chaining. */ public Builder clearFindingCount() { - + findingCount_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +672,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.FindingTypeStats) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.FindingTypeStats) - private static final com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats(); } @@ -606,16 +687,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FindingTypeStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FindingTypeStats(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindingTypeStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FindingTypeStats(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -630,6 +711,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java similarity index 61% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java index 2da6562f..e6025438 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java @@ -1,37 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface FindingTypeStatsOrBuilder extends +public interface FindingTypeStatsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.FindingTypeStats) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The finding type associated with the stats.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; + * * @return The enum numeric value on the wire for findingType. */ int getFindingTypeValue(); /** + * + * *
    * The finding type associated with the stats.
    * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 1; + * * @return The findingType. */ com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType(); /** + * + * *
    * The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; + * * @return The findingCount. */ int getFindingCount(); diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java new file mode 100644 index 00000000..a83473ed --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java @@ -0,0 +1,74 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class FindingTypeStatsProto { + private FindingTypeStatsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n@google/cloud/websecurityscanner/v1alph" + + "a/finding_type_stats.proto\022\'google.cloud" + + ".websecurityscanner.v1alpha\0325google/clou" + + "d/websecurityscanner/v1alpha/finding.pro" + + "to\"}\n\020FindingTypeStats\022R\n\014finding_type\030\001" + + " \001(\0162<.google.cloud.websecurityscanner.v" + + "1alpha.Finding.FindingType\022\025\n\rfinding_co" + + "unt\030\002 \001(\005B\241\001\n+com.google.cloud.websecuri" + + "tyscanner.v1alphaB\025FindingTypeStatsProto" + + "P\001ZYgoogle.golang.org/genproto/googleapi" + + "s/cloud/websecurityscanner/v1alpha;webse" + + "curityscannerb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_FindingTypeStats_descriptor, + new java.lang.String[] { + "FindingType", "FindingCount", + }); + com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java similarity index 66% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java index af43c13a..cfe8db4f 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Request for the `GetFinding` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetFindingRequest} */ -public final class GetFindingRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetFindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) GetFindingRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetFindingRequest.newBuilder() to construct. private GetFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetFindingRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetFindingRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private GetFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest other = (com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest other = + (com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `GetFinding` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetFindingRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) com.google.cloud.websecurityscanner.v1alpha.GetFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.class, + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,13 +381,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.getDefaultInstance(); } @@ -366,7 +403,8 @@ public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest result = new com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest(this); + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest result = + new com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +414,39 @@ public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +454,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +480,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +494,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +520,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +546,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +629,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest(); } @@ -580,16 +644,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFindingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFindingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +668,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java new file mode 100644 index 00000000..271e5d3a --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface GetFindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetFindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Finding to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the Finding to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java similarity index 64% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java index 22e698f2..a84f8936 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Request for the `GetScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest} */ -public final class GetScanConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) GetScanConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetScanConfigRequest.newBuilder() to construct. private GetScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetScanConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest other = (com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest other = + (com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `GetScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest build() @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest result = new com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +412,50 @@ public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +479,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +493,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +518,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +543,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +623,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +660,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..d2ac4c67 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface GetScanConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ScanConfig to be returned. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the ScanConfig to be returned. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java similarity index 66% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java index a3975c92..2073d4e2 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Request for the `GetScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetScanRunRequest} */ -public final class GetScanRunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetScanRunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) GetScanRunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetScanRunRequest.newBuilder() to construct. private GetScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetScanRunRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private GetScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest other = (com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest other = + (com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `GetScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.GetScanRunRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.class, + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,13 +381,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.getDefaultInstance(); } @@ -366,7 +403,8 @@ public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest result = new com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest(this); + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest result = + new com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +414,39 @@ public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +454,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +480,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +494,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +520,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +546,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +629,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest(); } @@ -580,16 +644,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +668,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java new file mode 100644 index 00000000..aba0542a --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface GetScanRunRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.GetScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ScanRun to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the ScanRun to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java similarity index 67% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java index 584b0f21..13be1c66 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Request for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest} */ -public final class ListCrawledUrlsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCrawledUrlsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) ListCrawledUrlsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCrawledUrlsRequest.newBuilder() to construct. private ListCrawledUrlsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCrawledUrlsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListCrawledUrlsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCrawledUrlsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCrawledUrlsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListCrawledUrlsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +104,43 @@ private ListCrawledUrlsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,31 +149,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -158,6 +186,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -165,6 +195,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -173,14 +204,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -188,16 +220,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -208,6 +239,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -215,6 +248,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -223,6 +257,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,8 +269,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -261,8 +295,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -272,19 +305,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest other = (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest other = + (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -308,134 +339,145 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.class, + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -449,14 +491,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest + .getDefaultInstance(); } @java.lang.Override @@ -470,7 +514,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest(this); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest result = + new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -482,46 +527,51 @@ public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -552,7 +602,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -564,20 +616,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -586,22 +642,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -609,60 +668,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -670,6 +742,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -677,13 +751,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -692,6 +766,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -699,15 +775,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -715,6 +790,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -722,20 +799,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -743,15 +822,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -759,23 +841,25 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -783,6 +867,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -790,6 +875,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -797,16 +884,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -814,17 +904,18 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -834,30 +925,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -869,9 +962,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java index ea234ea5..18822600 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListCrawledUrlsRequestOrBuilder extends +public interface ListCrawledUrlsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -39,10 +66,13 @@ public interface ListCrawledUrlsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -50,12 +80,14 @@ public interface ListCrawledUrlsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -63,6 +95,7 @@ public interface ListCrawledUrlsRequestOrBuilder extends
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java similarity index 72% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java index 6afbaf1a..3b2986b1 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Response for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse} */ -public final class ListCrawledUrlsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCrawledUrlsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) ListCrawledUrlsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCrawledUrlsResponse.newBuilder() to construct. private ListCrawledUrlsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCrawledUrlsResponse() { crawledUrls_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListCrawledUrlsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCrawledUrlsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCrawledUrlsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,34 @@ private ListCrawledUrlsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + crawledUrls_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl>(); + mutable_bitField0_ |= 0x00000001; + } + crawledUrls_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.parser(), + extensionRegistry)); + break; } - crawledUrls_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +107,7 @@ private ListCrawledUrlsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); @@ -94,22 +116,27 @@ private ListCrawledUrlsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.Builder.class); } public static final int CRAWLED_URLS_FIELD_NUMBER = 1; private java.util.List crawledUrls_; /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -117,10 +144,13 @@ private ListCrawledUrlsResponse( * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ @java.lang.Override - public java.util.List getCrawledUrlsList() { + public java.util.List + getCrawledUrlsList() { return crawledUrls_; } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -128,11 +158,13 @@ public java.util.List ge * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCrawledUrlsOrBuilderList() { return crawledUrls_; } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -144,6 +176,8 @@ public int getCrawledUrlsCount() { return crawledUrls_.size(); } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -155,6 +189,8 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getCrawledUrls(int return crawledUrls_.get(index); } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -170,12 +206,15 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawle public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +223,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +255,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < crawledUrls_.size(); i++) { output.writeMessage(1, crawledUrls_.get(i)); } @@ -245,8 +284,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < crawledUrls_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, crawledUrls_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, crawledUrls_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +297,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse other = (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) obj; + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse other = + (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) obj; - if (!getCrawledUrlsList() - .equals(other.getCrawledUrlsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getCrawledUrlsList().equals(other.getCrawledUrlsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,135 +330,147 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.class, + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCrawledUrlsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,14 +486,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse + .getDefaultInstance(); } @java.lang.Override @@ -458,7 +509,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse build @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse result = new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse(this); + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse result = + new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse(this); int from_bitField0_ = bitField0_; if (crawledUrlsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,46 +530,51 @@ public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse + .getDefaultInstance()) return this; if (crawledUrlsBuilder_ == null) { if (!other.crawledUrls_.isEmpty()) { if (crawledUrls_.isEmpty()) { @@ -536,9 +593,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListCrawled crawledUrlsBuilder_ = null; crawledUrls_ = other.crawledUrls_; bitField0_ = (bitField0_ & ~0x00000001); - crawledUrlsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCrawledUrlsFieldBuilder() : null; + crawledUrlsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCrawledUrlsFieldBuilder() + : null; } else { crawledUrlsBuilder_.addAllMessages(other.crawledUrls_); } @@ -567,7 +625,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,28 +636,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List crawledUrls_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCrawledUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = new java.util.ArrayList(crawledUrls_); + crawledUrls_ = + new java.util.ArrayList( + crawledUrls_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder> crawledUrlsBuilder_; + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, + com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder> + crawledUrlsBuilder_; /** + * + * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ - public java.util.List getCrawledUrlsList() { + public java.util.List + getCrawledUrlsList() { if (crawledUrlsBuilder_ == null) { return java.util.Collections.unmodifiableList(crawledUrls_); } else { @@ -605,6 +675,8 @@ public java.util.List ge } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -619,6 +691,8 @@ public int getCrawledUrlsCount() { } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -633,6 +707,8 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getCrawledUrls(int } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -654,6 +730,8 @@ public Builder setCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -672,6 +750,8 @@ public Builder setCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -692,6 +772,8 @@ public Builder addCrawledUrls(com.google.cloud.websecurityscanner.v1alpha.Crawle return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -713,6 +795,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -731,6 +815,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -749,6 +835,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -756,11 +844,11 @@ public Builder addCrawledUrls( * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ public Builder addAllCrawledUrls( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (crawledUrlsBuilder_ == null) { ensureCrawledUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, crawledUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crawledUrls_); onChanged(); } else { crawledUrlsBuilder_.addAllMessages(values); @@ -768,6 +856,8 @@ public Builder addAllCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -785,6 +875,8 @@ public Builder clearCrawledUrls() { return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -802,6 +894,8 @@ public Builder removeCrawledUrls(int index) { return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -813,6 +907,8 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder getCrawled return getCrawledUrlsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -822,19 +918,22 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder getCrawled public com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawledUrlsOrBuilder( int index) { if (crawledUrlsBuilder_ == null) { - return crawledUrls_.get(index); } else { + return crawledUrls_.get(index); + } else { return crawledUrlsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsOrBuilderList() { + public java.util.List + getCrawledUrlsOrBuilderList() { if (crawledUrlsBuilder_ != null) { return crawledUrlsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +941,8 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawle } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -849,10 +950,12 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawle * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder addCrawledUrlsBuilder() { - return getCrawledUrlsFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder() + .addBuilder(com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance()); } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -861,30 +964,36 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder addCrawled */ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder addCrawledUrlsBuilder( int index) { - return getCrawledUrlsFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder() + .addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.getDefaultInstance()); } /** + * + * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsBuilderList() { + public java.util.List + getCrawledUrlsBuilderList() { return getCrawledUrlsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, + com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder> getCrawledUrlsFieldBuilder() { if (crawledUrlsBuilder_ == null) { - crawledUrlsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder>( - crawledUrls_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + crawledUrlsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl, + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder, + com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder>( + crawledUrls_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); crawledUrls_ = null; } return crawledUrlsBuilder_; @@ -892,19 +1001,21 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder addCrawled private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1024,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1047,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1121,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) - private static final com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1158,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java index 0b93f80c..d8f6d0aa 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListCrawledUrlsResponseOrBuilder extends +public interface ListCrawledUrlsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ - java.util.List - getCrawledUrlsList(); + java.util.List getCrawledUrlsList(); /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -25,6 +44,8 @@ public interface ListCrawledUrlsResponseOrBuilder extends */ com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getCrawledUrls(int index); /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -33,15 +54,19 @@ public interface ListCrawledUrlsResponseOrBuilder extends */ int getCrawledUrlsCount(); /** + * + * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.CrawledUrl crawled_urls = 1; */ - java.util.List + java.util.List getCrawledUrlsOrBuilderList(); /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -52,24 +77,29 @@ com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawledUrlsOr int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java similarity index 62% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java index 7491dab8..8edfe8f9 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Request for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest} */ -public final class ListFindingTypeStatsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingTypeStatsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) ListFindingTypeStatsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsRequest.newBuilder() to construct. private ListFindingTypeStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingTypeStatsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingTypeStatsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingTypeStatsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private ListFindingTypeStatsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private ListFindingTypeStatsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest other = (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest other = + (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,134 +235,146 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.class, + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.Builder + .class); } - // Construct using com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,19 +384,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest build() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result = buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -366,7 +408,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest b @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest(this); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result = + new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -376,46 +419,52 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest b public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest)other); + if (other + instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) { + return mergeFrom( + (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -439,7 +488,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +502,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -473,22 +528,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -496,67 +554,80 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,30 +637,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -601,9 +675,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java new file mode 100644 index 00000000..c7eede2a --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface ListFindingTypeStatsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource name, which should be a scan run resource name in the
+   * format
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource name, which should be a scan run resource name in the
+   * format
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java similarity index 60% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java index 0fd167ae..6d0b1ac7 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Response for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse} */ -public final class ListFindingTypeStatsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingTypeStatsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) ListFindingTypeStatsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsResponse.newBuilder() to construct. private ListFindingTypeStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingTypeStatsResponse() { findingTypeStats_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingTypeStatsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingTypeStatsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private ListFindingTypeStatsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findingTypeStats_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats>(); + mutable_bitField0_ |= 0x00000001; + } + findingTypeStats_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.parser(), + extensionRegistry)); + break; } - findingTypeStats_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private ListFindingTypeStatsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); @@ -87,80 +108,108 @@ private ListFindingTypeStatsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.Builder.class); } public static final int FINDING_TYPE_STATS_FIELD_NUMBER = 1; - private java.util.List findingTypeStats_; + private java.util.List + findingTypeStats_; /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ @java.lang.Override - public java.util.List getFindingTypeStatsList() { + public java.util.List + getFindingTypeStatsList() { return findingTypeStats_; } /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> getFindingTypeStatsOrBuilderList() { return findingTypeStats_; } /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ @java.lang.Override public int getFindingTypeStatsCount() { return findingTypeStats_.size(); } /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats(int index) { + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats( + int index) { return findingTypeStats_.get(index); } /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder + getFindingTypeStatsOrBuilder(int index) { return findingTypeStats_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +221,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < findingTypeStats_.size(); i++) { output.writeMessage(1, findingTypeStats_.get(i)); } @@ -187,8 +235,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findingTypeStats_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, findingTypeStats_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findingTypeStats_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +245,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse)) { + if (!(obj + instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse other = (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) obj; + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse other = + (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) obj; - if (!getFindingTypeStatsList() - .equals(other.getFindingTypeStatsList())) return false; + if (!getFindingTypeStatsList().equals(other.getFindingTypeStatsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,135 +276,148 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.class, + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.Builder + .class); } - // Construct using com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFindingTypeStatsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,19 +431,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse build() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result = buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -391,7 +455,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result = new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse(this); + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result = + new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse(this); int from_bitField0_ = bitField0_; if (findingTypeStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,46 +475,52 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse)other); + if (other + instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) { + return mergeFrom( + (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse + .getDefaultInstance()) return this; if (findingTypeStatsBuilder_ == null) { if (!other.findingTypeStats_.isEmpty()) { if (findingTypeStats_.isEmpty()) { @@ -468,9 +539,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListFinding findingTypeStatsBuilder_ = null; findingTypeStats_ = other.findingTypeStats_; bitField0_ = (bitField0_ & ~0x00000001); - findingTypeStatsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFindingTypeStatsFieldBuilder() : null; + findingTypeStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFindingTypeStatsFieldBuilder() + : null; } else { findingTypeStatsBuilder_.addAllMessages(other.findingTypeStats_); } @@ -495,7 +567,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,28 +578,40 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List findingTypeStats_ = - java.util.Collections.emptyList(); + private java.util.List + findingTypeStats_ = java.util.Collections.emptyList(); + private void ensureFindingTypeStatsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = new java.util.ArrayList(findingTypeStats_); + findingTypeStats_ = + new java.util.ArrayList( + findingTypeStats_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> findingTypeStatsBuilder_; + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> + findingTypeStatsBuilder_; /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ - public java.util.List getFindingTypeStatsList() { + public java.util.List + getFindingTypeStatsList() { if (findingTypeStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(findingTypeStats_); } else { @@ -533,11 +619,15 @@ public java.util.List * The list of FindingTypeStats returned. *
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ public int getFindingTypeStatsCount() { if (findingTypeStatsBuilder_ == null) { @@ -547,13 +637,18 @@ public int getFindingTypeStatsCount() { } } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats(int index) { + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats( + int index) { if (findingTypeStatsBuilder_ == null) { return findingTypeStats_.get(index); } else { @@ -561,11 +656,15 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTy } } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ public Builder setFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats value) { @@ -582,14 +681,19 @@ public Builder setFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ public Builder setFindingTypeStats( - int index, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.set(index, builderForValue.build()); @@ -600,13 +704,18 @@ public Builder setFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ - public Builder addFindingTypeStats(com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats value) { + public Builder addFindingTypeStats( + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats value) { if (findingTypeStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -620,11 +729,15 @@ public Builder addFindingTypeStats(com.google.cloud.websecurityscanner.v1alpha.F return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ public Builder addFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats value) { @@ -641,11 +754,15 @@ public Builder addFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ public Builder addFindingTypeStats( com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder builderForValue) { @@ -659,14 +776,19 @@ public Builder addFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ public Builder addFindingTypeStats( - int index, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.add(index, builderForValue.build()); @@ -677,18 +799,22 @@ public Builder addFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ public Builder addAllFindingTypeStats( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, findingTypeStats_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findingTypeStats_); onChanged(); } else { findingTypeStatsBuilder_.addAllMessages(values); @@ -696,11 +822,15 @@ public Builder addAllFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ public Builder clearFindingTypeStats() { if (findingTypeStatsBuilder_ == null) { @@ -713,11 +843,15 @@ public Builder clearFindingTypeStats() { return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ public Builder removeFindingTypeStats(int index) { if (findingTypeStatsBuilder_ == null) { @@ -730,39 +864,53 @@ public Builder removeFindingTypeStats(int index) { return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder getFindingTypeStatsBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder + getFindingTypeStatsBuilder(int index) { return getFindingTypeStatsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder + getFindingTypeStatsOrBuilder(int index) { if (findingTypeStatsBuilder_ == null) { - return findingTypeStats_.get(index); } else { + return findingTypeStats_.get(index); + } else { return findingTypeStatsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ - public java.util.List - getFindingTypeStatsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> + getFindingTypeStatsOrBuilderList() { if (findingTypeStatsBuilder_ != null) { return findingTypeStatsBuilder_.getMessageOrBuilderList(); } else { @@ -770,45 +918,67 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder get } } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder addFindingTypeStatsBuilder() { - return getFindingTypeStatsFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder + addFindingTypeStatsBuilder() { + return getFindingTypeStatsFieldBuilder() + .addBuilder( + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance()); } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ - public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder addFindingTypeStatsBuilder( - int index) { - return getFindingTypeStatsFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder + addFindingTypeStatsBuilder(int index) { + return getFindingTypeStatsFieldBuilder() + .addBuilder( + index, + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.getDefaultInstance()); } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * */ - public java.util.List - getFindingTypeStatsBuilderList() { + public java.util.List + getFindingTypeStatsBuilderList() { return getFindingTypeStatsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder> getFindingTypeStatsFieldBuilder() { if (findingTypeStatsBuilder_ == null) { - findingTypeStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder>( + findingTypeStatsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats, + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder, + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder>( findingTypeStats_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -817,9 +987,9 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.Builder addF } return findingTypeStatsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,30 +999,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) - private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -864,9 +1037,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java new file mode 100644 index 00000000..5a2ffbfd --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface ListFindingTypeStatsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of FindingTypeStats returned.
+   * 
+ * + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + */ + java.util.List + getFindingTypeStatsList(); + /** + * + * + *
+   * The list of FindingTypeStats returned.
+   * 
+ * + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + */ + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getFindingTypeStats(int index); + /** + * + * + *
+   * The list of FindingTypeStats returned.
+   * 
+ * + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + */ + int getFindingTypeStatsCount(); + /** + * + * + *
+   * The list of FindingTypeStats returned.
+   * 
+ * + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + */ + java.util.List + getFindingTypeStatsOrBuilderList(); + /** + * + * + *
+   * The list of FindingTypeStats returned.
+   * 
+ * + * + * repeated .google.cloud.websecurityscanner.v1alpha.FindingTypeStats finding_type_stats = 1; + * + */ + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsOrBuilder + getFindingTypeStatsOrBuilder(int index); +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java similarity index 70% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java index 6c3a1380..97037754 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Request for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingsRequest} */ -public final class ListFindingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) ListFindingsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingsRequest.newBuilder() to construct. private ListFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingsRequest() { parent_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListFindingsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 32: { + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 32: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,36 +112,43 @@ private ListFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -130,31 +157,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -165,6 +194,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -173,6 +204,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -181,14 +213,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -197,16 +230,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -217,6 +249,8 @@ public java.lang.String getFilter() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -224,6 +258,7 @@ public java.lang.String getFilter() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -232,14 +267,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -247,16 +283,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -267,6 +302,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** + * + * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -274,6 +311,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -282,6 +320,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,8 +332,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -326,8 +364,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -337,21 +374,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest other = (com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest other = + (com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -377,117 +411,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.class, + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.newBuilder() @@ -495,16 +539,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,13 +563,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.getDefaultInstance(); } @@ -541,7 +585,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest(this); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest result = + new com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageToken_ = pageToken_; @@ -554,46 +599,50 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -628,7 +677,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -640,20 +691,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -662,22 +717,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -685,60 +743,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -746,6 +817,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -754,13 +827,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -769,6 +842,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -777,15 +852,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -793,6 +867,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -801,20 +877,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -823,15 +901,18 @@ public Builder setFilter(
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -840,16 +921,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -857,6 +938,8 @@ public Builder setFilterBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -864,13 +947,13 @@ public Builder setFilterBytes(
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -879,6 +962,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -886,15 +971,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -902,6 +986,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -909,20 +995,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -930,15 +1018,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -946,23 +1037,25 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -970,6 +1063,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -977,6 +1071,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -984,16 +1080,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 4; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1001,17 +1100,18 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1021,30 +1121,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1056,9 +1158,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java index 0ea02890..a5bd85c0 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListFindingsRequestOrBuilder extends +public interface ListFindingsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -40,10 +67,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -52,12 +82,14 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -65,10 +97,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -76,12 +111,14 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -89,6 +126,7 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java similarity index 73% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java index 8c0f649d..db67ac92 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Response for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingsResponse} */ -public final class ListFindingsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) ListFindingsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingsResponse.newBuilder() to construct. private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingsResponse() { findings_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,33 @@ private ListFindingsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findings_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findings_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + findings_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.Finding.parser(), + extensionRegistry)); + break; } - findings_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1alpha.Finding.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +106,7 @@ private ListFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -94,22 +115,27 @@ private ListFindingsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.Builder.class); } public static final int FINDINGS_FIELD_NUMBER = 1; private java.util.List findings_; /** + * + * *
    * The list of Findings returned.
    * 
@@ -121,6 +147,8 @@ public java.util.List getFi return findings_; } /** + * + * *
    * The list of Findings returned.
    * 
@@ -128,11 +156,13 @@ public java.util.List getFi * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFindingsOrBuilderList() { return findings_; } /** + * + * *
    * The list of Findings returned.
    * 
@@ -144,6 +174,8 @@ public int getFindingsCount() { return findings_.size(); } /** + * + * *
    * The list of Findings returned.
    * 
@@ -155,6 +187,8 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding getFindings(int index return findings_.get(index); } /** + * + * *
    * The list of Findings returned.
    * 
@@ -170,12 +204,15 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsO public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +221,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +253,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +265,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < findings_.size(); i++) { output.writeMessage(1, findings_.get(i)); } @@ -245,8 +282,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, findings_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +295,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse other = (com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) obj; + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse other = + (com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) obj; - if (!getFindingsList() - .equals(other.getFindingsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getFindingsList().equals(other.getFindingsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +328,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListFindingsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.class, + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.newBuilder() @@ -411,17 +456,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFindingsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,13 +482,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.getDefaultInstance(); } @@ -458,7 +504,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse build() @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse result = new com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse(this); + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse result = + new com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse(this); int from_bitField0_ = bitField0_; if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,46 +525,50 @@ public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse.getDefaultInstance()) + return this; if (findingsBuilder_ == null) { if (!other.findings_.isEmpty()) { if (findings_.isEmpty()) { @@ -536,9 +587,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListFinding findingsBuilder_ = null; findings_ = other.findings_; bitField0_ = (bitField0_ & ~0x00000001); - findingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFindingsFieldBuilder() : null; + findingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFindingsFieldBuilder() + : null; } else { findingsBuilder_.addAllMessages(other.findings_); } @@ -567,7 +619,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +630,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List findings_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFindingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findings_ = new java.util.ArrayList(findings_); + findings_ = + new java.util.ArrayList(findings_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Finding, com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder> findingsBuilder_; + com.google.cloud.websecurityscanner.v1alpha.Finding, + com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, + com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder> + findingsBuilder_; /** + * + * *
      * The list of Findings returned.
      * 
@@ -605,6 +667,8 @@ public java.util.List getFi } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -619,6 +683,8 @@ public int getFindingsCount() { } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -633,6 +699,8 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding getFindings(int index } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -654,6 +722,8 @@ public Builder setFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -672,6 +742,8 @@ public Builder setFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -692,6 +764,8 @@ public Builder addFindings(com.google.cloud.websecurityscanner.v1alpha.Finding v return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -713,6 +787,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -731,6 +807,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -749,6 +827,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -759,8 +839,7 @@ public Builder addAllFindings( java.lang.Iterable values) { if (findingsBuilder_ == null) { ensureFindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, findings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findings_); onChanged(); } else { findingsBuilder_.addAllMessages(values); @@ -768,6 +847,8 @@ public Builder addAllFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -785,6 +866,8 @@ public Builder clearFindings() { return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -802,6 +885,8 @@ public Builder removeFindings(int index) { return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -813,6 +898,8 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder getFindingsBu return getFindingsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of Findings returned.
      * 
@@ -822,19 +909,22 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder getFindingsBu public com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsOrBuilder( int index) { if (findingsBuilder_ == null) { - return findings_.get(index); } else { + return findings_.get(index); + } else { return findingsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ - public java.util.List - getFindingsOrBuilderList() { + public java.util.List + getFindingsOrBuilderList() { if (findingsBuilder_ != null) { return findingsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +932,8 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsO } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -849,10 +941,12 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsO * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder addFindingsBuilder() { - return getFindingsFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance()); + return getFindingsFieldBuilder() + .addBuilder(com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance()); } /** + * + * *
      * The list of Findings returned.
      * 
@@ -861,30 +955,36 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder addFindingsBu */ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder addFindingsBuilder( int index) { - return getFindingsFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance()); + return getFindingsFieldBuilder() + .addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.Finding.getDefaultInstance()); } /** + * + * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ - public java.util.List - getFindingsBuilderList() { + public java.util.List + getFindingsBuilderList() { return getFindingsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Finding, com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.Finding, + com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, + com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder> getFindingsFieldBuilder() { if (findingsBuilder_ == null) { - findingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.Finding, com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder>( - findings_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + findingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.Finding, + com.google.cloud.websecurityscanner.v1alpha.Finding.Builder, + com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder>( + findings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); findings_ = null; } return findingsBuilder_; @@ -892,19 +992,21 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder addFindingsBu private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1015,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1038,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1112,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) - private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1149,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java index 08fb2b10..b3f1b237 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListFindingsResponseOrBuilder extends +public interface ListFindingsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListFindingsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ - java.util.List - getFindingsList(); + java.util.List getFindingsList(); /** + * + * *
    * The list of Findings returned.
    * 
@@ -25,6 +44,8 @@ public interface ListFindingsResponseOrBuilder extends */ com.google.cloud.websecurityscanner.v1alpha.Finding getFindings(int index); /** + * + * *
    * The list of Findings returned.
    * 
@@ -33,43 +54,51 @@ public interface ListFindingsResponseOrBuilder extends */ int getFindingsCount(); /** + * + * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ - java.util.List + java.util.List getFindingsOrBuilderList(); /** + * + * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.Finding findings = 1; */ - com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsOrBuilder( - int index); + com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java similarity index 67% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java index 9c830226..c3cc336c 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Request for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest} */ -public final class ListScanConfigsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListScanConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) ListScanConfigsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListScanConfigsRequest.newBuilder() to construct. private ListScanConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListScanConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListScanConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListScanConfigsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListScanConfigsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListScanConfigsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -122,30 +148,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,6 +184,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -163,6 +193,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -171,14 +202,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -186,16 +218,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -206,6 +237,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -213,6 +246,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -221,6 +255,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -259,8 +293,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -270,19 +303,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest other = (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest other = + (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,134 +337,145 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.class, + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -447,14 +489,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest + .getDefaultInstance(); } @java.lang.Override @@ -468,7 +512,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest(this); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest result = + new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -480,46 +525,51 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -550,7 +600,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -562,19 +614,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -583,21 +639,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -605,57 +664,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -663,6 +735,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -670,13 +744,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -685,6 +759,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -692,15 +768,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -708,6 +783,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -715,20 +792,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -736,15 +815,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -752,23 +834,25 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -776,6 +860,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -783,6 +868,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -790,16 +877,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -807,17 +897,18 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -827,30 +918,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -862,9 +955,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java index 57f8ce2d..7cfe3b7f 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListScanConfigsRequestOrBuilder extends +public interface ListScanConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -37,10 +64,13 @@ public interface ListScanConfigsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -48,12 +78,14 @@ public interface ListScanConfigsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -61,6 +93,7 @@ public interface ListScanConfigsRequestOrBuilder extends
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java similarity index 72% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java index 3214eeb4..c891010e 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Response for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse} */ -public final class ListScanConfigsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListScanConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) ListScanConfigsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListScanConfigsResponse.newBuilder() to construct. private ListScanConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListScanConfigsResponse() { scanConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListScanConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListScanConfigsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,34 @@ private ListScanConfigsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanConfigs_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig>(); + mutable_bitField0_ |= 0x00000001; + } + scanConfigs_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), + extensionRegistry)); + break; } - scanConfigs_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +107,7 @@ private ListScanConfigsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); @@ -94,22 +116,27 @@ private ListScanConfigsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.Builder.class); } public static final int SCAN_CONFIGS_FIELD_NUMBER = 1; private java.util.List scanConfigs_; /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -117,10 +144,13 @@ private ListScanConfigsResponse( * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ @java.lang.Override - public java.util.List getScanConfigsList() { + public java.util.List + getScanConfigsList() { return scanConfigs_; } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -128,11 +158,13 @@ public java.util.List ge * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanConfigsOrBuilderList() { return scanConfigs_; } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -144,6 +176,8 @@ public int getScanConfigsCount() { return scanConfigs_.size(); } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -155,6 +189,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfigs(int return scanConfigs_.get(index); } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -170,12 +206,15 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +223,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +255,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < scanConfigs_.size(); i++) { output.writeMessage(1, scanConfigs_.get(i)); } @@ -245,8 +284,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, scanConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +297,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse other = (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) obj; + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse other = + (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) obj; - if (!getScanConfigsList() - .equals(other.getScanConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getScanConfigsList().equals(other.getScanConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,135 +330,147 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.class, + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getScanConfigsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,14 +486,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse + .getDefaultInstance(); } @java.lang.Override @@ -458,7 +509,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse build @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse result = new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse(this); + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse result = + new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse(this); int from_bitField0_ = bitField0_; if (scanConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,46 +530,51 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse + .getDefaultInstance()) return this; if (scanConfigsBuilder_ == null) { if (!other.scanConfigs_.isEmpty()) { if (scanConfigs_.isEmpty()) { @@ -536,9 +593,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListScanCon scanConfigsBuilder_ = null; scanConfigs_ = other.scanConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - scanConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getScanConfigsFieldBuilder() : null; + scanConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getScanConfigsFieldBuilder() + : null; } else { scanConfigsBuilder_.addAllMessages(other.scanConfigs_); } @@ -567,7 +625,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,28 +636,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List scanConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureScanConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = new java.util.ArrayList(scanConfigs_); + scanConfigs_ = + new java.util.ArrayList( + scanConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> scanConfigsBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> + scanConfigsBuilder_; /** + * + * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ - public java.util.List getScanConfigsList() { + public java.util.List + getScanConfigsList() { if (scanConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(scanConfigs_); } else { @@ -605,6 +675,8 @@ public java.util.List ge } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -619,6 +691,8 @@ public int getScanConfigsCount() { } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -633,6 +707,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfigs(int } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -654,6 +730,8 @@ public Builder setScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -672,6 +750,8 @@ public Builder setScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -692,6 +772,8 @@ public Builder addScanConfigs(com.google.cloud.websecurityscanner.v1alpha.ScanCo return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -713,6 +795,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -731,6 +815,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -749,6 +835,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -756,11 +844,11 @@ public Builder addScanConfigs( * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ public Builder addAllScanConfigs( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (scanConfigsBuilder_ == null) { ensureScanConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, scanConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanConfigs_); onChanged(); } else { scanConfigsBuilder_.addAllMessages(values); @@ -768,6 +856,8 @@ public Builder addAllScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -785,6 +875,8 @@ public Builder clearScanConfigs() { return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -802,6 +894,8 @@ public Builder removeScanConfigs(int index) { return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -813,6 +907,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanCon return getScanConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -822,19 +918,22 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanCon public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigsOrBuilder( int index) { if (scanConfigsBuilder_ == null) { - return scanConfigs_.get(index); } else { + return scanConfigs_.get(index); + } else { return scanConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsOrBuilderList() { + public java.util.List + getScanConfigsOrBuilderList() { if (scanConfigsBuilder_ != null) { return scanConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +941,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -849,10 +950,12 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder addScanConfigsBuilder() { - return getScanConfigsFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder() + .addBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()); } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -861,30 +964,36 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder addScanCon */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder addScanConfigsBuilder( int index) { - return getScanConfigsFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()); } /** + * + * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsBuilderList() { + public java.util.List + getScanConfigsBuilderList() { return getScanConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> getScanConfigsFieldBuilder() { if (scanConfigsBuilder_ == null) { - scanConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( - scanConfigs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + scanConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( + scanConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); scanConfigs_ = null; } return scanConfigsBuilder_; @@ -892,19 +1001,21 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder addScanCon private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1024,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1047,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1121,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) - private static final com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1158,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java index 03bb5e60..d44d28c3 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListScanConfigsResponseOrBuilder extends +public interface ListScanConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ - java.util.List - getScanConfigsList(); + java.util.List getScanConfigsList(); /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -25,6 +44,8 @@ public interface ListScanConfigsResponseOrBuilder extends */ com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfigs(int index); /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -33,15 +54,19 @@ public interface ListScanConfigsResponseOrBuilder extends */ int getScanConfigsCount(); /** + * + * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_configs = 1; */ - java.util.List + java.util.List getScanConfigsOrBuilderList(); /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -52,24 +77,29 @@ com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigsOr int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java similarity index 68% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java index 9df40675..e595bbab 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Request for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest} */ -public final class ListScanRunsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListScanRunsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) ListScanRunsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListScanRunsRequest.newBuilder() to construct. private ListScanRunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListScanRunsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListScanRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanRunsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListScanRunsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListScanRunsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListScanRunsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -122,30 +148,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,6 +184,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -163,6 +193,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -171,14 +202,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -186,16 +218,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -206,6 +237,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -213,6 +246,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -221,6 +255,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -259,8 +293,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -270,19 +303,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest other = (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest other = + (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,117 +337,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.class, + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.newBuilder() @@ -424,16 +465,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -447,13 +487,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.getDefaultInstance(); } @@ -468,7 +509,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest(this); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest result = + new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -480,46 +522,50 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -550,7 +596,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -562,19 +610,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -583,21 +635,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -605,57 +660,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -663,6 +731,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -670,13 +740,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -685,6 +755,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -692,15 +764,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -708,6 +779,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -715,20 +788,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -736,15 +811,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -752,23 +830,25 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -776,6 +856,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -783,6 +864,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -790,16 +873,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -807,17 +893,18 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -827,30 +914,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -862,9 +951,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java index 9d35ecb9..030d5799 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListScanRunsRequestOrBuilder extends +public interface ListScanRunsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -37,10 +64,13 @@ public interface ListScanRunsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -48,12 +78,14 @@ public interface ListScanRunsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -61,6 +93,7 @@ public interface ListScanRunsRequestOrBuilder extends
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java similarity index 73% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java index 61db79ae..892663f5 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Response for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse} */ -public final class ListScanRunsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListScanRunsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) ListScanRunsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListScanRunsResponse.newBuilder() to construct. private ListScanRunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListScanRunsResponse() { scanRuns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListScanRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanRunsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListScanRunsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,33 @@ private ListScanRunsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanRuns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanRuns_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + scanRuns_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(), + extensionRegistry)); + break; } - scanRuns_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +106,7 @@ private ListScanRunsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); @@ -94,22 +115,27 @@ private ListScanRunsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.Builder.class); } public static final int SCAN_RUNS_FIELD_NUMBER = 1; private java.util.List scanRuns_; /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -121,6 +147,8 @@ public java.util.List getSc return scanRuns_; } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -128,11 +156,13 @@ public java.util.List getSc * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanRunsOrBuilderList() { return scanRuns_; } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -144,6 +174,8 @@ public int getScanRunsCount() { return scanRuns_.size(); } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -155,6 +187,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRuns(int index return scanRuns_.get(index); } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -170,12 +204,15 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsO public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +221,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +253,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +265,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < scanRuns_.size(); i++) { output.writeMessage(1, scanRuns_.get(i)); } @@ -245,8 +282,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanRuns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, scanRuns_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanRuns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +295,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse other = (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) obj; + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse other = + (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) obj; - if (!getScanRunsList() - .equals(other.getScanRunsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getScanRunsList().equals(other.getScanRunsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +328,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.class, + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.newBuilder() @@ -411,17 +456,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getScanRunsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,13 +482,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.getDefaultInstance(); } @@ -458,7 +504,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse build() @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse result = new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse(this); + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse result = + new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse(this); int from_bitField0_ = bitField0_; if (scanRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,46 +525,50 @@ public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse.getDefaultInstance()) + return this; if (scanRunsBuilder_ == null) { if (!other.scanRuns_.isEmpty()) { if (scanRuns_.isEmpty()) { @@ -536,9 +587,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ListScanRun scanRunsBuilder_ = null; scanRuns_ = other.scanRuns_; bitField0_ = (bitField0_ & ~0x00000001); - scanRunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getScanRunsFieldBuilder() : null; + scanRunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getScanRunsFieldBuilder() + : null; } else { scanRunsBuilder_.addAllMessages(other.scanRuns_); } @@ -567,7 +619,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +630,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List scanRuns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureScanRunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanRuns_ = new java.util.ArrayList(scanRuns_); + scanRuns_ = + new java.util.ArrayList(scanRuns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> scanRunsBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanRun, + com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> + scanRunsBuilder_; /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -605,6 +667,8 @@ public java.util.List getSc } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -619,6 +683,8 @@ public int getScanRunsCount() { } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -633,6 +699,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRuns(int index } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -654,6 +722,8 @@ public Builder setScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -672,6 +742,8 @@ public Builder setScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -692,6 +764,8 @@ public Builder addScanRuns(com.google.cloud.websecurityscanner.v1alpha.ScanRun v return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -713,6 +787,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -731,6 +807,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -749,6 +827,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -759,8 +839,7 @@ public Builder addAllScanRuns( java.lang.Iterable values) { if (scanRunsBuilder_ == null) { ensureScanRunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, scanRuns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanRuns_); onChanged(); } else { scanRunsBuilder_.addAllMessages(values); @@ -768,6 +847,8 @@ public Builder addAllScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -785,6 +866,8 @@ public Builder clearScanRuns() { return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -802,6 +885,8 @@ public Builder removeScanRuns(int index) { return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -813,6 +898,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder getScanRunsBu return getScanRunsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -822,19 +909,22 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder getScanRunsBu public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsOrBuilder( int index) { if (scanRunsBuilder_ == null) { - return scanRuns_.get(index); } else { + return scanRuns_.get(index); + } else { return scanRunsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsOrBuilderList() { + public java.util.List + getScanRunsOrBuilderList() { if (scanRunsBuilder_ != null) { return scanRunsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +932,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsO } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -849,10 +941,12 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsO * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder addScanRunsBuilder() { - return getScanRunsFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()); + return getScanRunsFieldBuilder() + .addBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()); } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -861,30 +955,36 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder addScanRunsBu */ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder addScanRunsBuilder( int index) { - return getScanRunsFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()); + return getScanRunsFieldBuilder() + .addBuilder( + index, com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()); } /** + * + * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsBuilderList() { + public java.util.List + getScanRunsBuilderList() { return getScanRunsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanRun, + com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> getScanRunsFieldBuilder() { if (scanRunsBuilder_ == null) { - scanRunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder>( - scanRuns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + scanRunsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanRun, + com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder>( + scanRuns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); scanRuns_ = null; } return scanRunsBuilder_; @@ -892,19 +992,21 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder addScanRunsBu private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1015,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1038,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1112,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) - private static final com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse(); } - public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1149,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java index 2a709997..457cb69f 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ListScanRunsResponseOrBuilder extends +public interface ListScanRunsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ - java.util.List - getScanRunsList(); + java.util.List getScanRunsList(); /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -25,6 +44,8 @@ public interface ListScanRunsResponseOrBuilder extends */ com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRuns(int index); /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -33,43 +54,51 @@ public interface ListScanRunsResponseOrBuilder extends */ int getScanRunsCount(); /** + * + * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ - java.util.List + java.util.List getScanRunsOrBuilderList(); /** + * + * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1alpha.ScanRun scan_runs = 1; */ - com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsOrBuilder( - int index); + com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java similarity index 72% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java index 84d2aba8..eb2983e5 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Information reported for an outdated library.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.OutdatedLibrary} */ -public final class OutdatedLibrary extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutdatedLibrary extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) OutdatedLibraryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutdatedLibrary.newBuilder() to construct. private OutdatedLibrary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OutdatedLibrary() { libraryName_ = ""; version_ = ""; @@ -27,16 +45,15 @@ private OutdatedLibrary() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutdatedLibrary(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OutdatedLibrary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,34 +73,37 @@ private OutdatedLibrary( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - libraryName_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + libraryName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + version_ = s; + break; } - learnMoreUrls_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + learnMoreUrls_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,8 +111,7 @@ private OutdatedLibrary( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = learnMoreUrls_.getUnmodifiableView(); @@ -101,27 +120,33 @@ private OutdatedLibrary( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.class, + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder.class); } public static final int LIBRARY_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object libraryName_; /** + * + * *
    * The name of the outdated library.
    * 
* * string library_name = 1; + * * @return The libraryName. */ @java.lang.Override @@ -130,29 +155,29 @@ public java.lang.String getLibraryName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; } } /** + * + * *
    * The name of the outdated library.
    * 
* * string library_name = 1; + * * @return The bytes for libraryName. */ @java.lang.Override - public com.google.protobuf.ByteString - getLibraryNameBytes() { + public com.google.protobuf.ByteString getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); libraryName_ = b; return b; } else { @@ -163,11 +188,14 @@ public java.lang.String getLibraryName() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** + * + * *
    * The version number.
    * 
* * string version = 2; + * * @return The version. */ @java.lang.Override @@ -176,29 +204,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * The version number.
    * 
* * string version = 2; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -209,34 +237,42 @@ public java.lang.String getVersion() { public static final int LEARN_MORE_URLS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList learnMoreUrls_; /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList - getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { return learnMoreUrls_; } /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -244,20 +280,23 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString - getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,8 +308,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(libraryName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, libraryName_); } @@ -311,19 +349,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary other = (com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) obj; + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary other = + (com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) obj; - if (!getLibraryName() - .equals(other.getLibraryName())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getLearnMoreUrlsList() - .equals(other.getLearnMoreUrlsList())) return false; + if (!getLibraryName().equals(other.getLibraryName())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getLearnMoreUrlsList().equals(other.getLearnMoreUrlsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -349,117 +385,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information reported for an outdated library.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.OutdatedLibrary} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.class, + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.newBuilder() @@ -467,16 +513,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +535,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_OutdatedLibrary_descriptor; } @java.lang.Override @@ -511,7 +556,8 @@ public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary result = new com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary(this); + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary result = + new com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary(this); int from_bitField0_ = bitField0_; result.libraryName_ = libraryName_; result.version_ = version_; @@ -528,38 +574,39 @@ public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) other); } else { super.mergeFrom(other); return this; @@ -567,7 +614,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance()) + return this; if (!other.getLibraryName().isEmpty()) { libraryName_ = other.libraryName_; onChanged(); @@ -605,7 +653,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -614,22 +663,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object libraryName_ = ""; /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @return The libraryName. */ public java.lang.String getLibraryName() { java.lang.Object ref = libraryName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; @@ -638,20 +690,21 @@ public java.lang.String getLibraryName() { } } /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @return The bytes for libraryName. */ - public com.google.protobuf.ByteString - getLibraryNameBytes() { + public com.google.protobuf.ByteString getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); libraryName_ = b; return b; } else { @@ -659,54 +712,61 @@ public java.lang.String getLibraryName() { } } /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @param value The libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryName( - java.lang.String value) { + public Builder setLibraryName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + libraryName_ = value; onChanged(); return this; } /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @return This builder for chaining. */ public Builder clearLibraryName() { - + libraryName_ = getDefaultInstance().getLibraryName(); onChanged(); return this; } /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @param value The bytes for libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryNameBytes( - com.google.protobuf.ByteString value) { + public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + libraryName_ = value; onChanged(); return this; @@ -714,18 +774,20 @@ public Builder setLibraryNameBytes( private java.lang.Object version_ = ""; /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -734,20 +796,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -755,95 +818,112 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList learnMoreUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLearnMoreUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(learnMoreUrls_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList - getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { return learnMoreUrls_.getUnmodifiableView(); } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -851,80 +931,90 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString - getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param index The index to set the value at. * @param value The learnMoreUrls to set. * @return This builder for chaining. */ - public Builder setLearnMoreUrls( - int index, java.lang.String value) { + public Builder setLearnMoreUrls(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.set(index, value); onChanged(); return this; } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param value The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrls( - java.lang.String value) { + public Builder addLearnMoreUrls(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param values The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addAllLearnMoreUrls( - java.lang.Iterable values) { + public Builder addAllLearnMoreUrls(java.lang.Iterable values) { ensureLearnMoreUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, learnMoreUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, learnMoreUrls_); onChanged(); return this; } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @return This builder for chaining. */ public Builder clearLearnMoreUrls() { @@ -934,28 +1024,30 @@ public Builder clearLearnMoreUrls() { return this; } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param value The bytes of the learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrlsBytes( - com.google.protobuf.ByteString value) { + public Builder addLearnMoreUrlsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -965,12 +1057,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) private static final com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary(); } @@ -979,16 +1071,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutdatedLibrary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutdatedLibrary(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutdatedLibrary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutdatedLibrary(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1003,6 +1095,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java similarity index 67% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java index 727833b2..c12b9905 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java @@ -1,90 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface OutdatedLibraryOrBuilder extends +public interface OutdatedLibraryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.OutdatedLibrary) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the outdated library.
    * 
* * string library_name = 1; + * * @return The libraryName. */ java.lang.String getLibraryName(); /** + * + * *
    * The name of the outdated library.
    * 
* * string library_name = 1; + * * @return The bytes for libraryName. */ - com.google.protobuf.ByteString - getLibraryNameBytes(); + com.google.protobuf.ByteString getLibraryNameBytes(); /** + * + * *
    * The version number.
    * 
* * string version = 2; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * The version number.
    * 
* * string version = 2; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @return A list containing the learnMoreUrls. */ - java.util.List - getLearnMoreUrlsList(); + java.util.List getLearnMoreUrlsList(); /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @return The count of learnMoreUrls. */ int getLearnMoreUrlsCount(); /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ java.lang.String getLearnMoreUrls(int index); /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - com.google.protobuf.ByteString - getLearnMoreUrlsBytes(int index); + com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java similarity index 100% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java similarity index 66% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java index edab4a05..3f1d5d32 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/scan_config.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * A ScanConfig resource contains the configurations to launch a scan.
  * next id: 12
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig}
  */
-public final class ScanConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ScanConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig)
     ScanConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ScanConfig.newBuilder() to construct.
   private ScanConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ScanConfig() {
     name_ = "";
     displayName_ = "";
@@ -31,16 +49,15 @@ private ScanConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ScanConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ScanConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,116 +77,138 @@ private ScanConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            displayName_ = s;
-            break;
-          }
-          case 24: {
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            maxQps_ = input.readInt32();
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              startingUrls_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              displayName_ = s;
+              break;
             }
-            startingUrls_.add(s);
-            break;
-          }
-          case 42: {
-            com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder subBuilder = null;
-            if (authentication_ != null) {
-              subBuilder = authentication_.toBuilder();
+          case 24:
+            {
+              maxQps_ = input.readInt32();
+              break;
             }
-            authentication_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(authentication_);
-              authentication_ = subBuilder.buildPartial();
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                startingUrls_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              startingUrls_.add(s);
+              break;
             }
+          case 42:
+            {
+              com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder
+                  subBuilder = null;
+              if (authentication_ != null) {
+                subBuilder = authentication_.toBuilder();
+              }
+              authentication_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(authentication_);
+                authentication_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 48: {
-            int rawValue = input.readEnum();
-
-            userAgent_ = rawValue;
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              break;
             }
-            blacklistPatterns_.add(s);
-            break;
-          }
-          case 66: {
-            com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder subBuilder = null;
-            if (schedule_ != null) {
-              subBuilder = schedule_.toBuilder();
+          case 48:
+            {
+              int rawValue = input.readEnum();
+
+              userAgent_ = rawValue;
+              break;
             }
-            schedule_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(schedule_);
-              schedule_ = subBuilder.buildPartial();
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              blacklistPatterns_.add(s);
+              break;
             }
+          case 66:
+            {
+              com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder subBuilder =
+                  null;
+              if (schedule_ != null) {
+                subBuilder = schedule_.toBuilder();
+              }
+              schedule_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(schedule_);
+                schedule_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 72: {
-            int rawValue = input.readEnum();
-            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
-              targetPlatforms_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000004;
+              break;
             }
-            targetPlatforms_.add(rawValue);
-            break;
-          }
-          case 74: {
-            int length = input.readRawVarint32();
-            int oldLimit = input.pushLimit(length);
-            while(input.getBytesUntilLimit() > 0) {
+          case 72:
+            {
               int rawValue = input.readEnum();
               if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                 targetPlatforms_ = new java.util.ArrayList();
                 mutable_bitField0_ |= 0x00000004;
               }
               targetPlatforms_.add(rawValue);
+              break;
             }
-            input.popLimit(oldLimit);
-            break;
-          }
-          case 90: {
-            com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder subBuilder = null;
-            if (latestRun_ != null) {
-              subBuilder = latestRun_.toBuilder();
-            }
-            latestRun_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(latestRun_);
-              latestRun_ = subBuilder.buildPartial();
+          case 74:
+            {
+              int length = input.readRawVarint32();
+              int oldLimit = input.pushLimit(length);
+              while (input.getBytesUntilLimit() > 0) {
+                int rawValue = input.readEnum();
+                if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+                  targetPlatforms_ = new java.util.ArrayList();
+                  mutable_bitField0_ |= 0x00000004;
+                }
+                targetPlatforms_.add(rawValue);
+              }
+              input.popLimit(oldLimit);
+              break;
             }
+          case 90:
+            {
+              com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder subBuilder = null;
+              if (latestRun_ != null) {
+                subBuilder = latestRun_.toBuilder();
+              }
+              latestRun_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(latestRun_);
+                latestRun_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -177,8 +216,7 @@ private ScanConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         startingUrls_ = startingUrls_.getUnmodifiableView();
@@ -193,29 +231,35 @@ private ScanConfig(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto
+        .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto
+        .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder.class);
+            com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class,
+            com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Type of user agents used for scanning.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent} */ - public enum UserAgent - implements com.google.protobuf.ProtocolMessageEnum { + public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -224,6 +268,8 @@ public enum UserAgent */ USER_AGENT_UNSPECIFIED(0), /** + * + * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -232,6 +278,8 @@ public enum UserAgent */ CHROME_LINUX(1), /** + * + * *
      * Chrome on Android.
      * 
@@ -240,6 +288,8 @@ public enum UserAgent */ CHROME_ANDROID(2), /** + * + * *
      * Safari on IPhone.
      * 
@@ -251,6 +301,8 @@ public enum UserAgent ; /** + * + * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -259,6 +311,8 @@ public enum UserAgent */ public static final int USER_AGENT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -267,6 +321,8 @@ public enum UserAgent */ public static final int CHROME_LINUX_VALUE = 1; /** + * + * *
      * Chrome on Android.
      * 
@@ -275,6 +331,8 @@ public enum UserAgent */ public static final int CHROME_ANDROID_VALUE = 2; /** + * + * *
      * Safari on IPhone.
      * 
@@ -283,7 +341,6 @@ public enum UserAgent */ public static final int SAFARI_IPHONE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -308,50 +365,53 @@ public static UserAgent valueOf(int value) { */ public static UserAgent forNumber(int value) { switch (value) { - case 0: return USER_AGENT_UNSPECIFIED; - case 1: return CHROME_LINUX; - case 2: return CHROME_ANDROID; - case 3: return SAFARI_IPHONE; - default: return null; + case 0: + return USER_AGENT_UNSPECIFIED; + case 1: + return CHROME_LINUX; + case 2: + return CHROME_ANDROID; + case 3: + return SAFARI_IPHONE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - UserAgent> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public UserAgent findValueByNumber(int number) { - return UserAgent.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UserAgent findValueByNumber(int number) { + return UserAgent.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDescriptor() + .getEnumTypes() + .get(0); } private static final UserAgent[] VALUES = values(); - public static UserAgent valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static UserAgent valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -369,15 +429,18 @@ private UserAgent(int value) { } /** + * + * *
    * Cloud platforms supported by Cloud Web Security Scanner.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform} */ - public enum TargetPlatform - implements com.google.protobuf.ProtocolMessageEnum { + public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The target platform is unknown. Requests with this enum value will be
      * rejected with INVALID_ARGUMENT error.
@@ -387,6 +450,8 @@ public enum TargetPlatform
      */
     TARGET_PLATFORM_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Google App Engine service.
      * 
@@ -395,6 +460,8 @@ public enum TargetPlatform */ APP_ENGINE(1), /** + * + * *
      * Google Compute Engine service.
      * 
@@ -406,6 +473,8 @@ public enum TargetPlatform ; /** + * + * *
      * The target platform is unknown. Requests with this enum value will be
      * rejected with INVALID_ARGUMENT error.
@@ -415,6 +484,8 @@ public enum TargetPlatform
      */
     public static final int TARGET_PLATFORM_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Google App Engine service.
      * 
@@ -423,6 +494,8 @@ public enum TargetPlatform */ public static final int APP_ENGINE_VALUE = 1; /** + * + * *
      * Google Compute Engine service.
      * 
@@ -431,7 +504,6 @@ public enum TargetPlatform */ public static final int COMPUTE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -456,49 +528,51 @@ public static TargetPlatform valueOf(int value) { */ public static TargetPlatform forNumber(int value) { switch (value) { - case 0: return TARGET_PLATFORM_UNSPECIFIED; - case 1: return APP_ENGINE; - case 2: return COMPUTE; - default: return null; + case 0: + return TARGET_PLATFORM_UNSPECIFIED; + case 1: + return APP_ENGINE; + case 2: + return COMPUTE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - TargetPlatform> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TargetPlatform findValueByNumber(int number) { - return TargetPlatform.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TargetPlatform findValueByNumber(int number) { + return TargetPlatform.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDescriptor() + .getEnumTypes() + .get(1); } private static final TargetPlatform[] VALUES = values(); - public static TargetPlatform valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TargetPlatform valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -515,97 +589,132 @@ private TargetPlatform(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform) } - public interface AuthenticationOrBuilder extends + public interface AuthenticationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return Whether the googleAccount field is set. */ boolean hasGoogleAccount(); /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return The googleAccount. */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getGoogleAccount(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + getGoogleAccount(); /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder + getGoogleAccountOrBuilder(); /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return Whether the customAccount field is set. */ boolean hasCustomAccount(); /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return The customAccount. */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getCustomAccount(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + getCustomAccount(); /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder + getCustomAccountOrBuilder(); - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.AuthenticationCase getAuthenticationCase(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.AuthenticationCase + getAuthenticationCase(); } /** + * + * *
    * Scan authentication configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication} */ - public static final class Authentication extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Authentication extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) AuthenticationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Authentication.newBuilder() to construct. private Authentication(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Authentication() { - } + + private Authentication() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Authentication(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Authentication( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -624,41 +733,67 @@ private Authentication( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder subBuilder = null; - if (authenticationCase_ == 1) { - subBuilder = ((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_).toBuilder(); - } - authentication_ = - input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 1; - break; - } - case 18: { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder subBuilder = null; - if (authenticationCase_ == 2) { - subBuilder = ((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_).toBuilder(); + case 10: + { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + .Builder + subBuilder = null; + if (authenticationCase_ == 1) { + subBuilder = + ((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount) + authentication_) + .toBuilder(); + } + authentication_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount) + authentication_); + authentication_ = subBuilder.buildPartial(); + } + authenticationCase_ = 1; + break; } - authentication_ = - input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_); - authentication_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + .Builder + subBuilder = null; + if (authenticationCase_ == 2) { + subBuilder = + ((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount) + authentication_) + .toBuilder(); + } + authentication_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount) + authentication_); + authentication_ = subBuilder.buildPartial(); + } + authenticationCase_ = 2; + break; } - authenticationCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -666,88 +801,109 @@ private Authentication( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.class, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder.class); } - public interface GoogleAccountOrBuilder extends + public interface GoogleAccountOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); } /** + * + * *
      * Describes authentication configuration that uses a Google account.
      * 
* - * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code + * google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount} */ - public static final class GoogleAccount extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GoogleAccount extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) GoogleAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GoogleAccount.newBuilder() to construct. private GoogleAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GoogleAccount() { username_ = ""; password_ = ""; @@ -755,16 +911,15 @@ private GoogleAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GoogleAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GoogleAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -783,25 +938,27 @@ private GoogleAccount( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + password_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -809,34 +966,42 @@ private GoogleAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + .class, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + .Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** + * + * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ @java.lang.Override @@ -845,29 +1010,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** + * + * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -878,12 +1043,17 @@ public java.lang.String getUsername() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** + * + * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ @java.lang.Override @@ -892,30 +1062,32 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** + * + * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -924,6 +1096,7 @@ public java.lang.String getPassword() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -935,8 +1108,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -966,17 +1138,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount)) { + if (!(obj + instanceof + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount other = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) obj; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount other = + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) + obj; - if (!getUsername() - .equals(other.getUsername())) return false; - if (!getPassword() - .equals(other.getPassword())) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -997,88 +1171,116 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1088,44 +1290,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Describes authentication configuration that uses a Google account.
        * 
* - * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code + * google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount.class, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1137,19 +1348,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount build() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount result = buildPartial(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + build() { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1157,8 +1372,12 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Goo } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount result = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount(this); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + buildPartial() { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + result = + new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount(this); result.username_ = username_; result.password_ = password_; onBuilt(); @@ -1169,46 +1388,58 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Goo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount)other); + if (other + instanceof + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) { + return mergeFrom( + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -1232,11 +1463,15 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount parsedMessage = null; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1248,18 +1483,20 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** + * + * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1268,20 +1505,21 @@ public java.lang.String getUsername() { } } /** + * + * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -1289,54 +1527,61 @@ public java.lang.String getUsername() { } } /** + * + * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { + public Builder setUsername(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** + * + * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** + * + * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -1344,19 +1589,23 @@ public Builder setUsernameBytes( private java.lang.Object password_ = ""; /** + * + * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1365,21 +1614,24 @@ public java.lang.String getPassword() { } } /** + * + * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -1387,61 +1639,75 @@ public java.lang.String getPassword() { } } /** + * + * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { + public Builder setPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** + * + * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** + * + * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1454,30 +1720,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) - private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount(); + DEFAULT_INSTANCE = + new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount(); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GoogleAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GoogleAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GoogleAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1489,94 +1761,118 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CustomAccountOrBuilder extends + public interface CustomAccountOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); /** + * + * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The loginUrl. */ java.lang.String getLoginUrl(); /** + * + * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for loginUrl. */ - com.google.protobuf.ByteString - getLoginUrlBytes(); + com.google.protobuf.ByteString getLoginUrlBytes(); } /** + * + * *
      * Describes authentication configuration that uses a custom account.
      * 
* - * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code + * google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount} */ - public static final class CustomAccount extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CustomAccount extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) CustomAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomAccount.newBuilder() to construct. private CustomAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CustomAccount() { username_ = ""; password_ = ""; @@ -1585,16 +1881,15 @@ private CustomAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CustomAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CustomAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1613,31 +1908,34 @@ private CustomAccount( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + password_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - loginUrl_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + loginUrl_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1645,34 +1943,42 @@ private CustomAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + .class, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + .Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** + * + * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ @java.lang.Override @@ -1681,29 +1987,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** + * + * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -1714,12 +2020,17 @@ public java.lang.String getUsername() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** + * + * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ @java.lang.Override @@ -1728,30 +2039,32 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** + * + * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -1762,11 +2075,14 @@ public java.lang.String getPassword() { public static final int LOGIN_URL_FIELD_NUMBER = 3; private volatile java.lang.Object loginUrl_; /** + * + * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The loginUrl. */ @java.lang.Override @@ -1775,29 +2091,29 @@ public java.lang.String getLoginUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; } } /** + * + * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for loginUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getLoginUrlBytes() { + public com.google.protobuf.ByteString getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); loginUrl_ = b; return b; } else { @@ -1806,6 +2122,7 @@ public java.lang.String getLoginUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1817,8 +2134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -1854,19 +2170,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount)) { + if (!(obj + instanceof + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount other = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) obj; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount other = + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) + obj; - if (!getUsername() - .equals(other.getUsername())) return false; - if (!getPassword() - .equals(other.getPassword())) return false; - if (!getLoginUrl() - .equals(other.getLoginUrl())) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; + if (!getLoginUrl().equals(other.getLoginUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1889,88 +2206,116 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1980,44 +2325,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Describes authentication configuration that uses a custom account.
        * 
* - * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code + * google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount.class, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2031,19 +2385,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount build() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount result = buildPartial(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + build() { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2051,8 +2409,12 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Cus } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount result = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount(this); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + buildPartial() { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + result = + new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount(this); result.username_ = username_; result.password_ = password_; result.loginUrl_ = loginUrl_; @@ -2064,46 +2426,58 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Cus public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount)other); + if (other + instanceof + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) { + return mergeFrom( + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + .getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -2131,11 +2505,15 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount parsedMessage = null; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2147,18 +2525,20 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** + * + * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -2167,20 +2547,21 @@ public java.lang.String getUsername() { } } /** + * + * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -2188,54 +2569,61 @@ public java.lang.String getUsername() { } } /** + * + * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { + public Builder setUsername(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** + * + * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** + * + * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -2243,19 +2631,23 @@ public Builder setUsernameBytes( private java.lang.Object password_ = ""; /** + * + * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -2264,21 +2656,24 @@ public java.lang.String getPassword() { } } /** + * + * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -2286,57 +2681,70 @@ public java.lang.String getPassword() { } } /** + * + * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { + public Builder setPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** + * + * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** + * + * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; @@ -2344,18 +2752,20 @@ public Builder setPasswordBytes( private java.lang.Object loginUrl_ = ""; /** + * + * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The loginUrl. */ public java.lang.String getLoginUrl() { java.lang.Object ref = loginUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; @@ -2364,20 +2774,21 @@ public java.lang.String getLoginUrl() { } } /** + * + * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for loginUrl. */ - public com.google.protobuf.ByteString - getLoginUrlBytes() { + public com.google.protobuf.ByteString getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); loginUrl_ = b; return b; } else { @@ -2385,58 +2796,66 @@ public java.lang.String getLoginUrl() { } } /** + * + * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrl( - java.lang.String value) { + public Builder setLoginUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + loginUrl_ = value; onChanged(); return this; } /** + * + * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLoginUrl() { - + loginUrl_ = getDefaultInstance().getLoginUrl(); onChanged(); return this; } /** + * + * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setLoginUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + loginUrl_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2449,30 +2868,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) - private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount(); + DEFAULT_INSTANCE = + new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount(); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2484,21 +2909,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int authenticationCase_ = 0; private java.lang.Object authentication_; + public enum AuthenticationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GOOGLE_ACCOUNT(1), CUSTOM_ACCOUNT(2), AUTHENTICATION_NOT_SET(0); private final int value; + private AuthenticationCase(int value) { this.value = value; } @@ -2514,30 +2942,38 @@ public static AuthenticationCase valueOf(int value) { public static AuthenticationCase forNumber(int value) { switch (value) { - case 1: return GOOGLE_ACCOUNT; - case 2: return CUSTOM_ACCOUNT; - case 0: return AUTHENTICATION_NOT_SET; - default: return null; + case 1: + return GOOGLE_ACCOUNT; + case 2: + return CUSTOM_ACCOUNT; + case 0: + return AUTHENTICATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public AuthenticationCase - getAuthenticationCase() { - return AuthenticationCase.forNumber( - authenticationCase_); + public AuthenticationCase getAuthenticationCase() { + return AuthenticationCase.forNumber(authenticationCase_); } public static final int GOOGLE_ACCOUNT_FIELD_NUMBER = 1; /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return Whether the googleAccount field is set. */ @java.lang.Override @@ -2545,42 +2981,63 @@ public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + getGoogleAccount() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccountOrBuilder + getGoogleAccountOrBuilder() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } public static final int CUSTOM_ACCOUNT_FIELD_NUMBER = 2; /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return Whether the customAccount field is set. */ @java.lang.Override @@ -2588,36 +3045,53 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getCustomAccount() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + getCustomAccount() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccountOrBuilder + getCustomAccountOrBuilder() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2629,13 +3103,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (authenticationCase_ == 1) { - output.writeMessage(1, (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_); + output.writeMessage( + 1, + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) + authentication_); } if (authenticationCase_ == 2) { - output.writeMessage(2, (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_); + output.writeMessage( + 2, + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) + authentication_); } unknownFields.writeTo(output); } @@ -2647,12 +3126,20 @@ public int getSerializedSize() { size = 0; if (authenticationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount) + authentication_); } if (authenticationCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount) + authentication_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2662,22 +3149,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication other = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) obj; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication other = + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) obj; if (!getAuthenticationCase().equals(other.getAuthenticationCase())) return false; switch (authenticationCase_) { case 1: - if (!getGoogleAccount() - .equals(other.getGoogleAccount())) return false; + if (!getGoogleAccount().equals(other.getGoogleAccount())) return false; break; case 2: - if (!getCustomAccount() - .equals(other.getCustomAccount())) return false; + if (!getCustomAccount().equals(other.getCustomAccount())) return false; break; case 0: default: @@ -2711,87 +3197,95 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2801,44 +3295,50 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Scan authentication configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.class, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder + .class); } - // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2848,19 +3348,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication build() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result = buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2869,7 +3372,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication bui @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication(this); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result = + new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication(this); if (authenticationCase_ == 1) { if (googleAccountBuilder_ == null) { result.authentication_ = authentication_; @@ -2893,58 +3397,69 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication bui public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication)other); + if (other + instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) { + return mergeFrom( + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .getDefaultInstance()) return this; switch (other.getAuthenticationCase()) { - case GOOGLE_ACCOUNT: { - mergeGoogleAccount(other.getGoogleAccount()); - break; - } - case CUSTOM_ACCOUNT: { - mergeCustomAccount(other.getCustomAccount()); - break; - } - case AUTHENTICATION_NOT_SET: { - break; - } + case GOOGLE_ACCOUNT: + { + mergeGoogleAccount(other.getGoogleAccount()); + break; + } + case CUSTOM_ACCOUNT: + { + mergeCustomAccount(other.getCustomAccount()); + break; + } + case AUTHENTICATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2965,7 +3480,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2974,12 +3491,12 @@ public Builder mergeFrom( } return this; } + private int authenticationCase_ = 0; private java.lang.Object authentication_; - public AuthenticationCase - getAuthenticationCase() { - return AuthenticationCase.forNumber( - authenticationCase_); + + public AuthenticationCase getAuthenticationCase() { + return AuthenticationCase.forNumber(authenticationCase_); } public Builder clearAuthentication() { @@ -2989,15 +3506,24 @@ public Builder clearAuthentication() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder> googleAccountBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + .Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccountOrBuilder> + googleAccountBuilder_; /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return Whether the googleAccount field is set. */ @java.lang.Override @@ -3005,35 +3531,51 @@ public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + getGoogleAccount() { if (googleAccountBuilder_ == null) { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } else { if (authenticationCase_ == 1) { return googleAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ - public Builder setGoogleAccount(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount value) { + public Builder setGoogleAccount( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + value) { if (googleAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3047,14 +3589,20 @@ public Builder setGoogleAccount(com.google.cloud.websecurityscanner.v1alpha.Scan return this; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder builderForValue) { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + .Builder + builderForValue) { if (googleAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -3065,18 +3613,32 @@ public Builder setGoogleAccount( return this; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ - public Builder mergeGoogleAccount(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount value) { + public Builder mergeGoogleAccount( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + value) { if (googleAccountBuilder_ == null) { - if (authenticationCase_ == 1 && - authentication_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) { - authentication_ = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.newBuilder((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_) - .mergeFrom(value).buildPartial(); + if (authenticationCase_ == 1 + && authentication_ + != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount.getDefaultInstance()) { + authentication_ = + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + .newBuilder( + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount) + authentication_) + .mergeFrom(value) + .buildPartial(); } else { authentication_ = value; } @@ -3092,11 +3654,15 @@ public Builder mergeGoogleAccount(com.google.cloud.websecurityscanner.v1alpha.Sc return this; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ public Builder clearGoogleAccount() { if (googleAccountBuilder_ == null) { @@ -3115,67 +3681,111 @@ public Builder clearGoogleAccount() { return this; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder getGoogleAccountBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + .Builder + getGoogleAccountBuilder() { return getGoogleAccountFieldBuilder().getBuilder(); } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccountOrBuilder + getGoogleAccountOrBuilder() { if ((authenticationCase_ == 1) && (googleAccountBuilder_ != null)) { return googleAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + .Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccountOrBuilder> getGoogleAccountFieldBuilder() { if (googleAccountBuilder_ == null) { if (!(authenticationCase_ == 1)) { - authentication_ = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + authentication_ = + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } - googleAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount) authentication_, + googleAccountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .GoogleAccount) + authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 1; - onChanged();; + onChanged(); + ; return googleAccountBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder> customAccountBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + .Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccountOrBuilder> + customAccountBuilder_; /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return Whether the customAccount field is set. */ @java.lang.Override @@ -3183,35 +3793,51 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount getCustomAccount() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + getCustomAccount() { if (customAccountBuilder_ == null) { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } else { if (authenticationCase_ == 2) { return customAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ - public Builder setCustomAccount(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount value) { + public Builder setCustomAccount( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + value) { if (customAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3225,14 +3851,20 @@ public Builder setCustomAccount(com.google.cloud.websecurityscanner.v1alpha.Scan return this; } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ public Builder setCustomAccount( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder builderForValue) { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + .Builder + builderForValue) { if (customAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -3243,18 +3875,32 @@ public Builder setCustomAccount( return this; } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ - public Builder mergeCustomAccount(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount value) { + public Builder mergeCustomAccount( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + value) { if (customAccountBuilder_ == null) { - if (authenticationCase_ == 2 && - authentication_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) { - authentication_ = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.newBuilder((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_) - .mergeFrom(value).buildPartial(); + if (authenticationCase_ == 2 + && authentication_ + != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount.getDefaultInstance()) { + authentication_ = + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + .newBuilder( + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount) + authentication_) + .mergeFrom(value) + .buildPartial(); } else { authentication_ = value; } @@ -3270,11 +3916,15 @@ public Builder mergeCustomAccount(com.google.cloud.websecurityscanner.v1alpha.Sc return this; } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ public Builder clearCustomAccount() { if (customAccountBuilder_ == null) { @@ -3293,58 +3943,93 @@ public Builder clearCustomAccount() { return this; } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder getCustomAccountBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + .Builder + getCustomAccountBuilder() { return getCustomAccountFieldBuilder().getBuilder(); } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccountOrBuilder + getCustomAccountOrBuilder() { if ((authenticationCase_ == 2) && (customAccountBuilder_ != null)) { return customAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + .Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccountOrBuilder> getCustomAccountFieldBuilder() { if (customAccountBuilder_ == null) { if (!(authenticationCase_ == 2)) { - authentication_ = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + authentication_ = + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } - customAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount) authentication_, + customAccountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .CustomAccount) + authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 2; - onChanged();; + onChanged(); + ; return customAccountBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3357,30 +4042,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication) - private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication(); + DEFAULT_INSTANCE = + new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication(); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Authentication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Authentication(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authentication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Authentication(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3392,17 +4080,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ScheduleOrBuilder extends + public interface ScheduleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -3411,10 +4102,13 @@ public interface ScheduleOrBuilder extends
      * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return Whether the scheduleTime field is set. */ boolean hasScheduleTime(); /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -3423,10 +4117,13 @@ public interface ScheduleOrBuilder extends
      * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return The scheduleTime. */ com.google.protobuf.Timestamp getScheduleTime(); /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -3439,46 +4136,50 @@ public interface ScheduleOrBuilder extends
     com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder();
 
     /**
+     *
+     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The intervalDurationDays. */ int getIntervalDurationDays(); } /** + * + * *
    * Scan schedule configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule} */ - public static final class Schedule extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Schedule extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) ScheduleOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Schedule.newBuilder() to construct. private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Schedule() { - } + + private Schedule() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Schedule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Schedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3497,31 +4198,33 @@ private Schedule( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduleTime_ != null) { + subBuilder = scheduleTime_.toBuilder(); + } + scheduleTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduleTime_); + scheduleTime_ = subBuilder.buildPartial(); + } + + break; } - scheduleTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); + case 16: + { + intervalDurationDays_ = input.readInt32(); + break; } - - break; - } - case 16: { - - intervalDurationDays_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3529,29 +4232,33 @@ private Schedule( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.class, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder.class); } public static final int SCHEDULE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp scheduleTime_; /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -3560,6 +4267,7 @@ private Schedule(
      * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -3567,6 +4275,8 @@ public boolean hasScheduleTime() { return scheduleTime_ != null; } /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -3575,13 +4285,18 @@ public boolean hasScheduleTime() {
      * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return The scheduleTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; } /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -3599,11 +4314,14 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
     public static final int INTERVAL_DURATION_DAYS_FIELD_NUMBER = 2;
     private int intervalDurationDays_;
     /**
+     *
+     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The intervalDurationDays. */ @java.lang.Override @@ -3612,6 +4330,7 @@ public int getIntervalDurationDays() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3623,8 +4342,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (scheduleTime_ != null) { output.writeMessage(1, getScheduleTime()); } @@ -3641,12 +4359,10 @@ public int getSerializedSize() { size = 0; if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getScheduleTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getScheduleTime()); } if (intervalDurationDays_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, intervalDurationDays_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, intervalDurationDays_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3656,20 +4372,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule other = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) obj; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule other = + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) obj; if (hasScheduleTime() != other.hasScheduleTime()) return false; if (hasScheduleTime()) { - if (!getScheduleTime() - .equals(other.getScheduleTime())) return false; + if (!getScheduleTime().equals(other.getScheduleTime())) return false; } - if (getIntervalDurationDays() - != other.getIntervalDurationDays()) return false; + if (getIntervalDurationDays() != other.getIntervalDurationDays()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3693,87 +4408,95 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3783,44 +4506,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Scan schedule configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.class, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -3836,13 +4564,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance(); } @@ -3857,7 +4586,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule result = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule(this); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule result = + new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule(this); if (scheduleTimeBuilder_ == null) { result.scheduleTime_ = scheduleTime_; } else { @@ -3872,46 +4602,52 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance()) + return this; if (other.hasScheduleTime()) { mergeScheduleTime(other.getScheduleTime()); } @@ -3937,7 +4673,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3949,8 +4687,13 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp scheduleTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + scheduleTimeBuilder_; /** + * + * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -3959,12 +4702,15 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return scheduleTimeBuilder_ != null || scheduleTime_ != null; } /** + * + * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -3973,16 +4719,21 @@ public boolean hasScheduleTime() {
        * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return The scheduleTime. */ public com.google.protobuf.Timestamp getScheduleTime() { if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; } else { return scheduleTimeBuilder_.getMessage(); } } /** + * + * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4006,6 +4757,8 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4015,8 +4768,7 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp schedule_time = 1;
        */
-      public Builder setScheduleTime(
-          com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) {
         if (scheduleTimeBuilder_ == null) {
           scheduleTime_ = builderForValue.build();
           onChanged();
@@ -4027,6 +4779,8 @@ public Builder setScheduleTime(
         return this;
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4040,7 +4794,9 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         if (scheduleTimeBuilder_ == null) {
           if (scheduleTime_ != null) {
             scheduleTime_ =
-              com.google.protobuf.Timestamp.newBuilder(scheduleTime_).mergeFrom(value).buildPartial();
+                com.google.protobuf.Timestamp.newBuilder(scheduleTime_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             scheduleTime_ = value;
           }
@@ -4052,6 +4808,8 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4073,6 +4831,8 @@ public Builder clearScheduleTime() {
         return this;
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4083,11 +4843,13 @@ public Builder clearScheduleTime() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() {
-        
+
         onChanged();
         return getScheduleTimeFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4101,11 +4863,14 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
         if (scheduleTimeBuilder_ != null) {
           return scheduleTimeBuilder_.getMessageOrBuilder();
         } else {
-          return scheduleTime_ == null ?
-              com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_;
+          return scheduleTime_ == null
+              ? com.google.protobuf.Timestamp.getDefaultInstance()
+              : scheduleTime_;
         }
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4116,26 +4881,32 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
           getScheduleTimeFieldBuilder() {
         if (scheduleTimeBuilder_ == null) {
-          scheduleTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                  getScheduleTime(),
-                  getParentForChildren(),
-                  isClean());
+          scheduleTimeBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Timestamp,
+                  com.google.protobuf.Timestamp.Builder,
+                  com.google.protobuf.TimestampOrBuilder>(
+                  getScheduleTime(), getParentForChildren(), isClean());
           scheduleTime_ = null;
         }
         return scheduleTimeBuilder_;
       }
 
-      private int intervalDurationDays_ ;
+      private int intervalDurationDays_;
       /**
+       *
+       *
        * 
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The intervalDurationDays. */ @java.lang.Override @@ -4143,34 +4914,41 @@ public int getIntervalDurationDays() { return intervalDurationDays_; } /** + * + * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The intervalDurationDays to set. * @return This builder for chaining. */ public Builder setIntervalDurationDays(int value) { - + intervalDurationDays_ = value; onChanged(); return this; } /** + * + * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearIntervalDurationDays() { - + intervalDurationDays_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4183,30 +4961,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule) - private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule(); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schedule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4218,15 +4998,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -4234,6 +5016,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getDefaul
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -4242,14 +5025,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -4257,16 +5041,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -4277,11 +5060,14 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -4290,29 +5076,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -4323,6 +5109,8 @@ public java.lang.String getDisplayName() { public static final int MAX_QPS_FIELD_NUMBER = 3; private int maxQps_; /** + * + * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -4331,6 +5119,7 @@ public java.lang.String getDisplayName() {
    * 
* * int32 max_qps = 3; + * * @return The maxQps. */ @java.lang.Override @@ -4341,34 +5130,42 @@ public int getMaxQps() { public static final int STARTING_URLS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList startingUrls_; /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList - getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList getStartingUrlsList() { return startingUrls_; } /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -4376,28 +5173,34 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString - getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } public static final int AUTHENTICATION_FIELD_NUMBER = 5; private com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication_; /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * + * * @return Whether the authentication field is set. */ @java.lang.Override @@ -4405,92 +5208,121 @@ public boolean hasAuthentication() { return authentication_ != null; } /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * + * * @return The authentication. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getAuthentication() { - return authentication_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance() : authentication_; + return authentication_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance() + : authentication_; } /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder + getAuthenticationOrBuilder() { return getAuthentication(); } public static final int USER_AGENT_FIELD_NUMBER = 6; private int userAgent_; /** + * + * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; + * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override public int getUserAgentValue() { + @java.lang.Override + public int getUserAgentValue() { return userAgent_; } /** + * + * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; + * * @return The userAgent. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent getUserAgent() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.UNRECOGNIZED + : result; } public static final int BLACKLIST_PATTERNS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList blacklistPatterns_; /** + * + * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; + * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList - getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { return blacklistPatterns_; } /** + * + * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; + * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** + * + * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -4498,28 +5330,33 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** + * + * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString - getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } public static final int SCHEDULE_FIELD_NUMBER = 8; private com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule_; /** + * + * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; + * * @return Whether the schedule field is set. */ @java.lang.Override @@ -4527,18 +5364,25 @@ public boolean hasSchedule() { return schedule_ != null; } /** + * + * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; + * * @return The schedule. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getSchedule() { - return schedule_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() : schedule_; + return schedule_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() + : schedule_; } /** + * + * *
    * The schedule of the ScanConfig.
    * 
@@ -4546,43 +5390,64 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getSchedu * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder + getScheduleOrBuilder() { return getSchedule(); } public static final int TARGET_PLATFORMS_FIELD_NUMBER = 9; private java.util.List targetPlatforms_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform> targetPlatforms_converter_ = + java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform> + targetPlatforms_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>() { - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform convert(java.lang.Integer from) { + java.lang.Integer, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform convert( + java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform result = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform.valueOf(from); - return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform result = + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform.valueOf( + from); + return result == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform + .UNRECOGNIZED + : result; } }; /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return A list containing the targetPlatforms. */ @java.lang.Override - public java.util.List getTargetPlatformsList() { + public java.util.List + getTargetPlatformsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>(targetPlatforms_, targetPlatforms_converter_); + java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>( + targetPlatforms_, targetPlatforms_converter_); } /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return The count of targetPlatforms. */ @java.lang.Override @@ -4590,40 +5455,55 @@ public int getTargetPlatformsCount() { return targetPlatforms_.size(); } /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms(int index) { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms( + int index) { return targetPlatforms_converter_.convert(targetPlatforms_.get(index)); } /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return A list containing the enum numeric values on the wire for targetPlatforms. */ @java.lang.Override - public java.util.List - getTargetPlatformsValueList() { + public java.util.List getTargetPlatformsValueList() { return targetPlatforms_; } /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ @@ -4631,16 +5511,20 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform get public int getTargetPlatformsValue(int index) { return targetPlatforms_.get(index); } + private int targetPlatformsMemoizedSerializedSize; public static final int LATEST_RUN_FIELD_NUMBER = 11; private com.google.cloud.websecurityscanner.v1alpha.ScanRun latestRun_; /** + * + * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; + * * @return Whether the latestRun field is set. */ @java.lang.Override @@ -4648,18 +5532,25 @@ public boolean hasLatestRun() { return latestRun_ != null; } /** + * + * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; + * * @return The latestRun. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun getLatestRun() { - return latestRun_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() : latestRun_; + return latestRun_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() + : latestRun_; } /** + * + * *
    * Latest ScanRun if available.
    * 
@@ -4672,6 +5563,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getLatestRun } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4683,8 +5575,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); @@ -4701,7 +5592,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (authentication_ != null) { output.writeMessage(5, getAuthentication()); } - if (userAgent_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { + if (userAgent_ + != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED + .getNumber()) { output.writeEnum(6, userAgent_); } for (int i = 0; i < blacklistPatterns_.size(); i++) { @@ -4736,8 +5629,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (maxQps_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxQps_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxQps_); } { int dataSize = 0; @@ -4748,12 +5640,12 @@ public int getSerializedSize() { size += 1 * getStartingUrlsList().size(); } if (authentication_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAuthentication()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthentication()); } - if (userAgent_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, userAgent_); + if (userAgent_ + != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, userAgent_); } { int dataSize = 0; @@ -4764,24 +5656,23 @@ public int getSerializedSize() { size += 1 * getBlacklistPatternsList().size(); } if (schedule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSchedule()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSchedule()); } { int dataSize = 0; for (int i = 0; i < targetPlatforms_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(targetPlatforms_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(targetPlatforms_.get(i)); } size += dataSize; - if (!getTargetPlatformsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }targetPlatformsMemoizedSerializedSize = dataSize; + if (!getTargetPlatformsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + targetPlatformsMemoizedSerializedSize = dataSize; } if (latestRun_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getLatestRun()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLatestRun()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4791,39 +5682,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanConfig other = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig) obj; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig other = + (com.google.cloud.websecurityscanner.v1alpha.ScanConfig) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (getMaxQps() - != other.getMaxQps()) return false; - if (!getStartingUrlsList() - .equals(other.getStartingUrlsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (getMaxQps() != other.getMaxQps()) return false; + if (!getStartingUrlsList().equals(other.getStartingUrlsList())) return false; if (hasAuthentication() != other.hasAuthentication()) return false; if (hasAuthentication()) { - if (!getAuthentication() - .equals(other.getAuthentication())) return false; + if (!getAuthentication().equals(other.getAuthentication())) return false; } if (userAgent_ != other.userAgent_) return false; - if (!getBlacklistPatternsList() - .equals(other.getBlacklistPatternsList())) return false; + if (!getBlacklistPatternsList().equals(other.getBlacklistPatternsList())) return false; if (hasSchedule() != other.hasSchedule()) return false; if (hasSchedule()) { - if (!getSchedule() - .equals(other.getSchedule())) return false; + if (!getSchedule().equals(other.getSchedule())) return false; } if (!targetPlatforms_.equals(other.targetPlatforms_)) return false; if (hasLatestRun() != other.hasLatestRun()) return false; if (hasLatestRun()) { - if (!getLatestRun() - .equals(other.getLatestRun())) return false; + if (!getLatestRun().equals(other.getLatestRun())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -4874,96 +5758,104 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A ScanConfig resource contains the configurations to launch a scan.
    * next id: 12
@@ -4971,21 +5863,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanConfig)
       com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto
+          .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto
+          .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder.class);
+              com.google.cloud.websecurityscanner.v1alpha.ScanConfig.class,
+              com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.newBuilder()
@@ -4993,16 +5887,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -5042,9 +5935,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto
+          .internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor;
     }
 
     @java.lang.Override
@@ -5063,7 +5956,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1alpha.ScanConfig buildPartial() {
-      com.google.cloud.websecurityscanner.v1alpha.ScanConfig result = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig(this);
+      com.google.cloud.websecurityscanner.v1alpha.ScanConfig result =
+          new com.google.cloud.websecurityscanner.v1alpha.ScanConfig(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -5107,38 +6001,39 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanConfig) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -5146,7 +6041,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanConfig other) {
-      if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -5219,7 +6115,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1alpha.ScanConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -5228,10 +6125,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5239,13 +6139,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -5254,6 +6154,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5261,15 +6163,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -5277,6 +6178,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5284,20 +6187,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5305,15 +6210,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5321,16 +6229,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -5338,18 +6246,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -5358,20 +6268,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -5379,61 +6290,70 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private int maxQps_ ; + private int maxQps_; /** + * + * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -5442,6 +6362,7 @@ public Builder setDisplayNameBytes(
      * 
* * int32 max_qps = 3; + * * @return The maxQps. */ @java.lang.Override @@ -5449,6 +6370,8 @@ public int getMaxQps() { return maxQps_; } /** + * + * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -5457,16 +6380,19 @@ public int getMaxQps() {
      * 
* * int32 max_qps = 3; + * * @param value The maxQps to set. * @return This builder for chaining. */ public Builder setMaxQps(int value) { - + maxQps_ = value; onChanged(); return this; } /** + * + * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -5475,51 +6401,62 @@ public Builder setMaxQps(int value) {
      * 
* * int32 max_qps = 3; + * * @return This builder for chaining. */ public Builder clearMaxQps() { - + maxQps_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList startingUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList startingUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureStartingUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { startingUrls_ = new com.google.protobuf.LazyStringArrayList(startingUrls_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList - getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList getStartingUrlsList() { return startingUrls_.getUnmodifiableView(); } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -5527,80 +6464,90 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString - getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The startingUrls to set. * @return This builder for chaining. */ - public Builder setStartingUrls( - int index, java.lang.String value) { + public Builder setStartingUrls(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrls( - java.lang.String value) { + public Builder addStartingUrls(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); return this; } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The startingUrls to add. * @return This builder for chaining. */ - public Builder addAllStartingUrls( - java.lang.Iterable values) { + public Builder addAllStartingUrls(java.lang.Iterable values) { ensureStartingUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, startingUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, startingUrls_); onChanged(); return this; } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearStartingUrls() { @@ -5610,20 +6557,22 @@ public Builder clearStartingUrls() { return this; } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrlsBytes( - com.google.protobuf.ByteString value) { + public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); @@ -5632,44 +6581,63 @@ public Builder addStartingUrlsBytes( private com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder> authenticationBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder> + authenticationBuilder_; /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * + * * @return Whether the authentication field is set. */ public boolean hasAuthentication() { return authenticationBuilder_ != null || authentication_ != null; } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * + * * @return The authentication. */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getAuthentication() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + getAuthentication() { if (authenticationBuilder_ == null) { - return authentication_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance() : authentication_; + return authentication_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .getDefaultInstance() + : authentication_; } else { return authenticationBuilder_.getMessage(); } } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * */ - public Builder setAuthentication(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication value) { + public Builder setAuthentication( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5683,15 +6651,19 @@ public Builder setAuthentication(com.google.cloud.websecurityscanner.v1alpha.Sca return this; } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * */ public Builder setAuthentication( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder builderForValue) { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder + builderForValue) { if (authenticationBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -5702,18 +6674,25 @@ public Builder setAuthentication( return this; } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * */ - public Builder mergeAuthentication(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication value) { + public Builder mergeAuthentication( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (authentication_ != null) { authentication_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.newBuilder(authentication_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.newBuilder( + authentication_) + .mergeFrom(value) + .buildPartial(); } else { authentication_ = value; } @@ -5725,12 +6704,15 @@ public Builder mergeAuthentication(com.google.cloud.websecurityscanner.v1alpha.S return this; } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * */ public Builder clearAuthentication() { if (authenticationBuilder_ == null) { @@ -5744,51 +6726,67 @@ public Builder clearAuthentication() { return this; } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder getAuthenticationBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder + getAuthenticationBuilder() { + onChanged(); return getAuthenticationFieldBuilder().getBuilder(); } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder + getAuthenticationOrBuilder() { if (authenticationBuilder_ != null) { return authenticationBuilder_.getMessageOrBuilder(); } else { - return authentication_ == null ? - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance() : authentication_; + return authentication_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .getDefaultInstance() + : authentication_; } } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder> getAuthenticationFieldBuilder() { if (authenticationBuilder_ == null) { - authenticationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder>( - getAuthentication(), - getParentForChildren(), - isClean()); + authenticationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder>( + getAuthentication(), getParentForChildren(), isClean()); authentication_ = null; } return authenticationBuilder_; @@ -5796,117 +6794,147 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBu private int userAgent_ = 0; /** + * + * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; + * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override public int getUserAgentValue() { + @java.lang.Override + public int getUserAgentValue() { return userAgent_; } /** + * + * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; + * * @param value The enum numeric value on the wire for userAgent to set. * @return This builder for chaining. */ public Builder setUserAgentValue(int value) { - + userAgent_ = value; onChanged(); return this; } /** + * + * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; + * * @return The userAgent. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.UNRECOGNIZED + : result; } /** + * + * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; + * * @param value The userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgent(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent value) { + public Builder setUserAgent( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent value) { if (value == null) { throw new NullPointerException(); } - + userAgent_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; + * * @return This builder for chaining. */ public Builder clearUserAgent() { - + userAgent_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList blacklistPatterns_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureBlacklistPatternsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(blacklistPatterns_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList - getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { return blacklistPatterns_.getUnmodifiableView(); } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -5914,85 +6942,95 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString - getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param index The index to set the value at. * @param value The blacklistPatterns to set. * @return This builder for chaining. */ - public Builder setBlacklistPatterns( - int index, java.lang.String value) { + public Builder setBlacklistPatterns(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.set(index, value); onChanged(); return this; } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param value The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatterns( - java.lang.String value) { + public Builder addBlacklistPatterns(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); return this; } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param values The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addAllBlacklistPatterns( - java.lang.Iterable values) { + public Builder addAllBlacklistPatterns(java.lang.Iterable values) { ensureBlacklistPatternsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blacklistPatterns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blacklistPatterns_); onChanged(); return this; } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @return This builder for chaining. */ public Builder clearBlacklistPatterns() { @@ -6002,21 +7040,23 @@ public Builder clearBlacklistPatterns() { return this; } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param value The bytes of the blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatternsBytes( - com.google.protobuf.ByteString value) { + public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); @@ -6025,41 +7065,55 @@ public Builder addBlacklistPatternsBytes( private com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder> scheduleBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder> + scheduleBuilder_; /** + * + * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; + * * @return Whether the schedule field is set. */ public boolean hasSchedule() { return scheduleBuilder_ != null || schedule_ != null; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; + * * @return The schedule. */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getSchedule() { if (scheduleBuilder_ == null) { - return schedule_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() : schedule_; + return schedule_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() + : schedule_; } else { return scheduleBuilder_.getMessage(); } } /** + * + * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ - public Builder setSchedule(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule value) { + public Builder setSchedule( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule value) { if (scheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6073,6 +7127,8 @@ public Builder setSchedule(com.google.cloud.websecurityscanner.v1alpha.ScanConfi return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -6091,17 +7147,22 @@ public Builder setSchedule( return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ - public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule value) { + public Builder mergeSchedule( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule value) { if (scheduleBuilder_ == null) { if (schedule_ != null) { schedule_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.newBuilder(schedule_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.newBuilder(schedule_) + .mergeFrom(value) + .buildPartial(); } else { schedule_ = value; } @@ -6113,6 +7174,8 @@ public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1alpha.ScanCon return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -6131,33 +7194,42 @@ public Builder clearSchedule() { return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder getScheduleBuilder() { - + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder + getScheduleBuilder() { + onChanged(); return getScheduleFieldBuilder().getBuilder(); } /** + * + * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder + getScheduleOrBuilder() { if (scheduleBuilder_ != null) { return scheduleBuilder_.getMessageOrBuilder(); } else { - return schedule_ == null ? - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() : schedule_; + return schedule_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() + : schedule_; } } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -6165,21 +7237,24 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder> getScheduleFieldBuilder() { if (scheduleBuilder_ == null) { - scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder>( - getSchedule(), - getParentForChildren(), - isClean()); + scheduleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder>( + getSchedule(), getParentForChildren(), isClean()); schedule_ = null; } return scheduleBuilder_; } - private java.util.List targetPlatforms_ = - java.util.Collections.emptyList(); + private java.util.List targetPlatforms_ = java.util.Collections.emptyList(); + private void ensureTargetPlatformsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { targetPlatforms_ = new java.util.ArrayList(targetPlatforms_); @@ -6187,50 +7262,73 @@ private void ensureTargetPlatformsIsMutable() { } } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return A list containing the targetPlatforms. */ - public java.util.List getTargetPlatformsList() { + public java.util.List + getTargetPlatformsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>(targetPlatforms_, targetPlatforms_converter_); + java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>( + targetPlatforms_, targetPlatforms_converter_); } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return The count of targetPlatforms. */ public int getTargetPlatformsCount() { return targetPlatforms_.size(); } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms(int index) { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms( + int index) { return targetPlatforms_converter_.convert(targetPlatforms_.get(index)); } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param index The index to set the value at. * @param value The targetPlatforms to set. * @return This builder for chaining. @@ -6246,16 +7344,22 @@ public Builder setTargetPlatforms( return this; } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param value The targetPlatforms to add. * @return This builder for chaining. */ - public Builder addTargetPlatforms(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform value) { + public Builder addTargetPlatforms( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform value) { if (value == null) { throw new NullPointerException(); } @@ -6265,17 +7369,24 @@ public Builder addTargetPlatforms(com.google.cloud.websecurityscanner.v1alpha.Sc return this; } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param values The targetPlatforms to add. * @return This builder for chaining. */ public Builder addAllTargetPlatforms( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform> + values) { ensureTargetPlatformsIsMutable(); for (com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform value : values) { targetPlatforms_.add(value.getNumber()); @@ -6284,12 +7395,17 @@ public Builder addAllTargetPlatforms( return this; } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return This builder for chaining. */ public Builder clearTargetPlatforms() { @@ -6299,25 +7415,34 @@ public Builder clearTargetPlatforms() { return this; } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return A list containing the enum numeric values on the wire for targetPlatforms. */ - public java.util.List - getTargetPlatformsValueList() { + public java.util.List getTargetPlatformsValueList() { return java.util.Collections.unmodifiableList(targetPlatforms_); } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ @@ -6325,30 +7450,39 @@ public int getTargetPlatformsValue(int index) { return targetPlatforms_.get(index); } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for targetPlatforms to set. * @return This builder for chaining. */ - public Builder setTargetPlatformsValue( - int index, int value) { + public Builder setTargetPlatformsValue(int index, int value) { ensureTargetPlatformsIsMutable(); targetPlatforms_.set(index, value); onChanged(); return this; } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param value The enum numeric value on the wire for targetPlatforms to add. * @return This builder for chaining. */ @@ -6359,17 +7493,21 @@ public Builder addTargetPlatformsValue(int value) { return this; } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param values The enum numeric values on the wire for targetPlatforms to add. * @return This builder for chaining. */ - public Builder addAllTargetPlatformsValue( - java.lang.Iterable values) { + public Builder addAllTargetPlatformsValue(java.lang.Iterable values) { ensureTargetPlatformsIsMutable(); for (int value : values) { targetPlatforms_.add(value); @@ -6380,34 +7518,47 @@ public Builder addAllTargetPlatformsValue( private com.google.cloud.websecurityscanner.v1alpha.ScanRun latestRun_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> latestRunBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanRun, + com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> + latestRunBuilder_; /** + * + * *
      * Latest ScanRun if available.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; + * * @return Whether the latestRun field is set. */ public boolean hasLatestRun() { return latestRunBuilder_ != null || latestRun_ != null; } /** + * + * *
      * Latest ScanRun if available.
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; + * * @return The latestRun. */ public com.google.cloud.websecurityscanner.v1alpha.ScanRun getLatestRun() { if (latestRunBuilder_ == null) { - return latestRun_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() : latestRun_; + return latestRun_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() + : latestRun_; } else { return latestRunBuilder_.getMessage(); } } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6428,6 +7579,8 @@ public Builder setLatestRun(com.google.cloud.websecurityscanner.v1alpha.ScanRun return this; } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6446,6 +7599,8 @@ public Builder setLatestRun( return this; } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6456,7 +7611,9 @@ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1alpha.ScanRu if (latestRunBuilder_ == null) { if (latestRun_ != null) { latestRun_ = - com.google.cloud.websecurityscanner.v1alpha.ScanRun.newBuilder(latestRun_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanRun.newBuilder(latestRun_) + .mergeFrom(value) + .buildPartial(); } else { latestRun_ = value; } @@ -6468,6 +7625,8 @@ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1alpha.ScanRu return this; } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6486,6 +7645,8 @@ public Builder clearLatestRun() { return this; } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6493,11 +7654,13 @@ public Builder clearLatestRun() { * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; */ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder getLatestRunBuilder() { - + onChanged(); return getLatestRunFieldBuilder().getBuilder(); } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6508,11 +7671,14 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getLatestRun if (latestRunBuilder_ != null) { return latestRunBuilder_.getMessageOrBuilder(); } else { - return latestRun_ == null ? - com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() : latestRun_; + return latestRun_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() + : latestRun_; } } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6520,21 +7686,24 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getLatestRun * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanRun, + com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder> getLatestRunFieldBuilder() { if (latestRunBuilder_ == null) { - latestRunBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanRun, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder>( - getLatestRun(), - getParentForChildren(), - isClean()); + latestRunBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanRun, + com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder>( + getLatestRun(), getParentForChildren(), isClean()); latestRun_ = null; } return latestRunBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6544,12 +7713,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanConfig) private static final com.google.cloud.websecurityscanner.v1alpha.ScanConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig(); } @@ -6558,16 +7727,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.ScanConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6582,6 +7751,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java similarity index 100% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java similarity index 78% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java index 656e3268..a2e125d7 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/scan_config.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ScanConfigOrBuilder extends +public interface ScanConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -15,10 +33,13 @@ public interface ScanConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -26,32 +47,39 @@ public interface ScanConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -60,164 +88,211 @@ public interface ScanConfigOrBuilder extends
    * 
* * int32 max_qps = 3; + * * @return The maxQps. */ int getMaxQps(); /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the startingUrls. */ - java.util.List - getStartingUrlsList(); + java.util.List getStartingUrlsList(); /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of startingUrls. */ int getStartingUrlsCount(); /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The startingUrls at the given index. */ java.lang.String getStartingUrls(int index); /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - com.google.protobuf.ByteString - getStartingUrlsBytes(int index); + com.google.protobuf.ByteString getStartingUrlsBytes(int index); /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * + * * @return Whether the authentication field is set. */ boolean hasAuthentication(); /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * + * * @return The authentication. */ com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication getAuthentication(); /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication authentication = 5; + * */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder + getAuthenticationOrBuilder(); /** + * + * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; + * * @return The enum numeric value on the wire for userAgent. */ int getUserAgentValue(); /** + * + * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent user_agent = 6; + * * @return The userAgent. */ com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent getUserAgent(); /** + * + * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; + * * @return A list containing the blacklistPatterns. */ - java.util.List - getBlacklistPatternsList(); + java.util.List getBlacklistPatternsList(); /** + * + * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; + * * @return The count of blacklistPatterns. */ int getBlacklistPatternsCount(); /** + * + * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ java.lang.String getBlacklistPatterns(int index); /** + * + * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - com.google.protobuf.ByteString - getBlacklistPatternsBytes(int index); + com.google.protobuf.ByteString getBlacklistPatternsBytes(int index); /** + * + * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; + * * @return Whether the schedule field is set. */ boolean hasSchedule(); /** + * + * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule schedule = 8; + * * @return The schedule. */ com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getSchedule(); /** + * + * *
    * The schedule of the ScanConfig.
    * 
@@ -227,78 +302,112 @@ public interface ScanConfigOrBuilder extends com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder(); /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return A list containing the targetPlatforms. */ - java.util.List getTargetPlatformsList(); + java.util.List + getTargetPlatformsList(); /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return The count of targetPlatforms. */ int getTargetPlatformsCount(); /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms(int index); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform getTargetPlatforms( + int index); /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return A list containing the enum numeric values on the wire for targetPlatforms. */ - java.util.List - getTargetPlatformsValueList(); + java.util.List getTargetPlatformsValueList(); /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ int getTargetPlatformsValue(int index); /** + * + * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; + * * @return Whether the latestRun field is set. */ boolean hasLatestRun(); /** + * + * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun latest_run = 11; + * * @return The latestRun. */ com.google.cloud.websecurityscanner.v1alpha.ScanRun getLatestRun(); /** + * + * *
    * Latest ScanRun if available.
    * 
diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java new file mode 100644 index 00000000..3a47353f --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java @@ -0,0 +1,183 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/scan_config.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class ScanConfigProto { + private ScanConfigProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/websecurityscanner/v1alph" + + "a/scan_config.proto\022\'google.cloud.websec" + + "urityscanner.v1alpha\032\037google/api/field_b" + + "ehavior.proto\032\031google/api/resource.proto" + + "\0326google/cloud/websecurityscanner/v1alph" + + "a/scan_run.proto\032\037google/protobuf/timest" + + "amp.proto\"\261\n\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\031" + + "\n\014display_name\030\002 \001(\tB\003\340A\002\022\017\n\007max_qps\030\003 \001" + + "(\005\022\032\n\rstarting_urls\030\004 \003(\tB\003\340A\002\022Z\n\016authen" + + "tication\030\005 \001(\0132B.google.cloud.websecurit" + + "yscanner.v1alpha.ScanConfig.Authenticati" + + "on\022Q\n\nuser_agent\030\006 \001(\0162=.google.cloud.we" + + "bsecurityscanner.v1alpha.ScanConfig.User" + + "Agent\022\032\n\022blacklist_patterns\030\007 \003(\t\022N\n\010sch" + + "edule\030\010 \001(\0132<.google.cloud.websecuritysc" + + "anner.v1alpha.ScanConfig.Schedule\022\\\n\020tar" + + "get_platforms\030\t \003(\0162B.google.cloud.webse" + + "curityscanner.v1alpha.ScanConfig.TargetP" + + "latform\022D\n\nlatest_run\030\013 \001(\01320.google.clo" + + "ud.websecurityscanner.v1alpha.ScanRun\032\226\003" + + "\n\016Authentication\022j\n\016google_account\030\001 \001(\013" + + "2P.google.cloud.websecurityscanner.v1alp" + + "ha.ScanConfig.Authentication.GoogleAccou" + + "ntH\000\022j\n\016custom_account\030\002 \001(\0132P.google.cl" + + "oud.websecurityscanner.v1alpha.ScanConfi" + + "g.Authentication.CustomAccountH\000\032@\n\rGoog" + + "leAccount\022\025\n\010username\030\001 \001(\tB\003\340A\002\022\030\n\010pass" + + "word\030\002 \001(\tB\006\340A\002\340A\004\032X\n\rCustomAccount\022\025\n\010u" + + "sername\030\001 \001(\tB\003\340A\002\022\030\n\010password\030\002 \001(\tB\006\340A" + + "\002\340A\004\022\026\n\tlogin_url\030\003 \001(\tB\003\340A\002B\020\n\016authenti" + + "cation\032b\n\010Schedule\0221\n\rschedule_time\030\001 \001(" + + "\0132\032.google.protobuf.Timestamp\022#\n\026interva" + + "l_duration_days\030\002 \001(\005B\003\340A\002\"`\n\tUserAgent\022" + + "\032\n\026USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LI" + + "NUX\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHO" + + "NE\020\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFOR" + + "M_UNSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMPU" + + "TE\020\002:_\352A\\\n,websecurityscanner.googleapis" + + ".com/ScanConfig\022,projects/{project}/scan" + + "Configs/{scan_config}B\233\001\n+com.google.clo" + + "ud.websecurityscanner.v1alphaB\017ScanConfi" + + "gProtoP\001ZYgoogle.golang.org/genproto/goo" + + "gleapis/cloud/websecurityscanner/v1alpha" + + ";websecurityscannerb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "MaxQps", + "StartingUrls", + "Authentication", + "UserAgent", + "BlacklistPatterns", + "Schedule", + "TargetPlatforms", + "LatestRun", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor = + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor, + new java.lang.String[] { + "GoogleAccount", "CustomAccount", "Authentication", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_GoogleAccount_descriptor, + new java.lang.String[] { + "Username", "Password", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Authentication_CustomAccount_descriptor, + new java.lang.String[] { + "Username", "Password", "LoginUrl", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor = + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanConfig_Schedule_descriptor, + new java.lang.String[] { + "ScheduleTime", "IntervalDurationDays", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java similarity index 74% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java index 677a5a03..55bf5a93 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/scan_run.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * A ScanRun is a output-only resource representing an actual run of the scan.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanRun} */ -public final class ScanRun extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ScanRun extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ScanRun) ScanRunOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ScanRun.newBuilder() to construct. private ScanRun(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ScanRun() { name_ = ""; executionState_ = 0; @@ -27,16 +45,15 @@ private ScanRun() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ScanRun(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ScanRun( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,77 +72,84 @@ private ScanRun( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - executionState_ = rawValue; - break; - } - case 24: { - int rawValue = input.readEnum(); + executionState_ = rawValue; + break; + } + case 24: + { + int rawValue = input.readEnum(); - resultState_ = rawValue; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); + resultState_ = rawValue; + break; } - startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + case 48: + { + urlsCrawledCount_ = input.readInt64(); + break; } - - break; - } - case 48: { - - urlsCrawledCount_ = input.readInt64(); - break; - } - case 56: { - - urlsTestedCount_ = input.readInt64(); - break; - } - case 64: { - - hasVulnerabilities_ = input.readBool(); - break; - } - case 72: { - - progressPercent_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 56: + { + urlsTestedCount_ = input.readInt64(); + break; + } + case 64: + { + hasVulnerabilities_ = input.readBool(); + break; + } + case 72: + { + progressPercent_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -133,36 +157,41 @@ private ScanRun( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, + com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder.class); } /** + * + * *
    * Types of ScanRun execution state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState} */ - public enum ExecutionState - implements com.google.protobuf.ProtocolMessageEnum { + public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -172,6 +201,8 @@ public enum ExecutionState
      */
     EXECUTION_STATE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -180,6 +211,8 @@ public enum ExecutionState */ QUEUED(1), /** + * + * *
      * The scan is in progress.
      * 
@@ -188,6 +221,8 @@ public enum ExecutionState */ SCANNING(2), /** + * + * *
      * The scan is either finished or stopped by user.
      * 
@@ -199,6 +234,8 @@ public enum ExecutionState ; /** + * + * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -208,6 +245,8 @@ public enum ExecutionState
      */
     public static final int EXECUTION_STATE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -216,6 +255,8 @@ public enum ExecutionState */ public static final int QUEUED_VALUE = 1; /** + * + * *
      * The scan is in progress.
      * 
@@ -224,6 +265,8 @@ public enum ExecutionState */ public static final int SCANNING_VALUE = 2; /** + * + * *
      * The scan is either finished or stopped by user.
      * 
@@ -232,7 +275,6 @@ public enum ExecutionState */ public static final int FINISHED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -257,50 +299,53 @@ public static ExecutionState valueOf(int value) { */ public static ExecutionState forNumber(int value) { switch (value) { - case 0: return EXECUTION_STATE_UNSPECIFIED; - case 1: return QUEUED; - case 2: return SCANNING; - case 3: return FINISHED; - default: return null; + case 0: + return EXECUTION_STATE_UNSPECIFIED; + case 1: + return QUEUED; + case 2: + return SCANNING; + case 3: + return FINISHED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ExecutionState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionState findValueByNumber(int number) { - return ExecutionState.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionState findValueByNumber(int number) { + return ExecutionState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDescriptor() + .getEnumTypes() + .get(0); } private static final ExecutionState[] VALUES = values(); - public static ExecutionState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ExecutionState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -318,15 +363,18 @@ private ExecutionState(int value) { } /** + * + * *
    * Types of ScanRun result state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState} */ - public enum ResultState - implements com.google.protobuf.ProtocolMessageEnum { + public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -336,6 +384,8 @@ public enum ResultState
      */
     RESULT_STATE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The scan finished without errors.
      * 
@@ -344,6 +394,8 @@ public enum ResultState */ SUCCESS(1), /** + * + * *
      * The scan finished with errors.
      * 
@@ -352,6 +404,8 @@ public enum ResultState */ ERROR(2), /** + * + * *
      * The scan was terminated by user.
      * 
@@ -363,6 +417,8 @@ public enum ResultState ; /** + * + * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -372,6 +428,8 @@ public enum ResultState
      */
     public static final int RESULT_STATE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The scan finished without errors.
      * 
@@ -380,6 +438,8 @@ public enum ResultState */ public static final int SUCCESS_VALUE = 1; /** + * + * *
      * The scan finished with errors.
      * 
@@ -388,6 +448,8 @@ public enum ResultState */ public static final int ERROR_VALUE = 2; /** + * + * *
      * The scan was terminated by user.
      * 
@@ -396,7 +458,6 @@ public enum ResultState */ public static final int KILLED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -421,50 +482,53 @@ public static ResultState valueOf(int value) { */ public static ResultState forNumber(int value) { switch (value) { - case 0: return RESULT_STATE_UNSPECIFIED; - case 1: return SUCCESS; - case 2: return ERROR; - case 3: return KILLED; - default: return null; + case 0: + return RESULT_STATE_UNSPECIFIED; + case 1: + return SUCCESS; + case 2: + return ERROR; + case 3: + return KILLED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ResultState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResultState findValueByNumber(int number) { - return ResultState.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResultState findValueByNumber(int number) { + return ResultState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDescriptor() + .getEnumTypes() + .get(1); } private static final ResultState[] VALUES = values(); - public static ResultState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ResultState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -484,6 +548,8 @@ private ResultState(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -491,6 +557,7 @@ private ResultState(int value) {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -499,14 +566,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -514,16 +582,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -534,67 +601,94 @@ public java.lang.String getName() { public static final int EXECUTION_STATE_FIELD_NUMBER = 2; private int executionState_; /** + * + * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * + * * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override public int getExecutionStateValue() { + @java.lang.Override + public int getExecutionStateValue() { return executionState_; } /** + * + * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * + * * @return The executionState. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState getExecutionState() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.valueOf(executionState_); - return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.valueOf(executionState_); + return result == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.UNRECOGNIZED + : result; } public static final int RESULT_STATE_FIELD_NUMBER = 3; private int resultState_; /** + * + * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; + * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override public int getResultStateValue() { + @java.lang.Override + public int getResultStateValue() { return resultState_; } /** + * + * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; + * * @return The resultState. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState getResultState() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.valueOf(resultState_); - return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.valueOf(resultState_); + return result == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.UNRECOGNIZED + : result; } public static final int START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -602,11 +696,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return The startTime. */ @java.lang.Override @@ -614,6 +711,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The time at which the ScanRun started.
    * 
@@ -628,12 +727,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -641,12 +743,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ @java.lang.Override @@ -654,6 +759,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -669,12 +776,15 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 6;
   private long urlsCrawledCount_;
   /**
+   *
+   *
    * 
    * The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; + * * @return The urlsCrawledCount. */ @java.lang.Override @@ -685,6 +795,8 @@ public long getUrlsCrawledCount() { public static final int URLS_TESTED_COUNT_FIELD_NUMBER = 7; private long urlsTestedCount_; /** + * + * *
    * The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -693,6 +805,7 @@ public long getUrlsCrawledCount() {
    * 
* * int64 urls_tested_count = 7; + * * @return The urlsTestedCount. */ @java.lang.Override @@ -703,11 +816,14 @@ public long getUrlsTestedCount() { public static final int HAS_VULNERABILITIES_FIELD_NUMBER = 8; private boolean hasVulnerabilities_; /** + * + * *
    * Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; + * * @return The hasVulnerabilities. */ @java.lang.Override @@ -718,6 +834,8 @@ public boolean getHasVulnerabilities() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 9; private int progressPercent_; /** + * + * *
    * The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -726,6 +844,7 @@ public boolean getHasVulnerabilities() {
    * 
* * int32 progress_percent = 9; + * * @return The progressPercent. */ @java.lang.Override @@ -734,6 +853,7 @@ public int getProgressPercent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -745,15 +865,19 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (executionState_ != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { + if (executionState_ + != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState + .EXECUTION_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, executionState_); } - if (resultState_ != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { + if (resultState_ + != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, resultState_); } if (startTime_ != null) { @@ -786,37 +910,34 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (executionState_ != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, executionState_); + if (executionState_ + != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState + .EXECUTION_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, executionState_); } - if (resultState_ != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, resultState_); + if (resultState_ + != com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, resultState_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); } if (urlsCrawledCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, urlsCrawledCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, urlsCrawledCount_); } if (urlsTestedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, urlsTestedCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, urlsTestedCount_); } if (hasVulnerabilities_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, hasVulnerabilities_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, hasVulnerabilities_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, progressPercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, progressPercent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -826,35 +947,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ScanRun)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ScanRun other = (com.google.cloud.websecurityscanner.v1alpha.ScanRun) obj; + com.google.cloud.websecurityscanner.v1alpha.ScanRun other = + (com.google.cloud.websecurityscanner.v1alpha.ScanRun) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (executionState_ != other.executionState_) return false; if (resultState_ != other.resultState_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (getUrlsCrawledCount() - != other.getUrlsCrawledCount()) return false; - if (getUrlsTestedCount() - != other.getUrlsTestedCount()) return false; - if (getHasVulnerabilities() - != other.getHasVulnerabilities()) return false; - if (getProgressPercent() - != other.getProgressPercent()) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (getUrlsCrawledCount() != other.getUrlsCrawledCount()) return false; + if (getUrlsTestedCount() != other.getUrlsTestedCount()) return false; + if (getHasVulnerabilities() != other.getHasVulnerabilities()) return false; + if (getProgressPercent() != other.getProgressPercent()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -881,14 +996,11 @@ public int hashCode() { hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + URLS_CRAWLED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUrlsCrawledCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsCrawledCount()); hash = (37 * hash) + URLS_TESTED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUrlsTestedCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsTestedCount()); hash = (37 * hash) + HAS_VULNERABILITIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHasVulnerabilities()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasVulnerabilities()); hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getProgressPercent(); hash = (29 * hash) + unknownFields.hashCode(); @@ -897,117 +1009,126 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ScanRun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ScanRun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A ScanRun is a output-only resource representing an actual run of the scan.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ScanRun} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ScanRun) com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.ScanRun.class, + com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanRun.newBuilder() @@ -1015,16 +1136,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1058,9 +1178,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.ScanRunProto + .internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; } @java.lang.Override @@ -1079,7 +1199,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.ScanRun result = new com.google.cloud.websecurityscanner.v1alpha.ScanRun(this); + com.google.cloud.websecurityscanner.v1alpha.ScanRun result = + new com.google.cloud.websecurityscanner.v1alpha.ScanRun(this); result.name_ = name_; result.executionState_ = executionState_; result.resultState_ = resultState_; @@ -1105,38 +1226,39 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ScanRun) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanRun)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ScanRun) other); } else { super.mergeFrom(other); return this; @@ -1144,7 +1266,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ScanRun other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1192,7 +1315,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ScanRun) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.ScanRun) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1204,6 +1328,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1211,13 +1337,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1226,6 +1352,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1233,15 +1361,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1249,6 +1376,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1256,20 +1385,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1277,15 +1408,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1293,16 +1427,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1310,73 +1444,99 @@ public Builder setNameBytes( private int executionState_ = 0; /** + * + * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * + * * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override public int getExecutionStateValue() { + @java.lang.Override + public int getExecutionStateValue() { return executionState_; } /** + * + * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * + * * @param value The enum numeric value on the wire for executionState to set. * @return This builder for chaining. */ public Builder setExecutionStateValue(int value) { - + executionState_ = value; onChanged(); return this; } /** + * + * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * + * * @return The executionState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.valueOf(executionState_); - return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.valueOf( + executionState_); + return result == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.UNRECOGNIZED + : result; } /** + * + * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * + * * @param value The executionState to set. * @return This builder for chaining. */ - public Builder setExecutionState(com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState value) { + public Builder setExecutionState( + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState value) { if (value == null) { throw new NullPointerException(); } - + executionState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * + * * @return This builder for chaining. */ public Builder clearExecutionState() { - + executionState_ = 0; onChanged(); return this; @@ -1384,78 +1544,98 @@ public Builder clearExecutionState() { private int resultState_ = 0; /** + * + * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; + * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override public int getResultStateValue() { + @java.lang.Override + public int getResultStateValue() { return resultState_; } /** + * + * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; + * * @param value The enum numeric value on the wire for resultState to set. * @return This builder for chaining. */ public Builder setResultStateValue(int value) { - + resultState_ = value; onChanged(); return this; } /** + * + * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; + * * @return The resultState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.valueOf(resultState_); - return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.valueOf(resultState_); + return result == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.UNRECOGNIZED + : result; } /** + * + * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; + * * @param value The resultState to set. * @return This builder for chaining. */ - public Builder setResultState(com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState value) { + public Builder setResultState( + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState value) { if (value == null) { throw new NullPointerException(); } - + resultState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; + * * @return This builder for chaining. */ public Builder clearResultState() { - + resultState_ = 0; onChanged(); return this; @@ -1463,24 +1643,33 @@ public Builder clearResultState() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1491,6 +1680,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1511,14 +1702,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -1529,6 +1721,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1539,7 +1733,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -1551,6 +1745,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1569,6 +1765,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1576,11 +1774,13 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 4; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1591,11 +1791,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1603,14 +1804,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -1618,26 +1822,35 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1648,6 +1861,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1669,6 +1884,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1676,8 +1893,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1688,6 +1904,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1699,7 +1917,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1711,6 +1929,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1730,6 +1950,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1738,11 +1960,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1754,11 +1978,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1767,27 +1992,33 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
 
-    private long urlsCrawledCount_ ;
+    private long urlsCrawledCount_;
     /**
+     *
+     *
      * 
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; + * * @return The urlsCrawledCount. */ @java.lang.Override @@ -1795,39 +2026,47 @@ public long getUrlsCrawledCount() { return urlsCrawledCount_; } /** + * + * *
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; + * * @param value The urlsCrawledCount to set. * @return This builder for chaining. */ public Builder setUrlsCrawledCount(long value) { - + urlsCrawledCount_ = value; onChanged(); return this; } /** + * + * *
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; + * * @return This builder for chaining. */ public Builder clearUrlsCrawledCount() { - + urlsCrawledCount_ = 0L; onChanged(); return this; } - private long urlsTestedCount_ ; + private long urlsTestedCount_; /** + * + * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -1836,6 +2075,7 @@ public Builder clearUrlsCrawledCount() {
      * 
* * int64 urls_tested_count = 7; + * * @return The urlsTestedCount. */ @java.lang.Override @@ -1843,6 +2083,8 @@ public long getUrlsTestedCount() { return urlsTestedCount_; } /** + * + * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -1851,16 +2093,19 @@ public long getUrlsTestedCount() {
      * 
* * int64 urls_tested_count = 7; + * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ public Builder setUrlsTestedCount(long value) { - + urlsTestedCount_ = value; onChanged(); return this; } /** + * + * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -1869,22 +2114,26 @@ public Builder setUrlsTestedCount(long value) {
      * 
* * int64 urls_tested_count = 7; + * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { - + urlsTestedCount_ = 0L; onChanged(); return this; } - private boolean hasVulnerabilities_ ; + private boolean hasVulnerabilities_; /** + * + * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; + * * @return The hasVulnerabilities. */ @java.lang.Override @@ -1892,37 +2141,45 @@ public boolean getHasVulnerabilities() { return hasVulnerabilities_; } /** + * + * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; + * * @param value The hasVulnerabilities to set. * @return This builder for chaining. */ public Builder setHasVulnerabilities(boolean value) { - + hasVulnerabilities_ = value; onChanged(); return this; } /** + * + * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; + * * @return This builder for chaining. */ public Builder clearHasVulnerabilities() { - + hasVulnerabilities_ = false; onChanged(); return this; } - private int progressPercent_ ; + private int progressPercent_; /** + * + * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -1931,6 +2188,7 @@ public Builder clearHasVulnerabilities() {
      * 
* * int32 progress_percent = 9; + * * @return The progressPercent. */ @java.lang.Override @@ -1938,6 +2196,8 @@ public int getProgressPercent() { return progressPercent_; } /** + * + * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -1946,16 +2206,19 @@ public int getProgressPercent() {
      * 
* * int32 progress_percent = 9; + * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** + * + * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -1964,17 +2227,18 @@ public Builder setProgressPercent(int value) {
      * 
* * int32 progress_percent = 9; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1984,12 +2248,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ScanRun) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ScanRun) private static final com.google.cloud.websecurityscanner.v1alpha.ScanRun DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ScanRun(); } @@ -1998,16 +2262,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.ScanRun getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2022,6 +2286,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.ScanRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java similarity index 100% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java similarity index 83% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java index cb8b3862..1e3dc0be 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/scan_run.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ScanRunOrBuilder extends +public interface ScanRunOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ScanRun) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -15,10 +33,13 @@ public interface ScanRunOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -26,70 +47,92 @@ public interface ScanRunOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * + * * @return The enum numeric value on the wire for executionState. */ int getExecutionStateValue(); /** + * + * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState execution_state = 2; + * + * * @return The executionState. */ com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState getExecutionState(); /** + * + * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; + * * @return The enum numeric value on the wire for resultState. */ int getResultStateValue(); /** + * + * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result_state = 3; + * * @return The resultState. */ com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState getResultState(); /** + * + * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * The time at which the ScanRun started.
    * 
@@ -99,26 +142,34 @@ public interface ScanRunOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -129,17 +180,22 @@ public interface ScanRunOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; + * * @return The urlsCrawledCount. */ long getUrlsCrawledCount(); /** + * + * *
    * The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -148,21 +204,27 @@ public interface ScanRunOrBuilder extends
    * 
* * int64 urls_tested_count = 7; + * * @return The urlsTestedCount. */ long getUrlsTestedCount(); /** + * + * *
    * Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; + * * @return The hasVulnerabilities. */ boolean getHasVulnerabilities(); /** + * + * *
    * The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -171,6 +233,7 @@ public interface ScanRunOrBuilder extends
    * 
* * int32 progress_percent = 9; + * * @return The progressPercent. */ int getProgressPercent(); diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java new file mode 100644 index 00000000..f4f750e5 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java @@ -0,0 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/scan_run.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class ScanRunProto { + private ScanRunProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/websecurityscanner/v1alph" + + "a/scan_run.proto\022\'google.cloud.websecuri" + + "tyscanner.v1alpha\032\031google/api/resource.p" + + "roto\032\037google/protobuf/timestamp.proto\"\257\005" + + "\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022X\n\017execution_sta" + + "te\030\002 \001(\0162?.google.cloud.websecurityscann" + + "er.v1alpha.ScanRun.ExecutionState\022R\n\014res" + + "ult_state\030\003 \001(\0162<.google.cloud.websecuri" + + "tyscanner.v1alpha.ScanRun.ResultState\022.\n" + + "\nstart_time\030\004 \001(\0132\032.google.protobuf.Time" + + "stamp\022,\n\010end_time\030\005 \001(\0132\032.google.protobu" + + "f.Timestamp\022\032\n\022urls_crawled_count\030\006 \001(\003\022" + + "\031\n\021urls_tested_count\030\007 \001(\003\022\033\n\023has_vulner" + + "abilities\030\010 \001(\010\022\030\n\020progress_percent\030\t \001(" + + "\005\"Y\n\016ExecutionState\022\037\n\033EXECUTION_STATE_U" + + "NSPECIFIED\020\000\022\n\n\006QUEUED\020\001\022\014\n\010SCANNING\020\002\022\014" + + "\n\010FINISHED\020\003\"O\n\013ResultState\022\034\n\030RESULT_ST" + + "ATE_UNSPECIFIED\020\000\022\013\n\007SUCCESS\020\001\022\t\n\005ERROR\020" + + "\002\022\n\n\006KILLED\020\003:p\352Am\n)websecurityscanner.g" + + "oogleapis.com/ScanRun\022@projects/{project" + + "}/scanConfigs/{scan_config}/scanRuns/{sc" + + "an_run}B\230\001\n+com.google.cloud.websecurity" + + "scanner.v1alphaB\014ScanRunProtoP\001ZYgoogle." + + "golang.org/genproto/googleapis/cloud/web" + + "securityscanner/v1alpha;websecurityscann" + + "erb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ScanRun_descriptor, + new java.lang.String[] { + "Name", + "ExecutionState", + "ResultState", + "StartTime", + "EndTime", + "UrlsCrawledCount", + "UrlsTestedCount", + "HasVulnerabilities", + "ProgressPercent", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java similarity index 64% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java index a9073ed9..f17df141 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Request for the `StartScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.StartScanRunRequest} */ -public final class StartScanRunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartScanRunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) StartScanRunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartScanRunRequest.newBuilder() to construct. private StartScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StartScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private StartScanRunRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private StartScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest other = (com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest other = + (com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `StartScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.StartScanRunRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.class, + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest result = new com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest(this); + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest result = + new com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +412,50 @@ public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +479,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +493,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +518,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +543,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +623,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +660,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java new file mode 100644 index 00000000..f8a9dbe3 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface StartScanRunRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.StartScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ScanConfig to be used. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the ScanConfig to be used. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java similarity index 65% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java index d9fff68e..cb679cb0 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Request for the `StopScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.StopScanRunRequest} */ -public final class StopScanRunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopScanRunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) StopScanRunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopScanRunRequest.newBuilder() to construct. private StopScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StopScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private StopScanRunRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private StopScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest other = (com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest other = + (com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `StopScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.StopScanRunRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.class, + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,13 +381,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.getDefaultInstance(); } @@ -366,7 +403,8 @@ public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest result = new com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest(this); + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest result = + new com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +414,39 @@ public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +454,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +480,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +494,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +520,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +546,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,30 +629,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -601,9 +666,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java new file mode 100644 index 00000000..d74236cc --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public interface StopScanRunRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.StopScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ScanRun to be stopped. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the ScanRun to be stopped. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java similarity index 66% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java index 37c9d54c..72451e53 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Request for the `UpdateScanConfigRequest` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest} */ -public final class UpdateScanConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) UpdateScanConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateScanConfigRequest.newBuilder() to construct. private UpdateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateScanConfigRequest() { - } + + private UpdateScanConfigRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,45 @@ private UpdateScanConfigRequest( case 0: done = true; break; - case 18: { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } + case 18: + { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); + } + scanConfig_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,36 +114,43 @@ private UpdateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.Builder.class); } public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1alpha.ScanConfig scanConfig_; /** + * + * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -129,27 +158,38 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** + * + * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig() { - return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() + : scanConfig_; } /** + * + * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder() { @@ -159,13 +199,17 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -173,13 +217,17 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -187,13 +235,16 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -201,6 +252,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (scanConfig_ != null) { output.writeMessage(2, getScanConfig()); } @@ -230,12 +281,10 @@ public int getSerializedSize() { size = 0; if (scanConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getScanConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -245,22 +294,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest other = + (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) obj; if (hasScanConfig() != other.hasScanConfig()) return false; if (hasScanConfig()) { - if (!getScanConfig() - .equals(other.getScanConfig())) return false; + if (!getScanConfig().equals(other.getScanConfig())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -287,134 +335,145 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `UpdateScanConfigRequest` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -434,14 +493,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest + .getDefaultInstance(); } @java.lang.Override @@ -455,7 +516,8 @@ public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest build @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest(this); if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; } else { @@ -474,46 +536,51 @@ public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest + .getDefaultInstance()) return this; if (other.hasScanConfig()) { mergeScanConfig(other.getScanConfig()); } @@ -539,7 +606,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -551,45 +620,64 @@ public Builder mergeFrom( private com.google.cloud.websecurityscanner.v1alpha.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> + scanConfigBuilder_; /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() + : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -605,13 +693,17 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanCon return this; } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setScanConfig( com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder builderForValue) { @@ -625,19 +717,25 @@ public Builder setScanConfig( return this; } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanConfig value) { if (scanConfigBuilder_ == null) { if (scanConfig_ != null) { scanConfig_ = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.newBuilder(scanConfig_) + .mergeFrom(value) + .buildPartial(); } else { scanConfig_ = value; } @@ -649,13 +747,17 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1alpha.ScanC return this; } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearScanConfig() { if (scanConfigBuilder_ == null) { @@ -669,54 +771,71 @@ public Builder clearScanConfig() { return this; } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanConfigBuilder() { - + onChanged(); return getScanConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder + getScanConfigOrBuilder() { if (scanConfigBuilder_ != null) { return scanConfigBuilder_.getMessageOrBuilder(); } else { - return scanConfig_ == null ? - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() + : scanConfig_; } } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder> getScanConfigFieldBuilder() { if (scanConfigBuilder_ == null) { - scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.ScanConfig, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( - getScanConfig(), - getParentForChildren(), - isClean()); + scanConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.ScanConfig, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder>( + getScanConfig(), getParentForChildren(), isClean()); scanConfig_ = null; } return scanConfigBuilder_; @@ -724,45 +843,61 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -778,16 +913,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -798,19 +935,22 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -822,13 +962,16 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -842,61 +985,74 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -906,30 +1062,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -941,9 +1099,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java index 35cda492..14c1862b 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java @@ -1,75 +1,116 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface UpdateScanConfigRequestOrBuilder extends +public interface UpdateScanConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the scanConfig field is set. */ boolean hasScanConfig(); /** + * + * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The scanConfig. */ com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfig(); /** + * + * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1alpha.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanConfigOrBuilder(); /** + * + * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java similarity index 70% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java index b2dd828b..c87d214c 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Information regarding any resource causing the vulnerability such
  * as JavaScript sources, image, audio files, etc.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ViolatingResource}
  */
-public final class ViolatingResource extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ViolatingResource extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.ViolatingResource)
     ViolatingResourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ViolatingResource.newBuilder() to construct.
   private ViolatingResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ViolatingResource() {
     contentType_ = "";
     resourceUrl_ = "";
@@ -27,16 +45,15 @@ private ViolatingResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ViolatingResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ViolatingResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +72,27 @@ private ViolatingResource(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            contentType_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              contentType_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            resourceUrl_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              resourceUrl_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,34 +100,39 @@ private ViolatingResource(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto
+        .internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto
+        .internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.class, com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder.class);
+            com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.class,
+            com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder.class);
   }
 
   public static final int CONTENT_TYPE_FIELD_NUMBER = 1;
   private volatile java.lang.Object contentType_;
   /**
+   *
+   *
    * 
    * The MIME type of this resource.
    * 
* * string content_type = 1; + * * @return The contentType. */ @java.lang.Override @@ -117,29 +141,29 @@ public java.lang.String getContentType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; } } /** + * + * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; + * * @return The bytes for contentType. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentTypeBytes() { + public com.google.protobuf.ByteString getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); contentType_ = b; return b; } else { @@ -150,11 +174,14 @@ public java.lang.String getContentType() { public static final int RESOURCE_URL_FIELD_NUMBER = 2; private volatile java.lang.Object resourceUrl_; /** + * + * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; + * * @return The resourceUrl. */ @java.lang.Override @@ -163,29 +190,29 @@ public java.lang.String getResourceUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** + * + * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; + * * @return The bytes for resourceUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceUrlBytes() { + public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -194,6 +221,7 @@ public java.lang.String getResourceUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +233,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contentType_); } @@ -236,17 +263,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.ViolatingResource)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.ViolatingResource other = (com.google.cloud.websecurityscanner.v1alpha.ViolatingResource) obj; + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource other = + (com.google.cloud.websecurityscanner.v1alpha.ViolatingResource) obj; - if (!getContentType() - .equals(other.getContentType())) return false; - if (!getResourceUrl() - .equals(other.getResourceUrl())) return false; + if (!getContentType().equals(other.getContentType())) return false; + if (!getResourceUrl().equals(other.getResourceUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -268,96 +294,104 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.ViolatingResource prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.ViolatingResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information regarding any resource causing the vulnerability such
    * as JavaScript sources, image, audio files, etc.
@@ -365,21 +399,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.ViolatingResource}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.ViolatingResource)
       com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto
+          .internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto
+          .internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.class, com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder.class);
+              com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.class,
+              com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.newBuilder()
@@ -387,16 +423,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -408,13 +443,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto
+          .internal_static_google_cloud_websecurityscanner_v1alpha_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getDefaultInstanceForType() {
+    public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource
+        getDefaultInstanceForType() {
       return com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance();
     }
 
@@ -429,7 +465,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource buildPartial() {
-      com.google.cloud.websecurityscanner.v1alpha.ViolatingResource result = new com.google.cloud.websecurityscanner.v1alpha.ViolatingResource(this);
+      com.google.cloud.websecurityscanner.v1alpha.ViolatingResource result =
+          new com.google.cloud.websecurityscanner.v1alpha.ViolatingResource(this);
       result.contentType_ = contentType_;
       result.resourceUrl_ = resourceUrl_;
       onBuilt();
@@ -440,38 +477,39 @@ public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource buildPartia
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1alpha.ViolatingResource) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ViolatingResource)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.ViolatingResource) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -479,7 +517,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.ViolatingResource other) {
-      if (other == com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance())
+        return this;
       if (!other.getContentType().isEmpty()) {
         contentType_ = other.contentType_;
         onChanged();
@@ -507,7 +547,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.ViolatingResource) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1alpha.ViolatingResource)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -519,18 +561,20 @@ public Builder mergeFrom(
 
     private java.lang.Object contentType_ = "";
     /**
+     *
+     *
      * 
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @return The contentType. */ public java.lang.String getContentType() { java.lang.Object ref = contentType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; @@ -539,20 +583,21 @@ public java.lang.String getContentType() { } } /** + * + * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @return The bytes for contentType. */ - public com.google.protobuf.ByteString - getContentTypeBytes() { + public com.google.protobuf.ByteString getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); contentType_ = b; return b; } else { @@ -560,54 +605,61 @@ public java.lang.String getContentType() { } } /** + * + * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @param value The contentType to set. * @return This builder for chaining. */ - public Builder setContentType( - java.lang.String value) { + public Builder setContentType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contentType_ = value; onChanged(); return this; } /** + * + * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = getDefaultInstance().getContentType(); onChanged(); return this; } /** + * + * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @param value The bytes for contentType to set. * @return This builder for chaining. */ - public Builder setContentTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentType_ = value; onChanged(); return this; @@ -615,18 +667,20 @@ public Builder setContentTypeBytes( private java.lang.Object resourceUrl_ = ""; /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; @@ -635,20 +689,21 @@ public java.lang.String getResourceUrl() { } } /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @return The bytes for resourceUrl. */ - public com.google.protobuf.ByteString - getResourceUrlBytes() { + public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -656,61 +711,68 @@ public java.lang.String getResourceUrl() { } } /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @param value The resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrl( - java.lang.String value) { + public Builder setResourceUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUrl_ = value; onChanged(); return this; } /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @return This builder for chaining. */ public Builder clearResourceUrl() { - + resourceUrl_ = getDefaultInstance().getResourceUrl(); onChanged(); return this; } /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUrl_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -720,12 +782,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.ViolatingResource) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.ViolatingResource) - private static final com.google.cloud.websecurityscanner.v1alpha.ViolatingResource DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.ViolatingResource + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.ViolatingResource(); } @@ -734,16 +797,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ViolatingResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ViolatingResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ViolatingResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ViolatingResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -758,6 +821,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java similarity index 55% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java index dbd8b138..260c1f96 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface ViolatingResourceOrBuilder extends +public interface ViolatingResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.ViolatingResource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; + * * @return The contentType. */ java.lang.String getContentType(); /** + * + * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; + * * @return The bytes for contentType. */ - com.google.protobuf.ByteString - getContentTypeBytes(); + com.google.protobuf.ByteString getContentTypeBytes(); /** + * + * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; + * * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** + * + * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; + * * @return The bytes for resourceUrl. */ - com.google.protobuf.ByteString - getResourceUrlBytes(); + com.google.protobuf.ByteString getResourceUrlBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java similarity index 66% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java index d9b14433..8544d3d4 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Information about vulnerable or missing HTTP Headers.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableHeaders} */ -public final class VulnerableHeaders extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VulnerableHeaders extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) VulnerableHeadersOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VulnerableHeaders.newBuilder() to construct. private VulnerableHeaders(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VulnerableHeaders() { headers_ = java.util.Collections.emptyList(); missingHeaders_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private VulnerableHeaders() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VulnerableHeaders(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VulnerableHeaders( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,41 @@ private VulnerableHeaders( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + headers_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header>(); + mutable_bitField0_ |= 0x00000001; + } + headers_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), + extensionRegistry)); + break; } - headers_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + missingHeaders_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header>(); + mutable_bitField0_ |= 0x00000002; + } + missingHeaders_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), + extensionRegistry)); + break; } - missingHeaders_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,8 +114,7 @@ private VulnerableHeaders( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -100,79 +126,96 @@ private VulnerableHeaders( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.class, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder.class); } - public interface HeaderOrBuilder extends + public interface HeaderOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Header name.
      * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Header name.
      * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Header value.
      * 
* * string value = 2; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * Header value.
      * 
* * string value = 2; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); } /** + * + * *
    * Describes a HTTP Header.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header} */ - public static final class Header extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Header extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) HeaderOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Header.newBuilder() to construct. private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Header() { name_ = ""; value_ = ""; @@ -180,16 +223,15 @@ private Header() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Header(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Header( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -208,25 +250,27 @@ private Header( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -234,34 +278,39 @@ private Header( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.class, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
      * Header name.
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -270,29 +319,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Header name.
      * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -303,11 +352,14 @@ public java.lang.String getName() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** + * + * *
      * Header value.
      * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -316,29 +368,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
      * Header value.
      * 
* * string value = 2; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -347,6 +399,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -358,8 +411,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -389,17 +441,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header other = (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) obj; + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header other = + (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getValue() - .equals(other.getValue())) return false; + if (!getName().equals(other.getName())) return false; + if (!getValue().equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -421,87 +472,95 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -511,44 +570,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Describes a HTTP Header.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.class, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -560,19 +624,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_Header_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header build() { - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result = buildPartial(); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -581,7 +648,8 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header buil @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result = new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header(this); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result = + new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header(this); result.name_ = name_; result.value_ = value_; onBuilt(); @@ -592,46 +660,53 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -659,7 +734,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -671,18 +748,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -691,20 +770,21 @@ public java.lang.String getName() { } } /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -712,54 +792,61 @@ public java.lang.String getName() { } } /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -767,18 +854,20 @@ public Builder setNameBytes( private java.lang.Object value_ = ""; /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -787,20 +876,21 @@ public java.lang.String getValue() { } } /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -808,58 +898,66 @@ public java.lang.String getValue() { } } /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -872,30 +970,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header) - private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header(); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Header parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser
PARSER = + new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Header parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Header(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -907,133 +1007,177 @@ public com.google.protobuf.Parser
getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int HEADERS_FIELD_NUMBER = 1; - private java.util.List headers_; + private java.util.List + headers_; /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ @java.lang.Override - public java.util.List getHeadersList() { + public java.util.List + getHeadersList() { return headers_; } /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> getHeadersOrBuilderList() { return headers_; } /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ @java.lang.Override public int getHeadersCount() { return headers_.size(); } /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getHeaders(int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getHeaders( + int index) { return headers_.get(index); } /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder + getHeadersOrBuilder(int index) { return headers_.get(index); } public static final int MISSING_HEADERS_FIELD_NUMBER = 2; - private java.util.List missingHeaders_; + private java.util.List + missingHeaders_; /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ @java.lang.Override - public java.util.List getMissingHeadersList() { + public java.util.List + getMissingHeadersList() { return missingHeaders_; } /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> getMissingHeadersOrBuilderList() { return missingHeaders_; } /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ @java.lang.Override public int getMissingHeadersCount() { return missingHeaders_.size(); } /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getMissingHeaders(int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getMissingHeaders( + int index) { return missingHeaders_.get(index); } /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder + getMissingHeadersOrBuilder(int index) { return missingHeaders_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1045,8 +1189,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < headers_.size(); i++) { output.writeMessage(1, headers_.get(i)); } @@ -1063,12 +1206,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < headers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, headers_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, headers_.get(i)); } for (int i = 0; i < missingHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, missingHeaders_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, missingHeaders_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1078,17 +1219,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders other = (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) obj; + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders other = + (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) obj; - if (!getHeadersList() - .equals(other.getHeadersList())) return false; - if (!getMissingHeadersList() - .equals(other.getMissingHeadersList())) return false; + if (!getHeadersList().equals(other.getHeadersList())) return false; + if (!getMissingHeadersList().equals(other.getMissingHeadersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1114,117 +1254,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information about vulnerable or missing HTTP Headers.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableHeaders} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.class, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.newBuilder() @@ -1232,18 +1382,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getHeadersFieldBuilder(); getMissingHeadersFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1263,13 +1413,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableHeaders_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance(); } @@ -1284,7 +1435,8 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders result = new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders(this); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders result = + new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders(this); int from_bitField0_ = bitField0_; if (headersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1312,38 +1464,39 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) other); } else { super.mergeFrom(other); return this; @@ -1351,7 +1504,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance()) + return this; if (headersBuilder_ == null) { if (!other.headers_.isEmpty()) { if (headers_.isEmpty()) { @@ -1370,9 +1525,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.VulnerableH headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000001); - headersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHeadersFieldBuilder() : null; + headersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHeadersFieldBuilder() + : null; } else { headersBuilder_.addAllMessages(other.headers_); } @@ -1396,9 +1552,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.VulnerableH missingHeadersBuilder_ = null; missingHeaders_ = other.missingHeaders_; bitField0_ = (bitField0_ & ~0x00000002); - missingHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMissingHeadersFieldBuilder() : null; + missingHeadersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMissingHeadersFieldBuilder() + : null; } else { missingHeadersBuilder_.addAllMessages(other.missingHeaders_); } @@ -1423,7 +1580,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1432,28 +1591,39 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List headers_ = - java.util.Collections.emptyList(); + private java.util.List + headers_ = java.util.Collections.emptyList(); + private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - headers_ = new java.util.ArrayList(headers_); + headers_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header>(headers_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> headersBuilder_; + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + headersBuilder_; /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ - public java.util.List getHeadersList() { + public java.util.List + getHeadersList() { if (headersBuilder_ == null) { return java.util.Collections.unmodifiableList(headers_); } else { @@ -1461,11 +1631,14 @@ public java.util.List * List of vulnerable headers. *
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ public int getHeadersCount() { if (headersBuilder_ == null) { @@ -1475,13 +1648,17 @@ public int getHeadersCount() { } } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getHeaders(int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getHeaders( + int index) { if (headersBuilder_ == null) { return headers_.get(index); } else { @@ -1489,11 +1666,14 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getH } } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ public Builder setHeaders( int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { @@ -1510,14 +1690,19 @@ public Builder setHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ public Builder setHeaders( - int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder + builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.set(index, builderForValue.build()); @@ -1528,13 +1713,17 @@ public Builder setHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ - public Builder addHeaders(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { + public Builder addHeaders( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1548,11 +1737,14 @@ public Builder addHeaders(com.google.cloud.websecurityscanner.v1alpha.Vulnerable return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ public Builder addHeaders( int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { @@ -1569,14 +1761,18 @@ public Builder addHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ public Builder addHeaders( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder + builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(builderForValue.build()); @@ -1587,14 +1783,19 @@ public Builder addHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ public Builder addHeaders( - int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder + builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(index, builderForValue.build()); @@ -1605,18 +1806,22 @@ public Builder addHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ public Builder addAllHeaders( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header> + values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, headers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); @@ -1624,11 +1829,14 @@ public Builder addAllHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ public Builder clearHeaders() { if (headersBuilder_ == null) { @@ -1641,11 +1849,14 @@ public Builder clearHeaders() { return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ public Builder removeHeaders(int index) { if (headersBuilder_ == null) { @@ -1658,39 +1869,50 @@ public Builder removeHeaders(int index) { return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder getHeadersBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder + getHeadersBuilder(int index) { return getHeadersFieldBuilder().getBuilder(index); } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder + getHeadersOrBuilder(int index) { if (headersBuilder_ == null) { - return headers_.get(index); } else { + return headers_.get(index); + } else { return headersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ - public java.util.List - getHeadersOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { @@ -1698,74 +1920,105 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBui } } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder addHeadersBuilder() { - return getHeadersFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder + addHeadersBuilder() { + return getHeadersFieldBuilder() + .addBuilder( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header + .getDefaultInstance()); } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder addHeadersBuilder( - int index) { - return getHeadersFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder + addHeadersBuilder(int index) { + return getHeadersFieldBuilder() + .addBuilder( + index, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header + .getDefaultInstance()); } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ - public java.util.List - getHeadersBuilderList() { + public java.util.List< + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder> + getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { - headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder>( - headers_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + headersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder>( + headers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); headers_ = null; } return headersBuilder_; } - private java.util.List missingHeaders_ = - java.util.Collections.emptyList(); + private java.util.List + missingHeaders_ = java.util.Collections.emptyList(); + private void ensureMissingHeadersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = new java.util.ArrayList(missingHeaders_); + missingHeaders_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header>( + missingHeaders_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> missingHeadersBuilder_; + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + missingHeadersBuilder_; /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ - public java.util.List getMissingHeadersList() { + public java.util.List + getMissingHeadersList() { if (missingHeadersBuilder_ == null) { return java.util.Collections.unmodifiableList(missingHeaders_); } else { @@ -1773,11 +2026,15 @@ public java.util.List * List of missing headers. *
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ public int getMissingHeadersCount() { if (missingHeadersBuilder_ == null) { @@ -1787,13 +2044,18 @@ public int getMissingHeadersCount() { } } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getMissingHeaders(int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getMissingHeaders( + int index) { if (missingHeadersBuilder_ == null) { return missingHeaders_.get(index); } else { @@ -1801,11 +2063,15 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getM } } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder setMissingHeaders( int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { @@ -1822,14 +2088,20 @@ public Builder setMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder setMissingHeaders( - int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder + builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.set(index, builderForValue.build()); @@ -1840,13 +2112,18 @@ public Builder setMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ - public Builder addMissingHeaders(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { + public Builder addMissingHeaders( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { if (missingHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1860,11 +2137,15 @@ public Builder addMissingHeaders(com.google.cloud.websecurityscanner.v1alpha.Vul return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder addMissingHeaders( int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header value) { @@ -1881,14 +2162,19 @@ public Builder addMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder addMissingHeaders( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder + builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.add(builderForValue.build()); @@ -1899,14 +2185,20 @@ public Builder addMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder addMissingHeaders( - int index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder + builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.add(index, builderForValue.build()); @@ -1917,18 +2209,23 @@ public Builder addMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder addAllMissingHeaders( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header> + values) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, missingHeaders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingHeaders_); onChanged(); } else { missingHeadersBuilder_.addAllMessages(values); @@ -1936,11 +2233,15 @@ public Builder addAllMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder clearMissingHeaders() { if (missingHeadersBuilder_ == null) { @@ -1953,11 +2254,15 @@ public Builder clearMissingHeaders() { return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder removeMissingHeaders(int index) { if (missingHeadersBuilder_ == null) { @@ -1970,39 +2275,53 @@ public Builder removeMissingHeaders(int index) { return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder getMissingHeadersBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder + getMissingHeadersBuilder(int index) { return getMissingHeadersFieldBuilder().getBuilder(index); } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder + getMissingHeadersOrBuilder(int index) { if (missingHeadersBuilder_ == null) { - return missingHeaders_.get(index); } else { + return missingHeaders_.get(index); + } else { return missingHeadersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ - public java.util.List - getMissingHeadersOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + getMissingHeadersOrBuilderList() { if (missingHeadersBuilder_ != null) { return missingHeadersBuilder_.getMessageOrBuilderList(); } else { @@ -2010,45 +2329,70 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBui } } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder addMissingHeadersBuilder() { - return getMissingHeadersFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder + addMissingHeadersBuilder() { + return getMissingHeadersFieldBuilder() + .addBuilder( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header + .getDefaultInstance()); } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ - public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder addMissingHeadersBuilder( - int index) { - return getMissingHeadersFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder + addMissingHeadersBuilder(int index) { + return getMissingHeadersFieldBuilder() + .addBuilder( + index, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header + .getDefaultInstance()); } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ - public java.util.List - getMissingHeadersBuilderList() { + public java.util.List< + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder> + getMissingHeadersBuilderList() { return getMissingHeadersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> getMissingHeadersFieldBuilder() { if (missingHeadersBuilder_ == null) { - missingHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder>( + missingHeadersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder>( missingHeaders_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2057,9 +2401,9 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.Buil } return missingHeadersBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2069,12 +2413,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) - private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders(); } @@ -2083,16 +2428,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableHeaders parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableHeaders(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableHeaders parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableHeaders(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2107,6 +2452,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java similarity index 51% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java index 842572d1..e78696c1 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java @@ -1,97 +1,150 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface VulnerableHeadersOrBuilder extends +public interface VulnerableHeadersOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.VulnerableHeaders) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ - java.util.List + java.util.List getHeadersList(); /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getHeaders(int index); /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ int getHeadersCount(); /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> getHeadersOrBuilderList(); /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header headers = 1; + * */ com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( int index); /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ - java.util.List + java.util.List getMissingHeadersList(); /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header getMissingHeaders(int index); /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ int getMissingHeadersCount(); /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder> getMissingHeadersOrBuilderList(); /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header missing_headers = 2; + * */ - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( - int index); + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.HeaderOrBuilder + getMissingHeadersOrBuilder(int index); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java similarity index 69% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java index 6802d7f8..1cbcd0ba 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Information about vulnerable request parameters.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableParameters} */ -public final class VulnerableParameters extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VulnerableParameters extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) VulnerableParametersOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VulnerableParameters.newBuilder() to construct. private VulnerableParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VulnerableParameters() { parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VulnerableParameters(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VulnerableParameters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,23 @@ private VulnerableParameters( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameterNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + parameterNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + parameterNames_.add(s); + break; } - parameterNames_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +95,7 @@ private VulnerableParameters( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -87,50 +104,61 @@ private VulnerableParameters( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.class, + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder.class); } public static final int PARAMETER_NAMES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList parameterNames_; /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList - getParameterNamesList() { + public com.google.protobuf.ProtocolStringList getParameterNamesList() { return parameterNames_; } /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -138,20 +166,23 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString - getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,8 +194,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < parameterNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameterNames_.getRaw(i)); } @@ -193,15 +223,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters other = (com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) obj; + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters other = + (com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) obj; - if (!getParameterNamesList() - .equals(other.getParameterNamesList())) return false; + if (!getParameterNamesList().equals(other.getParameterNamesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -223,117 +253,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information about vulnerable request parameters.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.VulnerableParameters} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.class, + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.newBuilder() @@ -341,16 +381,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -360,13 +399,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_VulnerableParameters_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance(); } @@ -381,7 +421,8 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters build() @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters result = new com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters(this); + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters result = + new com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -396,46 +437,50 @@ public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters other) { + if (other + == com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance()) + return this; if (!other.parameterNames_.isEmpty()) { if (parameterNames_.isEmpty()) { parameterNames_ = other.parameterNames_; @@ -465,7 +510,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -474,44 +521,55 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList parameterNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureParameterNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { parameterNames_ = new com.google.protobuf.LazyStringArrayList(parameterNames_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList - getParameterNamesList() { + public com.google.protobuf.ProtocolStringList getParameterNamesList() { return parameterNames_.getUnmodifiableView(); } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -519,80 +577,90 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString - getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param index The index to set the value at. * @param value The parameterNames to set. * @return This builder for chaining. */ - public Builder setParameterNames( - int index, java.lang.String value) { + public Builder setParameterNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.set(index, value); onChanged(); return this; } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param value The parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNames( - java.lang.String value) { + public Builder addParameterNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param values The parameterNames to add. * @return This builder for chaining. */ - public Builder addAllParameterNames( - java.lang.Iterable values) { + public Builder addAllParameterNames(java.lang.Iterable values) { ensureParameterNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, parameterNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameterNames_); onChanged(); return this; } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @return This builder for chaining. */ public Builder clearParameterNames() { @@ -602,28 +670,30 @@ public Builder clearParameterNames() { return this; } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param value The bytes of the parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNamesBytes( - com.google.protobuf.ByteString value) { + public Builder addParameterNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -633,30 +703,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) - private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters(); } - public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableParameters(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableParameters(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -668,9 +740,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java similarity index 60% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java index c75e054f..de2eb8e5 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java @@ -1,50 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface VulnerableParametersOrBuilder extends +public interface VulnerableParametersOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.VulnerableParameters) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @return A list containing the parameterNames. */ - java.util.List - getParameterNamesList(); + java.util.List getParameterNamesList(); /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @return The count of parameterNames. */ int getParameterNamesCount(); /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @param index The index of the element to return. * @return The parameterNames at the given index. */ java.lang.String getParameterNames(int index); /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - com.google.protobuf.ByteString - getParameterNamesBytes(int index); + com.google.protobuf.ByteString getParameterNamesBytes(int index); } diff --git a/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java new file mode 100644 index 00000000..be5e10e7 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java @@ -0,0 +1,440 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1alpha; + +public final class WebSecurityScannerProto { + private WebSecurityScannerProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nBgoogle/cloud/websecurityscanner/v1alph" + + "a/web_security_scanner.proto\022\'google.clo" + + "ud.websecurityscanner.v1alpha\032\034google/ap" + + "i/annotations.proto\032\027google/api/client.p" + + "roto\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\0329google/cloud/w" + + "ebsecurityscanner/v1alpha/crawled_url.pr" + + "oto\0325google/cloud/websecurityscanner/v1a" + + "lpha/finding.proto\032@google/cloud/websecu" + + "rityscanner/v1alpha/finding_type_stats.p" + + "roto\0329google/cloud/websecurityscanner/v1" + + "alpha/scan_config.proto\0326google/cloud/we" + + "bsecurityscanner/v1alpha/scan_run.proto\032" + + "\033google/protobuf/empty.proto\032 google/pro" + + "tobuf/field_mask.proto\"\255\001\n\027CreateScanCon" + + "figRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+clou" + + "dresourcemanager.googleapis.com/Project\022" + + "M\n\013scan_config\030\002 \001(\01323.google.cloud.webs" + + "ecurityscanner.v1alpha.ScanConfigB\003\340A\002\"]" + + "\n\027DeleteScanConfigRequest\022B\n\004name\030\001 \001(\tB" + + "4\340A\002\372A.\n,websecurityscanner.googleapis.c" + + "om/ScanConfig\"Z\n\024GetScanConfigRequest\022B\n" + + "\004name\030\001 \001(\tB4\340A\002\372A.\n,websecurityscanner." + + "googleapis.com/ScanConfig\"\204\001\n\026ListScanCo" + + "nfigsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cl" + + "oudresourcemanager.googleapis.com/Projec" + + "t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" + + "\"\236\001\n\027UpdateScanConfigRequest\022M\n\013scan_con" + + "fig\030\002 \001(\01323.google.cloud.websecurityscan" + + "ner.v1alpha.ScanConfigB\003\340A\002\0224\n\013update_ma" + + "sk\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" + + "\002\"}\n\027ListScanConfigsResponse\022I\n\014scan_con" + + "figs\030\001 \003(\01323.google.cloud.websecuritysca" + + "nner.v1alpha.ScanConfig\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"Y\n\023StartScanRunRequest\022B\n\004name\030" + + "\001 \001(\tB4\340A\002\372A.\n,websecurityscanner.google" + + "apis.com/ScanConfig\"T\n\021GetScanRunRequest" + + "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecurityscann" + + "er.googleapis.com/ScanRun\"\202\001\n\023ListScanRu" + + "nsRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,webse" + + "curityscanner.googleapis.com/ScanConfig\022" + + "\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"t" + + "\n\024ListScanRunsResponse\022C\n\tscan_runs\030\001 \003(" + + "\01320.google.cloud.websecurityscanner.v1al" + + "pha.ScanRun\022\027\n\017next_page_token\030\002 \001(\t\"U\n\022" + + "StopScanRunRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+" + + "\n)websecurityscanner.googleapis.com/Scan" + + "Run\"\202\001\n\026ListCrawledUrlsRequest\022A\n\006parent" + + "\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner.googl" + + "eapis.com/ScanRun\022\022\n\npage_token\030\002 \001(\t\022\021\n" + + "\tpage_size\030\003 \001(\005\"}\n\027ListCrawledUrlsRespo" + + "nse\022I\n\014crawled_urls\030\001 \003(\01323.google.cloud" + + ".websecurityscanner.v1alpha.CrawledUrl\022\027" + + "\n\017next_page_token\030\002 \001(\t\"T\n\021GetFindingReq" + + "uest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecuritys" + + "canner.googleapis.com/Finding\"\224\001\n\023ListFi" + + "ndingsRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)w" + + "ebsecurityscanner.googleapis.com/ScanRun" + + "\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\022\n\npage_token\030\003 \001(" + + "\t\022\021\n\tpage_size\030\004 \001(\005\"s\n\024ListFindingsResp" + + "onse\022B\n\010findings\030\001 \003(\01320.google.cloud.we" + + "bsecurityscanner.v1alpha.Finding\022\027\n\017next" + + "_page_token\030\002 \001(\t\"`\n\033ListFindingTypeStat" + + "sRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)websec" + + "urityscanner.googleapis.com/ScanRun\"u\n\034L" + + "istFindingTypeStatsResponse\022U\n\022finding_t" + + "ype_stats\030\001 \003(\01329.google.cloud.websecuri" + + "tyscanner.v1alpha.FindingTypeStats2\264\026\n\022W" + + "ebSecurityScanner\022\335\001\n\020CreateScanConfig\022@" + + ".google.cloud.websecurityscanner.v1alpha" + + ".CreateScanConfigRequest\0323.google.cloud." + + "websecurityscanner.v1alpha.ScanConfig\"R\202" + + "\323\344\223\0027\"(/v1alpha/{parent=projects/*}/scan" + + "Configs:\013scan_config\332A\022parent,scan_confi" + + "g\022\245\001\n\020DeleteScanConfig\022@.google.cloud.we" + + "bsecurityscanner.v1alpha.DeleteScanConfi" + + "gRequest\032\026.google.protobuf.Empty\"7\202\323\344\223\002*" + + "*(/v1alpha/{name=projects/*/scanConfigs/" + + "*}\332A\004name\022\274\001\n\rGetScanConfig\022=.google.clo" + + "ud.websecurityscanner.v1alpha.GetScanCon" + + "figRequest\0323.google.cloud.websecuritysca" + + "nner.v1alpha.ScanConfig\"7\202\323\344\223\002*\022(/v1alph" + + "a/{name=projects/*/scanConfigs/*}\332A\004name" + + "\022\317\001\n\017ListScanConfigs\022?.google.cloud.webs" + + "ecurityscanner.v1alpha.ListScanConfigsRe" + + "quest\032@.google.cloud.websecurityscanner." + + "v1alpha.ListScanConfigsResponse\"9\202\323\344\223\002*\022" + + "(/v1alpha/{parent=projects/*}/scanConfig" + + "s\332A\006parent\022\356\001\n\020UpdateScanConfig\022@.google" + + ".cloud.websecurityscanner.v1alpha.Update" + + "ScanConfigRequest\0323.google.cloud.websecu" + + "rityscanner.v1alpha.ScanConfig\"c\202\323\344\223\002C24" + + "/v1alpha/{scan_config.name=projects/*/sc" + + "anConfigs/*}:\013scan_config\332A\027scan_config," + + "update_mask\022\300\001\n\014StartScanRun\022<.google.cl" + + "oud.websecurityscanner.v1alpha.StartScan" + + "RunRequest\0320.google.cloud.websecuritysca" + + "nner.v1alpha.ScanRun\"@\202\323\344\223\0023\"./v1alpha/{" + + "name=projects/*/scanConfigs/*}:start:\001*\332" + + "A\004name\022\276\001\n\nGetScanRun\022:.google.cloud.web" + + "securityscanner.v1alpha.GetScanRunReques" + + "t\0320.google.cloud.websecurityscanner.v1al" + + "pha.ScanRun\"B\202\323\344\223\0025\0223/v1alpha/{name=proj" + + "ects/*/scanConfigs/*/scanRuns/*}\332A\004name\022" + + "\321\001\n\014ListScanRuns\022<.google.cloud.websecur" + + "ityscanner.v1alpha.ListScanRunsRequest\032=" + + ".google.cloud.websecurityscanner.v1alpha" + + ".ListScanRunsResponse\"D\202\323\344\223\0025\0223/v1alpha/" + + "{parent=projects/*/scanConfigs/*}/scanRu" + + "ns\332A\006parent\022\310\001\n\013StopScanRun\022;.google.clo" + + "ud.websecurityscanner.v1alpha.StopScanRu" + + "nRequest\0320.google.cloud.websecurityscann" + + "er.v1alpha.ScanRun\"J\202\323\344\223\002=\"8/v1alpha/{na" + + "me=projects/*/scanConfigs/*/scanRuns/*}:" + + "stop:\001*\332A\004name\022\350\001\n\017ListCrawledUrls\022?.goo" + + "gle.cloud.websecurityscanner.v1alpha.Lis" + + "tCrawledUrlsRequest\032@.google.cloud.webse" + + "curityscanner.v1alpha.ListCrawledUrlsRes" + + "ponse\"R\202\323\344\223\002C\022A/v1alpha/{parent=projects" + + "/*/scanConfigs/*/scanRuns/*}/crawledUrls" + + "\332A\006parent\022\311\001\n\nGetFinding\022:.google.cloud." + + "websecurityscanner.v1alpha.GetFindingReq" + + "uest\0320.google.cloud.websecurityscanner.v" + + "1alpha.Finding\"M\202\323\344\223\002@\022>/v1alpha/{name=p" + + "rojects/*/scanConfigs/*/scanRuns/*/findi" + + "ngs/*}\332A\004name\022\343\001\n\014ListFindings\022<.google." + + "cloud.websecurityscanner.v1alpha.ListFin" + + "dingsRequest\032=.google.cloud.websecuritys" + + "canner.v1alpha.ListFindingsResponse\"V\202\323\344" + + "\223\002@\022>/v1alpha/{parent=projects/*/scanCon" + + "figs/*/scanRuns/*}/findings\332A\rparent,fil" + + "ter\022\374\001\n\024ListFindingTypeStats\022D.google.cl" + + "oud.websecurityscanner.v1alpha.ListFindi" + + "ngTypeStatsRequest\032E.google.cloud.websec" + + "urityscanner.v1alpha.ListFindingTypeStat" + + "sResponse\"W\202\323\344\223\002H\022F/v1alpha/{parent=proj" + + "ects/*/scanConfigs/*/scanRuns/*}/finding" + + "TypeStats\332A\006parent\032U\312A!websecurityscanne" + + "r.googleapis.com\322A.https://www.googleapi" + + "s.com/auth/cloud-platformB\243\001\n+com.google" + + ".cloud.websecurityscanner.v1alphaB\027WebSe" + + "curityScannerProtoP\001ZYgoogle.golang.org/" + + "genproto/googleapis/cloud/websecuritysca" + + "nner/v1alpha;websecurityscannerb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_CreateScanConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "ScanConfig", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_DeleteScanConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_UpdateScanConfigRequest_descriptor, + new java.lang.String[] { + "ScanConfig", "UpdateMask", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanConfigsResponse_descriptor, + new java.lang.String[] { + "ScanConfigs", "NextPageToken", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_StartScanRunRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_GetScanRunRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListScanRunsResponse_descriptor, + new java.lang.String[] { + "ScanRuns", "NextPageToken", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_StopScanRunRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListCrawledUrlsResponse_descriptor, + new java.lang.String[] { + "CrawledUrls", "NextPageToken", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_GetFindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageToken", "PageSize", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingsResponse_descriptor, + new java.lang.String[] { + "Findings", "NextPageToken", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsRequest_descriptor, + new java.lang.String[] { + "Parent", + }); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1alpha_ListFindingTypeStatsResponse_descriptor, + new java.lang.String[] { + "FindingTypeStats", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.CrawledUrlProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.FindingProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStatsProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.ScanConfigProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1alpha.ScanRunProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java similarity index 72% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java index f2ee849b..f8a3b4fc 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; /** + * + * *
  * Information reported for an XSS.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.Xss} */ -public final class Xss extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Xss extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1alpha.Xss) XssOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Xss.newBuilder() to construct. private Xss(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Xss() { stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; errorMessage_ = ""; @@ -26,16 +44,15 @@ private Xss() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Xss(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Xss( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private Xss( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stackTraces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stackTraces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stackTraces_.add(s); + break; } - stackTraces_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + errorMessage_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private Xss( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -94,50 +112,61 @@ private Xss( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.Xss.class, com.google.cloud.websecurityscanner.v1alpha.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.Xss.class, + com.google.cloud.websecurityscanner.v1alpha.Xss.Builder.class); } public static final int STACK_TRACES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList stackTraces_; /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList - getStackTracesList() { + public com.google.protobuf.ProtocolStringList getStackTracesList() { return stackTraces_; } /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -145,27 +174,32 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString - getStackTracesBytes(int index) { + public com.google.protobuf.ByteString getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object errorMessage_; /** + * + * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; + * * @return The errorMessage. */ @java.lang.Override @@ -174,29 +208,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** + * + * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -205,6 +239,7 @@ public java.lang.String getErrorMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,8 +251,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < stackTraces_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stackTraces_.getRaw(i)); } @@ -252,17 +286,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1alpha.Xss)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1alpha.Xss other = (com.google.cloud.websecurityscanner.v1alpha.Xss) obj; + com.google.cloud.websecurityscanner.v1alpha.Xss other = + (com.google.cloud.websecurityscanner.v1alpha.Xss) obj; - if (!getStackTracesList() - .equals(other.getStackTracesList())) return false; - if (!getErrorMessage() - .equals(other.getErrorMessage())) return false; + if (!getStackTracesList().equals(other.getStackTracesList())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -285,118 +318,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1alpha.Xss parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1alpha.Xss parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.Xss parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1alpha.Xss parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1alpha.Xss prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information reported for an XSS.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1alpha.Xss} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1alpha.Xss) com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1alpha.Xss.class, com.google.cloud.websecurityscanner.v1alpha.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1alpha.Xss.class, + com.google.cloud.websecurityscanner.v1alpha.Xss.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1alpha.Xss.newBuilder() @@ -404,16 +446,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +466,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1alpha.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1alpha_Xss_descriptor; } @java.lang.Override @@ -446,7 +487,8 @@ public com.google.cloud.websecurityscanner.v1alpha.Xss build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Xss buildPartial() { - com.google.cloud.websecurityscanner.v1alpha.Xss result = new com.google.cloud.websecurityscanner.v1alpha.Xss(this); + com.google.cloud.websecurityscanner.v1alpha.Xss result = + new com.google.cloud.websecurityscanner.v1alpha.Xss(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -462,38 +504,39 @@ public com.google.cloud.websecurityscanner.v1alpha.Xss buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1alpha.Xss) { - return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.Xss)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1alpha.Xss) other); } else { super.mergeFrom(other); return this; @@ -501,7 +544,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1alpha.Xss other) { - if (other == com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance()) + return this; if (!other.stackTraces_.isEmpty()) { if (stackTraces_.isEmpty()) { stackTraces_ = other.stackTraces_; @@ -544,44 +588,55 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList stackTraces_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureStackTracesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { stackTraces_ = new com.google.protobuf.LazyStringArrayList(stackTraces_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList - getStackTracesList() { + public com.google.protobuf.ProtocolStringList getStackTracesList() { return stackTraces_.getUnmodifiableView(); } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -589,80 +644,90 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString - getStackTracesBytes(int index) { + public com.google.protobuf.ByteString getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param index The index to set the value at. * @param value The stackTraces to set. * @return This builder for chaining. */ - public Builder setStackTraces( - int index, java.lang.String value) { + public Builder setStackTraces(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.set(index, value); onChanged(); return this; } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param value The stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTraces( - java.lang.String value) { + public Builder addStackTraces(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); return this; } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param values The stackTraces to add. * @return This builder for chaining. */ - public Builder addAllStackTraces( - java.lang.Iterable values) { + public Builder addAllStackTraces(java.lang.Iterable values) { ensureStackTracesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stackTraces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stackTraces_); onChanged(); return this; } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @return This builder for chaining. */ public Builder clearStackTraces() { @@ -672,20 +737,22 @@ public Builder clearStackTraces() { return this; } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param value The bytes of the stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTracesBytes( - com.google.protobuf.ByteString value) { + public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); @@ -694,18 +761,20 @@ public Builder addStackTracesBytes( private java.lang.Object errorMessage_ = ""; /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -714,20 +783,21 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -735,61 +805,68 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage( - java.lang.String value) { + public Builder setErrorMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -799,12 +876,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1alpha.Xss) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1alpha.Xss) private static final com.google.cloud.websecurityscanner.v1alpha.Xss DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1alpha.Xss(); } @@ -813,16 +890,16 @@ public static com.google.cloud.websecurityscanner.v1alpha.Xss getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Xss parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Xss(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Xss parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Xss(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -837,6 +914,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.Xss getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java similarity index 65% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java index c70bccff..dfa2303c 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java @@ -1,70 +1,101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1alpha/finding_addon.proto package com.google.cloud.websecurityscanner.v1alpha; -public interface XssOrBuilder extends +public interface XssOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1alpha.Xss) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @return A list containing the stackTraces. */ - java.util.List - getStackTracesList(); + java.util.List getStackTracesList(); /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @return The count of stackTraces. */ int getStackTracesCount(); /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @param index The index of the element to return. * @return The stackTraces at the given index. */ java.lang.String getStackTraces(int index); /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - com.google.protobuf.ByteString - getStackTracesBytes(int index); + com.google.protobuf.ByteString getStackTracesBytes(int index); /** + * + * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; + * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** + * + * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString - getErrorMessageBytes(); + com.google.protobuf.ByteString getErrorMessageBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto b/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto similarity index 100% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto b/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto similarity index 100% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto b/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto similarity index 100% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto b/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto similarity index 100% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto b/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto similarity index 100% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto b/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto similarity index 100% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto b/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto similarity index 100% rename from owl-bot-staging/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto rename to proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java similarity index 71% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java index 8e5bbd3d..a8334886 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/crawled_url.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
  * Security Scanner Service crawls the web applications, following all links
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.CrawledUrl}
  */
-public final class CrawledUrl extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CrawledUrl extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.CrawledUrl)
     CrawledUrlOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CrawledUrl.newBuilder() to construct.
   private CrawledUrl(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CrawledUrl() {
     httpMethod_ = "";
     url_ = "";
@@ -29,16 +47,15 @@ private CrawledUrl() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CrawledUrl();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CrawledUrl(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,31 +74,34 @@ private CrawledUrl(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            httpMethod_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              httpMethod_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            url_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              url_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            body_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              body_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -89,35 +109,40 @@ private CrawledUrl(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto
+        .internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto
+        .internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.CrawledUrl.class, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.CrawledUrl.class,
+            com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder.class);
   }
 
   public static final int HTTP_METHOD_FIELD_NUMBER = 1;
   private volatile java.lang.Object httpMethod_;
   /**
+   *
+   *
    * 
    * The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; + * * @return The httpMethod. */ @java.lang.Override @@ -126,30 +151,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** + * + * *
    * The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; + * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString - getHttpMethodBytes() { + public com.google.protobuf.ByteString getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -160,11 +185,14 @@ public java.lang.String getHttpMethod() { public static final int URL_FIELD_NUMBER = 2; private volatile java.lang.Object url_; /** + * + * *
    * The URL that was crawled.
    * 
* * string url = 2; + * * @return The url. */ @java.lang.Override @@ -173,29 +201,29 @@ public java.lang.String getUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } } /** + * + * *
    * The URL that was crawled.
    * 
* * string url = 2; + * * @return The bytes for url. */ @java.lang.Override - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -206,11 +234,14 @@ public java.lang.String getUrl() { public static final int BODY_FIELD_NUMBER = 3; private volatile java.lang.Object body_; /** + * + * *
    * The body of the request that was used to visit the URL.
    * 
* * string body = 3; + * * @return The body. */ @java.lang.Override @@ -219,29 +250,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** + * + * *
    * The body of the request that was used to visit the URL.
    * 
* * string body = 3; + * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString - getBodyBytes() { + public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); body_ = b; return b; } else { @@ -250,6 +281,7 @@ public java.lang.String getBody() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +293,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpMethod_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, httpMethod_); } @@ -298,19 +329,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.CrawledUrl)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.CrawledUrl other = (com.google.cloud.websecurityscanner.v1beta.CrawledUrl) obj; + com.google.cloud.websecurityscanner.v1beta.CrawledUrl other = + (com.google.cloud.websecurityscanner.v1beta.CrawledUrl) obj; - if (!getHttpMethod() - .equals(other.getHttpMethod())) return false; - if (!getUrl() - .equals(other.getUrl())) return false; - if (!getBody() - .equals(other.getBody())) return false; + if (!getHttpMethod().equals(other.getHttpMethod())) return false; + if (!getUrl().equals(other.getUrl())) return false; + if (!getBody().equals(other.getBody())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,96 +363,104 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.CrawledUrl prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.CrawledUrl prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
    * Security Scanner Service crawls the web applications, following all links
@@ -432,21 +469,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.CrawledUrl}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.CrawledUrl)
       com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.CrawledUrl.class, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.CrawledUrl.class,
+              com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.CrawledUrl.newBuilder()
@@ -454,16 +493,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -477,9 +515,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor;
     }
 
     @java.lang.Override
@@ -498,7 +536,8 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.CrawledUrl buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.CrawledUrl result = new com.google.cloud.websecurityscanner.v1beta.CrawledUrl(this);
+      com.google.cloud.websecurityscanner.v1beta.CrawledUrl result =
+          new com.google.cloud.websecurityscanner.v1beta.CrawledUrl(this);
       result.httpMethod_ = httpMethod_;
       result.url_ = url_;
       result.body_ = body_;
@@ -510,38 +549,39 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.CrawledUrl) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.CrawledUrl)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.CrawledUrl) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -549,7 +589,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.CrawledUrl other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance()) return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance())
+        return this;
       if (!other.getHttpMethod().isEmpty()) {
         httpMethod_ = other.httpMethod_;
         onChanged();
@@ -581,7 +622,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.CrawledUrl) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1beta.CrawledUrl) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -593,19 +635,21 @@ public Builder mergeFrom(
 
     private java.lang.Object httpMethod_ = "";
     /**
+     *
+     *
      * 
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; + * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -614,21 +658,22 @@ public java.lang.String getHttpMethod() { } } /** + * + * *
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; + * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString - getHttpMethodBytes() { + public com.google.protobuf.ByteString getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -636,57 +681,64 @@ public java.lang.String getHttpMethod() { } } /** + * + * *
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; + * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod( - java.lang.String value) { + public Builder setHttpMethod(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** + * + * *
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; + * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** + * + * *
      * The http method of the request that was used to visit the URL, in
      * uppercase.
      * 
* * string http_method = 1; + * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes( - com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -694,18 +746,20 @@ public Builder setHttpMethodBytes( private java.lang.Object url_ = ""; /** + * + * *
      * The URL that was crawled.
      * 
* * string url = 2; + * * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; @@ -714,20 +768,21 @@ public java.lang.String getUrl() { } } /** + * + * *
      * The URL that was crawled.
      * 
* * string url = 2; + * * @return The bytes for url. */ - public com.google.protobuf.ByteString - getUrlBytes() { + public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); url_ = b; return b; } else { @@ -735,54 +790,61 @@ public java.lang.String getUrl() { } } /** + * + * *
      * The URL that was crawled.
      * 
* * string url = 2; + * * @param value The url to set. * @return This builder for chaining. */ - public Builder setUrl( - java.lang.String value) { + public Builder setUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + url_ = value; onChanged(); return this; } /** + * + * *
      * The URL that was crawled.
      * 
* * string url = 2; + * * @return This builder for chaining. */ public Builder clearUrl() { - + url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** + * + * *
      * The URL that was crawled.
      * 
* * string url = 2; + * * @param value The bytes for url to set. * @return This builder for chaining. */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; onChanged(); return this; @@ -790,18 +852,20 @@ public Builder setUrlBytes( private java.lang.Object body_ = ""; /** + * + * *
      * The body of the request that was used to visit the URL.
      * 
* * string body = 3; + * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -810,20 +874,21 @@ public java.lang.String getBody() { } } /** + * + * *
      * The body of the request that was used to visit the URL.
      * 
* * string body = 3; + * * @return The bytes for body. */ - public com.google.protobuf.ByteString - getBodyBytes() { + public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); body_ = b; return b; } else { @@ -831,61 +896,68 @@ public java.lang.String getBody() { } } /** + * + * *
      * The body of the request that was used to visit the URL.
      * 
* * string body = 3; + * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody( - java.lang.String value) { + public Builder setBody(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** + * + * *
      * The body of the request that was used to visit the URL.
      * 
* * string body = 3; + * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** + * + * *
      * The body of the request that was used to visit the URL.
      * 
* * string body = 3; + * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes( - com.google.protobuf.ByteString value) { + public Builder setBodyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -895,12 +967,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.CrawledUrl) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.CrawledUrl) private static final com.google.cloud.websecurityscanner.v1beta.CrawledUrl DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.CrawledUrl(); } @@ -909,16 +981,16 @@ public static com.google.cloud.websecurityscanner.v1beta.CrawledUrl getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CrawledUrl parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CrawledUrl(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CrawledUrl parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CrawledUrl(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -933,6 +1005,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.CrawledUrl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java index 43a78234..ff068067 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java @@ -1,71 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/crawled_url.proto package com.google.cloud.websecurityscanner.v1beta; -public interface CrawledUrlOrBuilder extends +public interface CrawledUrlOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.CrawledUrl) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; + * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** + * + * *
    * The http method of the request that was used to visit the URL, in
    * uppercase.
    * 
* * string http_method = 1; + * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString - getHttpMethodBytes(); + com.google.protobuf.ByteString getHttpMethodBytes(); /** + * + * *
    * The URL that was crawled.
    * 
* * string url = 2; + * * @return The url. */ java.lang.String getUrl(); /** + * + * *
    * The URL that was crawled.
    * 
* * string url = 2; + * * @return The bytes for url. */ - com.google.protobuf.ByteString - getUrlBytes(); + com.google.protobuf.ByteString getUrlBytes(); /** + * + * *
    * The body of the request that was used to visit the URL.
    * 
* * string body = 3; + * * @return The body. */ java.lang.String getBody(); /** + * + * *
    * The body of the request that was used to visit the URL.
    * 
* * string body = 3; + * * @return The bytes for body. */ - com.google.protobuf.ByteString - getBodyBytes(); + com.google.protobuf.ByteString getBodyBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java new file mode 100644 index 00000000..038d2c8a --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java @@ -0,0 +1,70 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/crawled_url.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class CrawledUrlProto { + private CrawledUrlProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/websecurityscanner/v1beta" + + "/crawled_url.proto\022&google.cloud.websecu" + + "rityscanner.v1beta\"<\n\nCrawledUrl\022\023\n\013http" + + "_method\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\022\014\n\004body\030\003 \001(\t" + + "B\227\002\n*com.google.cloud.websecurityscanner" + + ".v1betaB\017CrawledUrlProtoP\001ZXgoogle.golan" + + "g.org/genproto/googleapis/cloud/websecur" + + "ityscanner/v1beta;websecurityscanner\252\002&G" + + "oogle.Cloud.WebSecurityScanner.V1Beta\312\002&" + + "Google\\Cloud\\WebSecurityScanner\\V1beta\352\002" + + ")Google::Cloud::WebSecurityScanner::V1be" + + "tab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_CrawledUrl_descriptor, + new java.lang.String[] { + "HttpMethod", "Url", "Body", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java similarity index 61% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java index dd00c27e..1db99ab1 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Request for the `CreateScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest} */ -public final class CreateScanConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) CreateScanConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateScanConfigRequest.newBuilder() to construct. private CreateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateScanConfigRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,37 @@ private CreateScanConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); + parent_ = s; + break; } - scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); + } + scanConfig_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,35 +108,42 @@ private CreateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,30 +152,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name where the scan is created, which should be a
    * project resource name in the format 'projects/{projectId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -157,11 +188,16 @@ public java.lang.String getParent() { public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1beta.ScanConfig scanConfig_; /** + * + * *
    * Required. The ScanConfig to be created.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -169,23 +205,34 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** + * + * *
    * Required. The ScanConfig to be created.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { - return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() + : scanConfig_; } /** + * + * *
    * Required. The ScanConfig to be created.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder() { @@ -193,6 +240,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +252,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -225,8 +272,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (scanConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getScanConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,19 +282,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest other = + (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasScanConfig() != other.hasScanConfig()) return false; if (hasScanConfig()) { - if (!getScanConfig() - .equals(other.getScanConfig())) return false; + if (!getScanConfig().equals(other.getScanConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,134 +318,145 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `CreateScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,14 +472,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest + .getDefaultInstance(); } @java.lang.Override @@ -437,7 +495,8 @@ public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest(this); result.parent_ = parent_; if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; @@ -452,46 +511,51 @@ public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest other) { - if (other == com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -518,7 +582,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -530,19 +596,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -551,21 +621,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -573,57 +646,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name where the scan is created, which should be a
      * project resource name in the format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -631,39 +717,58 @@ public Builder setParentBytes( private com.google.cloud.websecurityscanner.v1beta.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> + scanConfigBuilder_; /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() + : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -679,11 +784,15 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConf return this; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setScanConfig( com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder builderForValue) { @@ -697,17 +806,23 @@ public Builder setScanConfig( return this; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConfig value) { if (scanConfigBuilder_ == null) { if (scanConfig_ != null) { scanConfig_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.newBuilder(scanConfig_) + .mergeFrom(value) + .buildPartial(); } else { scanConfig_ = value; } @@ -719,11 +834,15 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanCo return this; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearScanConfig() { if (scanConfigBuilder_ == null) { @@ -737,55 +856,71 @@ public Builder clearScanConfig() { return this; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConfigBuilder() { - + onChanged(); return getScanConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder() { if (scanConfigBuilder_ != null) { return scanConfigBuilder_.getMessageOrBuilder(); } else { - return scanConfig_ == null ? - com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() + : scanConfig_; } } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> getScanConfigFieldBuilder() { if (scanConfigBuilder_ == null) { - scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( - getScanConfig(), - getParentForChildren(), - isClean()); + scanConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( + getScanConfig(), getParentForChildren(), isClean()); scanConfig_ = null; } return scanConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,30 +930,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,9 +967,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..ec458d19 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface CreateScanConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource name where the scan is created, which should be a
+   * project resource name in the format 'projects/{projectId}'.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource name where the scan is created, which should be a
+   * project resource name in the format 'projects/{projectId}'.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the scanConfig field is set. + */ + boolean hasScanConfig(); + /** + * + * + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The scanConfig. + */ + com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig(); + /** + * + * + *
+   * Required. The ScanConfig to be created.
+   * 
+ * + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder(); +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java similarity index 63% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java index 666b725d..b30f12e6 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Request for the `DeleteScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest} */ -public final class DeleteScanConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) DeleteScanConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteScanConfigRequest.newBuilder() to construct. private DeleteScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteScanConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private DeleteScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ScanConfig to be deleted. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest other = (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest other = + (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +233,145 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `DeleteScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,14 +381,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest + .getDefaultInstance(); } @java.lang.Override @@ -364,7 +404,8 @@ public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest result = new com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +415,51 @@ public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest other) { - if (other == com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +483,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +497,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +522,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +547,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be deleted. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +627,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +664,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..622e1053 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface DeleteScanConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ScanConfig to be deleted. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the ScanConfig to be deleted. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java similarity index 72% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java index 0815ad80..15ae7730 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * A Finding resource represents a vulnerability instance identified during a
  * ScanRun.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Finding}
  */
-public final class Finding extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Finding extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.Finding)
     FindingOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Finding.newBuilder() to construct.
   private Finding(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Finding() {
     name_ = "";
     findingType_ = "";
@@ -35,16 +53,15 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Finding();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Finding(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -63,151 +80,186 @@ private Finding(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            findingType_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            httpMethod_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            fuzzedUrl_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            body_ = s;
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            description_ = s;
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            reproductionUrl_ = s;
-            break;
-          }
-          case 66: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            frameUrl_ = s;
-            break;
-          }
-          case 74: {
-            java.lang.String s = input.readStringRequireUtf8();
+              findingType_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            finalUrl_ = s;
-            break;
-          }
-          case 82: {
-            java.lang.String s = input.readStringRequireUtf8();
+              httpMethod_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            trackingId_ = s;
-            break;
-          }
-          case 90: {
-            com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder subBuilder = null;
-            if (outdatedLibrary_ != null) {
-              subBuilder = outdatedLibrary_.toBuilder();
+              fuzzedUrl_ = s;
+              break;
             }
-            outdatedLibrary_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outdatedLibrary_);
-              outdatedLibrary_ = subBuilder.buildPartial();
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              body_ = s;
+              break;
             }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 98: {
-            com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder subBuilder = null;
-            if (violatingResource_ != null) {
-              subBuilder = violatingResource_.toBuilder();
+              description_ = s;
+              break;
             }
-            violatingResource_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ViolatingResource.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(violatingResource_);
-              violatingResource_ = subBuilder.buildPartial();
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              reproductionUrl_ = s;
+              break;
             }
+          case 66:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 106: {
-            com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder subBuilder = null;
-            if (vulnerableParameters_ != null) {
-              subBuilder = vulnerableParameters_.toBuilder();
+              frameUrl_ = s;
+              break;
             }
-            vulnerableParameters_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(vulnerableParameters_);
-              vulnerableParameters_ = subBuilder.buildPartial();
+          case 74:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              finalUrl_ = s;
+              break;
             }
+          case 82:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 114: {
-            com.google.cloud.websecurityscanner.v1beta.Xss.Builder subBuilder = null;
-            if (xss_ != null) {
-              subBuilder = xss_.toBuilder();
+              trackingId_ = s;
+              break;
             }
-            xss_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.Xss.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(xss_);
-              xss_ = subBuilder.buildPartial();
+          case 90:
+            {
+              com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder subBuilder = null;
+              if (outdatedLibrary_ != null) {
+                subBuilder = outdatedLibrary_.toBuilder();
+              }
+              outdatedLibrary_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outdatedLibrary_);
+                outdatedLibrary_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 122: {
-            com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder subBuilder = null;
-            if (vulnerableHeaders_ != null) {
-              subBuilder = vulnerableHeaders_.toBuilder();
+          case 98:
+            {
+              com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder subBuilder =
+                  null;
+              if (violatingResource_ != null) {
+                subBuilder = violatingResource_.toBuilder();
+              }
+              violatingResource_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1beta.ViolatingResource.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(violatingResource_);
+                violatingResource_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            vulnerableHeaders_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(vulnerableHeaders_);
-              vulnerableHeaders_ = subBuilder.buildPartial();
+          case 106:
+            {
+              com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder subBuilder =
+                  null;
+              if (vulnerableParameters_ != null) {
+                subBuilder = vulnerableParameters_.toBuilder();
+              }
+              vulnerableParameters_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(vulnerableParameters_);
+                vulnerableParameters_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 130: {
-            com.google.cloud.websecurityscanner.v1beta.Form.Builder subBuilder = null;
-            if (form_ != null) {
-              subBuilder = form_.toBuilder();
+          case 114:
+            {
+              com.google.cloud.websecurityscanner.v1beta.Xss.Builder subBuilder = null;
+              if (xss_ != null) {
+                subBuilder = xss_.toBuilder();
+              }
+              xss_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1beta.Xss.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(xss_);
+                xss_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            form_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.Form.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(form_);
-              form_ = subBuilder.buildPartial();
+          case 122:
+            {
+              com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder subBuilder =
+                  null;
+              if (vulnerableHeaders_ != null) {
+                subBuilder = vulnerableHeaders_.toBuilder();
+              }
+              vulnerableHeaders_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(vulnerableHeaders_);
+                vulnerableHeaders_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 130:
+            {
+              com.google.cloud.websecurityscanner.v1beta.Form.Builder subBuilder = null;
+              if (form_ != null) {
+                subBuilder = form_.toBuilder();
+              }
+              form_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1beta.Form.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(form_);
+                form_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -215,29 +267,33 @@ private Finding(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingProto.internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.FindingProto
+        .internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingProto.internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.FindingProto
+        .internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.Finding.class, com.google.cloud.websecurityscanner.v1beta.Finding.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.Finding.class,
+            com.google.cloud.websecurityscanner.v1beta.Finding.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -245,6 +301,7 @@ private Finding(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -253,14 +310,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -268,16 +326,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -288,6 +345,8 @@ public java.lang.String getName() { public static final int FINDING_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object findingType_; /** + * + * *
    * The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -295,6 +354,7 @@ public java.lang.String getName() {
    * 
* * string finding_type = 2; + * * @return The findingType. */ @java.lang.Override @@ -303,14 +363,15 @@ public java.lang.String getFindingType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; } } /** + * + * *
    * The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -318,16 +379,15 @@ public java.lang.String getFindingType() {
    * 
* * string finding_type = 2; + * * @return The bytes for findingType. */ @java.lang.Override - public com.google.protobuf.ByteString - getFindingTypeBytes() { + public com.google.protobuf.ByteString getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); findingType_ = b; return b; } else { @@ -338,12 +398,15 @@ public java.lang.String getFindingType() { public static final int HTTP_METHOD_FIELD_NUMBER = 3; private volatile java.lang.Object httpMethod_; /** + * + * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; + * * @return The httpMethod. */ @java.lang.Override @@ -352,30 +415,30 @@ public java.lang.String getHttpMethod() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; } } /** + * + * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; + * * @return The bytes for httpMethod. */ @java.lang.Override - public com.google.protobuf.ByteString - getHttpMethodBytes() { + public com.google.protobuf.ByteString getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -386,12 +449,15 @@ public java.lang.String getHttpMethod() { public static final int FUZZED_URL_FIELD_NUMBER = 4; private volatile java.lang.Object fuzzedUrl_; /** + * + * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; + * * @return The fuzzedUrl. */ @java.lang.Override @@ -400,30 +466,30 @@ public java.lang.String getFuzzedUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; } } /** + * + * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; + * * @return The bytes for fuzzedUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getFuzzedUrlBytes() { + public com.google.protobuf.ByteString getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -434,11 +500,14 @@ public java.lang.String getFuzzedUrl() { public static final int BODY_FIELD_NUMBER = 5; private volatile java.lang.Object body_; /** + * + * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; + * * @return The body. */ @java.lang.Override @@ -447,29 +516,29 @@ public java.lang.String getBody() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; } } /** + * + * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; + * * @return The bytes for body. */ @java.lang.Override - public com.google.protobuf.ByteString - getBodyBytes() { + public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); body_ = b; return b; } else { @@ -480,11 +549,14 @@ public java.lang.String getBody() { public static final int DESCRIPTION_FIELD_NUMBER = 6; private volatile java.lang.Object description_; /** + * + * *
    * The description of the vulnerability.
    * 
* * string description = 6; + * * @return The description. */ @java.lang.Override @@ -493,29 +565,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * The description of the vulnerability.
    * 
* * string description = 6; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -526,12 +598,15 @@ public java.lang.String getDescription() { public static final int REPRODUCTION_URL_FIELD_NUMBER = 7; private volatile java.lang.Object reproductionUrl_; /** + * + * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; + * * @return The reproductionUrl. */ @java.lang.Override @@ -540,30 +615,30 @@ public java.lang.String getReproductionUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; } } /** + * + * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; + * * @return The bytes for reproductionUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getReproductionUrlBytes() { + public com.google.protobuf.ByteString getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -574,12 +649,15 @@ public java.lang.String getReproductionUrl() { public static final int FRAME_URL_FIELD_NUMBER = 8; private volatile java.lang.Object frameUrl_; /** + * + * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; + * * @return The frameUrl. */ @java.lang.Override @@ -588,30 +666,30 @@ public java.lang.String getFrameUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; } } /** + * + * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; + * * @return The bytes for frameUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getFrameUrlBytes() { + public com.google.protobuf.ByteString getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -622,11 +700,14 @@ public java.lang.String getFrameUrl() { public static final int FINAL_URL_FIELD_NUMBER = 9; private volatile java.lang.Object finalUrl_; /** + * + * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; + * * @return The finalUrl. */ @java.lang.Override @@ -635,29 +716,29 @@ public java.lang.String getFinalUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; } } /** + * + * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; + * * @return The bytes for finalUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getFinalUrlBytes() { + public com.google.protobuf.ByteString getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -668,12 +749,15 @@ public java.lang.String getFinalUrl() { public static final int TRACKING_ID_FIELD_NUMBER = 10; private volatile java.lang.Object trackingId_; /** + * + * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; + * * @return The trackingId. */ @java.lang.Override @@ -682,30 +766,30 @@ public java.lang.String getTrackingId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; } } /** + * + * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; + * * @return The bytes for trackingId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTrackingIdBytes() { + public com.google.protobuf.ByteString getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); trackingId_ = b; return b; } else { @@ -716,12 +800,15 @@ public java.lang.String getTrackingId() { public static final int FORM_FIELD_NUMBER = 16; private com.google.cloud.websecurityscanner.v1beta.Form form_; /** + * + * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; + * * @return Whether the form field is set. */ @java.lang.Override @@ -729,19 +816,26 @@ public boolean hasForm() { return form_ != null; } /** + * + * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; + * * @return The form. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.Form getForm() { - return form_ == null ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance() : form_; + return form_ == null + ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance() + : form_; } /** + * + * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
@@ -757,11 +851,14 @@ public com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder
   public static final int OUTDATED_LIBRARY_FIELD_NUMBER = 11;
   private com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdatedLibrary_;
   /**
+   *
+   *
    * 
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; + * * @return Whether the outdatedLibrary field is set. */ @java.lang.Override @@ -769,18 +866,25 @@ public boolean hasOutdatedLibrary() { return outdatedLibrary_ != null; } /** + * + * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; + * * @return The outdatedLibrary. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getOutdatedLibrary() { - return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; + return outdatedLibrary_ == null + ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() + : outdatedLibrary_; } /** + * + * *
    * An addon containing information about outdated libraries.
    * 
@@ -788,19 +892,23 @@ public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getOutdatedLib * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder + getOutdatedLibraryOrBuilder() { return getOutdatedLibrary(); } public static final int VIOLATING_RESOURCE_FIELD_NUMBER = 12; private com.google.cloud.websecurityscanner.v1beta.ViolatingResource violatingResource_; /** + * + * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * * @return Whether the violatingResource field is set. */ @java.lang.Override @@ -808,19 +916,26 @@ public boolean hasViolatingResource() { return violatingResource_ != null; } /** + * + * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * * @return The violatingResource. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getViolatingResource() { - return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() : violatingResource_; + return violatingResource_ == null + ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() + : violatingResource_; } /** + * + * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -829,18 +944,22 @@ public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getViolating
    * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder
+      getViolatingResourceOrBuilder() {
     return getViolatingResource();
   }
 
   public static final int VULNERABLE_HEADERS_FIELD_NUMBER = 15;
   private com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerableHeaders_;
   /**
+   *
+   *
    * 
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * * @return Whether the vulnerableHeaders field is set. */ @java.lang.Override @@ -848,18 +967,25 @@ public boolean hasVulnerableHeaders() { return vulnerableHeaders_ != null; } /** + * + * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * * @return The vulnerableHeaders. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getVulnerableHeaders() { - return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; + return vulnerableHeaders_ == null + ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() + : vulnerableHeaders_; } /** + * + * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
@@ -867,19 +993,24 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getVulnerabl * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder + getVulnerableHeadersOrBuilder() { return getVulnerableHeaders(); } public static final int VULNERABLE_PARAMETERS_FIELD_NUMBER = 13; private com.google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerableParameters_; /** + * + * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * + * * @return Whether the vulnerableParameters field is set. */ @java.lang.Override @@ -887,39 +1018,52 @@ public boolean hasVulnerableParameters() { return vulnerableParameters_ != null; } /** + * + * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * + * * @return The vulnerableParameters. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getVulnerableParameters() { - return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; + return vulnerableParameters_ == null + ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() + : vulnerableParameters_; } /** + * + * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder + getVulnerableParametersOrBuilder() { return getVulnerableParameters(); } public static final int XSS_FIELD_NUMBER = 14; private com.google.cloud.websecurityscanner.v1beta.Xss xss_; /** + * + * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; + * * @return Whether the xss field is set. */ @java.lang.Override @@ -927,18 +1071,25 @@ public boolean hasXss() { return xss_ != null; } /** + * + * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; + * * @return The xss. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.Xss getXss() { - return xss_ == null ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() : xss_; + return xss_ == null + ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() + : xss_; } /** + * + * *
    * An addon containing information reported for an XSS, if any.
    * 
@@ -951,6 +1102,7 @@ public com.google.cloud.websecurityscanner.v1beta.XssOrBuilder getXssOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -962,8 +1114,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1052,28 +1203,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, trackingId_); } if (outdatedLibrary_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getOutdatedLibrary()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getOutdatedLibrary()); } if (violatingResource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getViolatingResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getViolatingResource()); } if (vulnerableParameters_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getVulnerableParameters()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(13, getVulnerableParameters()); } if (xss_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getXss()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getXss()); } if (vulnerableHeaders_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getVulnerableHeaders()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getVulnerableHeaders()); } if (form_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getForm()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getForm()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1083,62 +1229,47 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.Finding)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.Finding other = (com.google.cloud.websecurityscanner.v1beta.Finding) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getFindingType() - .equals(other.getFindingType())) return false; - if (!getHttpMethod() - .equals(other.getHttpMethod())) return false; - if (!getFuzzedUrl() - .equals(other.getFuzzedUrl())) return false; - if (!getBody() - .equals(other.getBody())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getReproductionUrl() - .equals(other.getReproductionUrl())) return false; - if (!getFrameUrl() - .equals(other.getFrameUrl())) return false; - if (!getFinalUrl() - .equals(other.getFinalUrl())) return false; - if (!getTrackingId() - .equals(other.getTrackingId())) return false; + com.google.cloud.websecurityscanner.v1beta.Finding other = + (com.google.cloud.websecurityscanner.v1beta.Finding) obj; + + if (!getName().equals(other.getName())) return false; + if (!getFindingType().equals(other.getFindingType())) return false; + if (!getHttpMethod().equals(other.getHttpMethod())) return false; + if (!getFuzzedUrl().equals(other.getFuzzedUrl())) return false; + if (!getBody().equals(other.getBody())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getReproductionUrl().equals(other.getReproductionUrl())) return false; + if (!getFrameUrl().equals(other.getFrameUrl())) return false; + if (!getFinalUrl().equals(other.getFinalUrl())) return false; + if (!getTrackingId().equals(other.getTrackingId())) return false; if (hasForm() != other.hasForm()) return false; if (hasForm()) { - if (!getForm() - .equals(other.getForm())) return false; + if (!getForm().equals(other.getForm())) return false; } if (hasOutdatedLibrary() != other.hasOutdatedLibrary()) return false; if (hasOutdatedLibrary()) { - if (!getOutdatedLibrary() - .equals(other.getOutdatedLibrary())) return false; + if (!getOutdatedLibrary().equals(other.getOutdatedLibrary())) return false; } if (hasViolatingResource() != other.hasViolatingResource()) return false; if (hasViolatingResource()) { - if (!getViolatingResource() - .equals(other.getViolatingResource())) return false; + if (!getViolatingResource().equals(other.getViolatingResource())) return false; } if (hasVulnerableHeaders() != other.hasVulnerableHeaders()) return false; if (hasVulnerableHeaders()) { - if (!getVulnerableHeaders() - .equals(other.getVulnerableHeaders())) return false; + if (!getVulnerableHeaders().equals(other.getVulnerableHeaders())) return false; } if (hasVulnerableParameters() != other.hasVulnerableParameters()) return false; if (hasVulnerableParameters()) { - if (!getVulnerableParameters() - .equals(other.getVulnerableParameters())) return false; + if (!getVulnerableParameters().equals(other.getVulnerableParameters())) return false; } if (hasXss() != other.hasXss()) return false; if (hasXss()) { - if (!getXss() - .equals(other.getXss())) return false; + if (!getXss().equals(other.getXss())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1201,96 +1332,103 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Finding parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.Finding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.Finding parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.Finding parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.Finding prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A Finding resource represents a vulnerability instance identified during a
    * ScanRun.
@@ -1298,21 +1436,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Finding}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.Finding)
       com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingProto.internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingProto.internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.FindingProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.Finding.class, com.google.cloud.websecurityscanner.v1beta.Finding.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.Finding.class,
+              com.google.cloud.websecurityscanner.v1beta.Finding.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.Finding.newBuilder()
@@ -1320,16 +1460,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1393,9 +1532,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingProto.internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor;
     }
 
     @java.lang.Override
@@ -1414,7 +1553,8 @@ public com.google.cloud.websecurityscanner.v1beta.Finding build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.Finding buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.Finding result = new com.google.cloud.websecurityscanner.v1beta.Finding(this);
+      com.google.cloud.websecurityscanner.v1beta.Finding result =
+          new com.google.cloud.websecurityscanner.v1beta.Finding(this);
       result.name_ = name_;
       result.findingType_ = findingType_;
       result.httpMethod_ = httpMethod_;
@@ -1463,38 +1603,39 @@ public com.google.cloud.websecurityscanner.v1beta.Finding buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.Finding) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Finding)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Finding) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1502,7 +1643,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.Finding other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance()) return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1580,7 +1722,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.Finding) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1beta.Finding) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1592,6 +1735,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1599,13 +1744,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1614,6 +1759,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1621,15 +1768,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1637,6 +1783,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1644,20 +1792,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1665,15 +1815,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1681,16 +1834,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1698,6 +1851,8 @@ public Builder setNameBytes( private java.lang.Object findingType_ = ""; /** + * + * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1705,13 +1860,13 @@ public Builder setNameBytes(
      * 
* * string finding_type = 2; + * * @return The findingType. */ public java.lang.String getFindingType() { java.lang.Object ref = findingType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; @@ -1720,6 +1875,8 @@ public java.lang.String getFindingType() { } } /** + * + * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1727,15 +1884,14 @@ public java.lang.String getFindingType() {
      * 
* * string finding_type = 2; + * * @return The bytes for findingType. */ - public com.google.protobuf.ByteString - getFindingTypeBytes() { + public com.google.protobuf.ByteString getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); findingType_ = b; return b; } else { @@ -1743,6 +1899,8 @@ public java.lang.String getFindingType() { } } /** + * + * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1750,20 +1908,22 @@ public java.lang.String getFindingType() {
      * 
* * string finding_type = 2; + * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType( - java.lang.String value) { + public Builder setFindingType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingType_ = value; onChanged(); return this; } /** + * + * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1771,15 +1931,18 @@ public Builder setFindingType(
      * 
* * string finding_type = 2; + * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = getDefaultInstance().getFindingType(); onChanged(); return this; } /** + * + * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1787,16 +1950,16 @@ public Builder clearFindingType() {
      * 
* * string finding_type = 2; + * * @param value The bytes for findingType to set. * @return This builder for chaining. */ - public Builder setFindingTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingType_ = value; onChanged(); return this; @@ -1804,19 +1967,21 @@ public Builder setFindingTypeBytes( private java.lang.Object httpMethod_ = ""; /** + * + * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; + * * @return The httpMethod. */ public java.lang.String getHttpMethod() { java.lang.Object ref = httpMethod_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpMethod_ = s; return s; @@ -1825,21 +1990,22 @@ public java.lang.String getHttpMethod() { } } /** + * + * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; + * * @return The bytes for httpMethod. */ - public com.google.protobuf.ByteString - getHttpMethodBytes() { + public com.google.protobuf.ByteString getHttpMethodBytes() { java.lang.Object ref = httpMethod_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpMethod_ = b; return b; } else { @@ -1847,57 +2013,64 @@ public java.lang.String getHttpMethod() { } } /** + * + * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; + * * @param value The httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethod( - java.lang.String value) { + public Builder setHttpMethod(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpMethod_ = value; onChanged(); return this; } /** + * + * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; + * * @return This builder for chaining. */ public Builder clearHttpMethod() { - + httpMethod_ = getDefaultInstance().getHttpMethod(); onChanged(); return this; } /** + * + * *
      * The http method of the request that triggered the vulnerability, in
      * uppercase.
      * 
* * string http_method = 3; + * * @param value The bytes for httpMethod to set. * @return This builder for chaining. */ - public Builder setHttpMethodBytes( - com.google.protobuf.ByteString value) { + public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpMethod_ = value; onChanged(); return this; @@ -1905,19 +2078,21 @@ public Builder setHttpMethodBytes( private java.lang.Object fuzzedUrl_ = ""; /** - *
+     *
+     *
+     * 
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; + * * @return The fuzzedUrl. */ public java.lang.String getFuzzedUrl() { java.lang.Object ref = fuzzedUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fuzzedUrl_ = s; return s; @@ -1926,21 +2101,22 @@ public java.lang.String getFuzzedUrl() { } } /** + * + * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; + * * @return The bytes for fuzzedUrl. */ - public com.google.protobuf.ByteString - getFuzzedUrlBytes() { + public com.google.protobuf.ByteString getFuzzedUrlBytes() { java.lang.Object ref = fuzzedUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fuzzedUrl_ = b; return b; } else { @@ -1948,57 +2124,64 @@ public java.lang.String getFuzzedUrl() { } } /** + * + * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; + * * @param value The fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrl( - java.lang.String value) { + public Builder setFuzzedUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fuzzedUrl_ = value; onChanged(); return this; } /** + * + * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; + * * @return This builder for chaining. */ public Builder clearFuzzedUrl() { - + fuzzedUrl_ = getDefaultInstance().getFuzzedUrl(); onChanged(); return this; } /** + * + * *
      * The URL produced by the server-side fuzzer and used in the request that
      * triggered the vulnerability.
      * 
* * string fuzzed_url = 4; + * * @param value The bytes for fuzzedUrl to set. * @return This builder for chaining. */ - public Builder setFuzzedUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fuzzedUrl_ = value; onChanged(); return this; @@ -2006,18 +2189,20 @@ public Builder setFuzzedUrlBytes( private java.lang.Object body_ = ""; /** + * + * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; + * * @return The body. */ public java.lang.String getBody() { java.lang.Object ref = body_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); body_ = s; return s; @@ -2026,20 +2211,21 @@ public java.lang.String getBody() { } } /** + * + * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; + * * @return The bytes for body. */ - public com.google.protobuf.ByteString - getBodyBytes() { + public com.google.protobuf.ByteString getBodyBytes() { java.lang.Object ref = body_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); body_ = b; return b; } else { @@ -2047,54 +2233,61 @@ public java.lang.String getBody() { } } /** + * + * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; + * * @param value The body to set. * @return This builder for chaining. */ - public Builder setBody( - java.lang.String value) { + public Builder setBody(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** + * + * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; + * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } /** + * + * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; + * * @param value The bytes for body to set. * @return This builder for chaining. */ - public Builder setBodyBytes( - com.google.protobuf.ByteString value) { + public Builder setBodyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + body_ = value; onChanged(); return this; @@ -2102,18 +2295,20 @@ public Builder setBodyBytes( private java.lang.Object description_ = ""; /** + * + * *
      * The description of the vulnerability.
      * 
* * string description = 6; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2122,20 +2317,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the vulnerability.
      * 
* * string description = 6; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -2143,54 +2339,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * The description of the vulnerability.
      * 
* * string description = 6; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * The description of the vulnerability.
      * 
* * string description = 6; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * The description of the vulnerability.
      * 
* * string description = 6; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2198,19 +2401,21 @@ public Builder setDescriptionBytes( private java.lang.Object reproductionUrl_ = ""; /** + * + * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; + * * @return The reproductionUrl. */ public java.lang.String getReproductionUrl() { java.lang.Object ref = reproductionUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reproductionUrl_ = s; return s; @@ -2219,21 +2424,22 @@ public java.lang.String getReproductionUrl() { } } /** + * + * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; + * * @return The bytes for reproductionUrl. */ - public com.google.protobuf.ByteString - getReproductionUrlBytes() { + public com.google.protobuf.ByteString getReproductionUrlBytes() { java.lang.Object ref = reproductionUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reproductionUrl_ = b; return b; } else { @@ -2241,57 +2447,64 @@ public java.lang.String getReproductionUrl() { } } /** + * + * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; + * * @param value The reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrl( - java.lang.String value) { + public Builder setReproductionUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reproductionUrl_ = value; onChanged(); return this; } /** + * + * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; + * * @return This builder for chaining. */ public Builder clearReproductionUrl() { - + reproductionUrl_ = getDefaultInstance().getReproductionUrl(); onChanged(); return this; } /** + * + * *
      * The URL containing human-readable payload that user can leverage to
      * reproduce the vulnerability.
      * 
* * string reproduction_url = 7; + * * @param value The bytes for reproductionUrl to set. * @return This builder for chaining. */ - public Builder setReproductionUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reproductionUrl_ = value; onChanged(); return this; @@ -2299,19 +2512,21 @@ public Builder setReproductionUrlBytes( private java.lang.Object frameUrl_ = ""; /** + * + * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; + * * @return The frameUrl. */ public java.lang.String getFrameUrl() { java.lang.Object ref = frameUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); frameUrl_ = s; return s; @@ -2320,21 +2535,22 @@ public java.lang.String getFrameUrl() { } } /** + * + * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; + * * @return The bytes for frameUrl. */ - public com.google.protobuf.ByteString - getFrameUrlBytes() { + public com.google.protobuf.ByteString getFrameUrlBytes() { java.lang.Object ref = frameUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); frameUrl_ = b; return b; } else { @@ -2342,57 +2558,64 @@ public java.lang.String getFrameUrl() { } } /** + * + * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; + * * @param value The frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrl( - java.lang.String value) { + public Builder setFrameUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + frameUrl_ = value; onChanged(); return this; } /** + * + * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; + * * @return This builder for chaining. */ public Builder clearFrameUrl() { - + frameUrl_ = getDefaultInstance().getFrameUrl(); onChanged(); return this; } /** + * + * *
      * If the vulnerability was originated from nested IFrame, the immediate
      * parent IFrame is reported.
      * 
* * string frame_url = 8; + * * @param value The bytes for frameUrl to set. * @return This builder for chaining. */ - public Builder setFrameUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + frameUrl_ = value; onChanged(); return this; @@ -2400,18 +2623,20 @@ public Builder setFrameUrlBytes( private java.lang.Object finalUrl_ = ""; /** + * + * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; + * * @return The finalUrl. */ public java.lang.String getFinalUrl() { java.lang.Object ref = finalUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); finalUrl_ = s; return s; @@ -2420,20 +2645,21 @@ public java.lang.String getFinalUrl() { } } /** + * + * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; + * * @return The bytes for finalUrl. */ - public com.google.protobuf.ByteString - getFinalUrlBytes() { + public com.google.protobuf.ByteString getFinalUrlBytes() { java.lang.Object ref = finalUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); finalUrl_ = b; return b; } else { @@ -2441,54 +2667,61 @@ public java.lang.String getFinalUrl() { } } /** + * + * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; + * * @param value The finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrl( - java.lang.String value) { + public Builder setFinalUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + finalUrl_ = value; onChanged(); return this; } /** + * + * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; + * * @return This builder for chaining. */ public Builder clearFinalUrl() { - + finalUrl_ = getDefaultInstance().getFinalUrl(); onChanged(); return this; } /** + * + * *
      * The URL where the browser lands when the vulnerability is detected.
      * 
* * string final_url = 9; + * * @param value The bytes for finalUrl to set. * @return This builder for chaining. */ - public Builder setFinalUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + finalUrl_ = value; onChanged(); return this; @@ -2496,19 +2729,21 @@ public Builder setFinalUrlBytes( private java.lang.Object trackingId_ = ""; /** + * + * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; + * * @return The trackingId. */ public java.lang.String getTrackingId() { java.lang.Object ref = trackingId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trackingId_ = s; return s; @@ -2517,21 +2752,22 @@ public java.lang.String getTrackingId() { } } /** + * + * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; + * * @return The bytes for trackingId. */ - public com.google.protobuf.ByteString - getTrackingIdBytes() { + public com.google.protobuf.ByteString getTrackingIdBytes() { java.lang.Object ref = trackingId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); trackingId_ = b; return b; } else { @@ -2539,57 +2775,64 @@ public java.lang.String getTrackingId() { } } /** + * + * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; + * * @param value The trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingId( - java.lang.String value) { + public Builder setTrackingId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trackingId_ = value; onChanged(); return this; } /** + * + * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; + * * @return This builder for chaining. */ public Builder clearTrackingId() { - + trackingId_ = getDefaultInstance().getTrackingId(); onChanged(); return this; } /** + * + * *
      * The tracking ID uniquely identifies a vulnerability instance across
      * multiple ScanRuns.
      * 
* * string tracking_id = 10; + * * @param value The bytes for trackingId to set. * @return This builder for chaining. */ - public Builder setTrackingIdBytes( - com.google.protobuf.ByteString value) { + public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trackingId_ = value; onChanged(); return this; @@ -2597,36 +2840,49 @@ public Builder setTrackingIdBytes( private com.google.cloud.websecurityscanner.v1beta.Form form_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Form, com.google.cloud.websecurityscanner.v1beta.Form.Builder, com.google.cloud.websecurityscanner.v1beta.FormOrBuilder> formBuilder_; + com.google.cloud.websecurityscanner.v1beta.Form, + com.google.cloud.websecurityscanner.v1beta.Form.Builder, + com.google.cloud.websecurityscanner.v1beta.FormOrBuilder> + formBuilder_; /** + * + * *
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; + * * @return Whether the form field is set. */ public boolean hasForm() { return formBuilder_ != null || form_ != null; } /** + * + * *
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
      * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; + * * @return The form. */ public com.google.cloud.websecurityscanner.v1beta.Form getForm() { if (formBuilder_ == null) { - return form_ == null ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance() : form_; + return form_ == null + ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance() + : form_; } else { return formBuilder_.getMessage(); } } /** + * + * *
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2648,6 +2904,8 @@ public Builder setForm(com.google.cloud.websecurityscanner.v1beta.Form value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2667,6 +2925,8 @@ public Builder setForm(
       return this;
     }
     /**
+     *
+     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2678,7 +2938,9 @@ public Builder mergeForm(com.google.cloud.websecurityscanner.v1beta.Form value)
       if (formBuilder_ == null) {
         if (form_ != null) {
           form_ =
-            com.google.cloud.websecurityscanner.v1beta.Form.newBuilder(form_).mergeFrom(value).buildPartial();
+              com.google.cloud.websecurityscanner.v1beta.Form.newBuilder(form_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           form_ = value;
         }
@@ -2690,6 +2952,8 @@ public Builder mergeForm(com.google.cloud.websecurityscanner.v1beta.Form value)
       return this;
     }
     /**
+     *
+     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2709,6 +2973,8 @@ public Builder clearForm() {
       return this;
     }
     /**
+     *
+     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2717,11 +2983,13 @@ public Builder clearForm() {
      * .google.cloud.websecurityscanner.v1beta.Form form = 16;
      */
     public com.google.cloud.websecurityscanner.v1beta.Form.Builder getFormBuilder() {
-      
+
       onChanged();
       return getFormFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2733,11 +3001,14 @@ public com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder
       if (formBuilder_ != null) {
         return formBuilder_.getMessageOrBuilder();
       } else {
-        return form_ == null ?
-            com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance() : form_;
+        return form_ == null
+            ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance()
+            : form_;
       }
     }
     /**
+     *
+     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2746,14 +3017,17 @@ public com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder
      * .google.cloud.websecurityscanner.v1beta.Form form = 16;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.websecurityscanner.v1beta.Form, com.google.cloud.websecurityscanner.v1beta.Form.Builder, com.google.cloud.websecurityscanner.v1beta.FormOrBuilder> 
+            com.google.cloud.websecurityscanner.v1beta.Form,
+            com.google.cloud.websecurityscanner.v1beta.Form.Builder,
+            com.google.cloud.websecurityscanner.v1beta.FormOrBuilder>
         getFormFieldBuilder() {
       if (formBuilder_ == null) {
-        formBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1beta.Form, com.google.cloud.websecurityscanner.v1beta.Form.Builder, com.google.cloud.websecurityscanner.v1beta.FormOrBuilder>(
-                getForm(),
-                getParentForChildren(),
-                isClean());
+        formBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.websecurityscanner.v1beta.Form,
+                com.google.cloud.websecurityscanner.v1beta.Form.Builder,
+                com.google.cloud.websecurityscanner.v1beta.FormOrBuilder>(
+                getForm(), getParentForChildren(), isClean());
         form_ = null;
       }
       return formBuilder_;
@@ -2761,41 +3035,55 @@ public com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder
 
     private com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdatedLibrary_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary, com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder> outdatedLibraryBuilder_;
+            com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary,
+            com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder,
+            com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder>
+        outdatedLibraryBuilder_;
     /**
+     *
+     *
      * 
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; + * * @return Whether the outdatedLibrary field is set. */ public boolean hasOutdatedLibrary() { return outdatedLibraryBuilder_ != null || outdatedLibrary_ != null; } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; + * * @return The outdatedLibrary. */ public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getOutdatedLibrary() { if (outdatedLibraryBuilder_ == null) { - return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; + return outdatedLibrary_ == null + ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() + : outdatedLibrary_; } else { return outdatedLibraryBuilder_.getMessage(); } } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ - public Builder setOutdatedLibrary(com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary value) { + public Builder setOutdatedLibrary( + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2809,6 +3097,8 @@ public Builder setOutdatedLibrary(com.google.cloud.websecurityscanner.v1beta.Out return this; } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
@@ -2827,17 +3117,23 @@ public Builder setOutdatedLibrary( return this; } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ - public Builder mergeOutdatedLibrary(com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary value) { + public Builder mergeOutdatedLibrary( + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary value) { if (outdatedLibraryBuilder_ == null) { if (outdatedLibrary_ != null) { outdatedLibrary_ = - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.newBuilder(outdatedLibrary_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.newBuilder( + outdatedLibrary_) + .mergeFrom(value) + .buildPartial(); } else { outdatedLibrary_ = value; } @@ -2849,6 +3145,8 @@ public Builder mergeOutdatedLibrary(com.google.cloud.websecurityscanner.v1beta.O return this; } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
@@ -2867,33 +3165,42 @@ public Builder clearOutdatedLibrary() { return this; } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder getOutdatedLibraryBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder + getOutdatedLibraryBuilder() { + onChanged(); return getOutdatedLibraryFieldBuilder().getBuilder(); } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ - public com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder + getOutdatedLibraryOrBuilder() { if (outdatedLibraryBuilder_ != null) { return outdatedLibraryBuilder_.getMessageOrBuilder(); } else { - return outdatedLibrary_ == null ? - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; + return outdatedLibrary_ == null + ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() + : outdatedLibrary_; } } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
@@ -2901,14 +3208,17 @@ public com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder getOu * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary, com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder> + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary, + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder, + com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder> getOutdatedLibraryFieldBuilder() { if (outdatedLibraryBuilder_ == null) { - outdatedLibraryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary, com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder, com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder>( - getOutdatedLibrary(), - getParentForChildren(), - isClean()); + outdatedLibraryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary, + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder, + com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder>( + getOutdatedLibrary(), getParentForChildren(), isClean()); outdatedLibrary_ = null; } return outdatedLibraryBuilder_; @@ -2916,44 +3226,61 @@ public com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder getOu private com.google.cloud.websecurityscanner.v1beta.ViolatingResource violatingResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ViolatingResource, com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder> violatingResourceBuilder_; + com.google.cloud.websecurityscanner.v1beta.ViolatingResource, + com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, + com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder> + violatingResourceBuilder_; /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * + * * @return Whether the violatingResource field is set. */ public boolean hasViolatingResource() { return violatingResourceBuilder_ != null || violatingResource_ != null; } /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * + * * @return The violatingResource. */ public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getViolatingResource() { if (violatingResourceBuilder_ == null) { - return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() : violatingResource_; + return violatingResource_ == null + ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() + : violatingResource_; } else { return violatingResourceBuilder_.getMessage(); } } /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * */ - public Builder setViolatingResource(com.google.cloud.websecurityscanner.v1beta.ViolatingResource value) { + public Builder setViolatingResource( + com.google.cloud.websecurityscanner.v1beta.ViolatingResource value) { if (violatingResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2967,12 +3294,15 @@ public Builder setViolatingResource(com.google.cloud.websecurityscanner.v1beta.V return this; } /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * */ public Builder setViolatingResource( com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder builderForValue) { @@ -2986,18 +3316,25 @@ public Builder setViolatingResource( return this; } /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * */ - public Builder mergeViolatingResource(com.google.cloud.websecurityscanner.v1beta.ViolatingResource value) { + public Builder mergeViolatingResource( + com.google.cloud.websecurityscanner.v1beta.ViolatingResource value) { if (violatingResourceBuilder_ == null) { if (violatingResource_ != null) { violatingResource_ = - com.google.cloud.websecurityscanner.v1beta.ViolatingResource.newBuilder(violatingResource_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ViolatingResource.newBuilder( + violatingResource_) + .mergeFrom(value) + .buildPartial(); } else { violatingResource_ = value; } @@ -3009,12 +3346,15 @@ public Builder mergeViolatingResource(com.google.cloud.websecurityscanner.v1beta return this; } /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * */ public Builder clearViolatingResource() { if (violatingResourceBuilder_ == null) { @@ -3028,51 +3368,66 @@ public Builder clearViolatingResource() { return this; } /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * */ - public com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder getViolatingResourceBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder + getViolatingResourceBuilder() { + onChanged(); return getViolatingResourceFieldBuilder().getBuilder(); } /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * */ - public com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder + getViolatingResourceOrBuilder() { if (violatingResourceBuilder_ != null) { return violatingResourceBuilder_.getMessageOrBuilder(); } else { - return violatingResource_ == null ? - com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() : violatingResource_; + return violatingResource_ == null + ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() + : violatingResource_; } } /** + * + * *
      * An addon containing detailed information regarding any resource causing the
      * vulnerability such as JavaScript sources, image, audio files, etc.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ViolatingResource, com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ViolatingResource, + com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, + com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder> getViolatingResourceFieldBuilder() { if (violatingResourceBuilder_ == null) { - violatingResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ViolatingResource, com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder>( - getViolatingResource(), - getParentForChildren(), - isClean()); + violatingResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ViolatingResource, + com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder, + com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder>( + getViolatingResource(), getParentForChildren(), isClean()); violatingResource_ = null; } return violatingResourceBuilder_; @@ -3080,41 +3435,58 @@ public com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder get private com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerableHeaders_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder> vulnerableHeadersBuilder_; + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder> + vulnerableHeadersBuilder_; /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * + * * @return Whether the vulnerableHeaders field is set. */ public boolean hasVulnerableHeaders() { return vulnerableHeadersBuilder_ != null || vulnerableHeaders_ != null; } /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * + * * @return The vulnerableHeaders. */ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getVulnerableHeaders() { if (vulnerableHeadersBuilder_ == null) { - return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; + return vulnerableHeaders_ == null + ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() + : vulnerableHeaders_; } else { return vulnerableHeadersBuilder_.getMessage(); } } /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * */ - public Builder setVulnerableHeaders(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders value) { + public Builder setVulnerableHeaders( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3128,11 +3500,14 @@ public Builder setVulnerableHeaders(com.google.cloud.websecurityscanner.v1beta.V return this; } /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * */ public Builder setVulnerableHeaders( com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder builderForValue) { @@ -3146,17 +3521,24 @@ public Builder setVulnerableHeaders( return this; } /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * */ - public Builder mergeVulnerableHeaders(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders value) { + public Builder mergeVulnerableHeaders( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders value) { if (vulnerableHeadersBuilder_ == null) { if (vulnerableHeaders_ != null) { vulnerableHeaders_ = - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.newBuilder(vulnerableHeaders_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.newBuilder( + vulnerableHeaders_) + .mergeFrom(value) + .buildPartial(); } else { vulnerableHeaders_ = value; } @@ -3168,11 +3550,14 @@ public Builder mergeVulnerableHeaders(com.google.cloud.websecurityscanner.v1beta return this; } /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * */ public Builder clearVulnerableHeaders() { if (vulnerableHeadersBuilder_ == null) { @@ -3186,48 +3571,63 @@ public Builder clearVulnerableHeaders() { return this; } /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder getVulnerableHeadersBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder + getVulnerableHeadersBuilder() { + onChanged(); return getVulnerableHeadersFieldBuilder().getBuilder(); } /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder + getVulnerableHeadersOrBuilder() { if (vulnerableHeadersBuilder_ != null) { return vulnerableHeadersBuilder_.getMessageOrBuilder(); } else { - return vulnerableHeaders_ == null ? - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; + return vulnerableHeaders_ == null + ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() + : vulnerableHeaders_; } } /** + * + * *
      * An addon containing information about vulnerable or missing HTTP headers.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder> + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder> getVulnerableHeadersFieldBuilder() { if (vulnerableHeadersBuilder_ == null) { - vulnerableHeadersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder>( - getVulnerableHeaders(), - getParentForChildren(), - isClean()); + vulnerableHeadersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder>( + getVulnerableHeaders(), getParentForChildren(), isClean()); vulnerableHeaders_ = null; } return vulnerableHeadersBuilder_; @@ -3235,44 +3635,65 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder get private com.google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerableParameters_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder> vulnerableParametersBuilder_; + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, + com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder> + vulnerableParametersBuilder_; /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * + * * @return Whether the vulnerableParameters field is set. */ public boolean hasVulnerableParameters() { return vulnerableParametersBuilder_ != null || vulnerableParameters_ != null; } /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * + * * @return The vulnerableParameters. */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getVulnerableParameters() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters + getVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { - return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; + return vulnerableParameters_ == null + ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() + : vulnerableParameters_; } else { return vulnerableParametersBuilder_.getMessage(); } } /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * */ - public Builder setVulnerableParameters(com.google.cloud.websecurityscanner.v1beta.VulnerableParameters value) { + public Builder setVulnerableParameters( + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3286,12 +3707,16 @@ public Builder setVulnerableParameters(com.google.cloud.websecurityscanner.v1bet return this; } /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * */ public Builder setVulnerableParameters( com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder builderForValue) { @@ -3305,18 +3730,26 @@ public Builder setVulnerableParameters( return this; } /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * */ - public Builder mergeVulnerableParameters(com.google.cloud.websecurityscanner.v1beta.VulnerableParameters value) { + public Builder mergeVulnerableParameters( + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters value) { if (vulnerableParametersBuilder_ == null) { if (vulnerableParameters_ != null) { vulnerableParameters_ = - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.newBuilder(vulnerableParameters_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.newBuilder( + vulnerableParameters_) + .mergeFrom(value) + .buildPartial(); } else { vulnerableParameters_ = value; } @@ -3328,12 +3761,16 @@ public Builder mergeVulnerableParameters(com.google.cloud.websecurityscanner.v1b return this; } /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * */ public Builder clearVulnerableParameters() { if (vulnerableParametersBuilder_ == null) { @@ -3347,51 +3784,69 @@ public Builder clearVulnerableParameters() { return this; } /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder getVulnerableParametersBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder + getVulnerableParametersBuilder() { + onChanged(); return getVulnerableParametersFieldBuilder().getBuilder(); } /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder + getVulnerableParametersOrBuilder() { if (vulnerableParametersBuilder_ != null) { return vulnerableParametersBuilder_.getMessageOrBuilder(); } else { - return vulnerableParameters_ == null ? - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; + return vulnerableParameters_ == null + ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() + : vulnerableParameters_; } } /** + * + * *
      * An addon containing information about request parameters which were found
      * to be vulnerable.
      * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder> + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, + com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder> getVulnerableParametersFieldBuilder() { if (vulnerableParametersBuilder_ == null) { - vulnerableParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder>( - getVulnerableParameters(), - getParentForChildren(), - isClean()); + vulnerableParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters, + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder, + com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder>( + getVulnerableParameters(), getParentForChildren(), isClean()); vulnerableParameters_ = null; } return vulnerableParametersBuilder_; @@ -3399,34 +3854,47 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder private com.google.cloud.websecurityscanner.v1beta.Xss xss_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Xss, com.google.cloud.websecurityscanner.v1beta.Xss.Builder, com.google.cloud.websecurityscanner.v1beta.XssOrBuilder> xssBuilder_; + com.google.cloud.websecurityscanner.v1beta.Xss, + com.google.cloud.websecurityscanner.v1beta.Xss.Builder, + com.google.cloud.websecurityscanner.v1beta.XssOrBuilder> + xssBuilder_; /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; + * * @return Whether the xss field is set. */ public boolean hasXss() { return xssBuilder_ != null || xss_ != null; } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; + * * @return The xss. */ public com.google.cloud.websecurityscanner.v1beta.Xss getXss() { if (xssBuilder_ == null) { - return xss_ == null ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() : xss_; + return xss_ == null + ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() + : xss_; } else { return xssBuilder_.getMessage(); } } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3447,14 +3915,15 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1beta.Xss value) { return this; } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; */ - public Builder setXss( - com.google.cloud.websecurityscanner.v1beta.Xss.Builder builderForValue) { + public Builder setXss(com.google.cloud.websecurityscanner.v1beta.Xss.Builder builderForValue) { if (xssBuilder_ == null) { xss_ = builderForValue.build(); onChanged(); @@ -3465,6 +3934,8 @@ public Builder setXss( return this; } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3475,7 +3946,9 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1beta.Xss value) { if (xssBuilder_ == null) { if (xss_ != null) { xss_ = - com.google.cloud.websecurityscanner.v1beta.Xss.newBuilder(xss_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1beta.Xss.newBuilder(xss_) + .mergeFrom(value) + .buildPartial(); } else { xss_ = value; } @@ -3487,6 +3960,8 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1beta.Xss value) { return this; } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3505,6 +3980,8 @@ public Builder clearXss() { return this; } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3512,11 +3989,13 @@ public Builder clearXss() { * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; */ public com.google.cloud.websecurityscanner.v1beta.Xss.Builder getXssBuilder() { - + onChanged(); return getXssFieldBuilder().getBuilder(); } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3527,11 +4006,14 @@ public com.google.cloud.websecurityscanner.v1beta.XssOrBuilder getXssOrBuilder() if (xssBuilder_ != null) { return xssBuilder_.getMessageOrBuilder(); } else { - return xss_ == null ? - com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() : xss_; + return xss_ == null + ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() + : xss_; } } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3539,21 +4021,24 @@ public com.google.cloud.websecurityscanner.v1beta.XssOrBuilder getXssOrBuilder() * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Xss, com.google.cloud.websecurityscanner.v1beta.Xss.Builder, com.google.cloud.websecurityscanner.v1beta.XssOrBuilder> + com.google.cloud.websecurityscanner.v1beta.Xss, + com.google.cloud.websecurityscanner.v1beta.Xss.Builder, + com.google.cloud.websecurityscanner.v1beta.XssOrBuilder> getXssFieldBuilder() { if (xssBuilder_ == null) { - xssBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Xss, com.google.cloud.websecurityscanner.v1beta.Xss.Builder, com.google.cloud.websecurityscanner.v1beta.XssOrBuilder>( - getXss(), - getParentForChildren(), - isClean()); + xssBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.Xss, + com.google.cloud.websecurityscanner.v1beta.Xss.Builder, + com.google.cloud.websecurityscanner.v1beta.XssOrBuilder>( + getXss(), getParentForChildren(), isClean()); xss_ = null; } return xssBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3563,12 +4048,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.Finding) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.Finding) private static final com.google.cloud.websecurityscanner.v1beta.Finding DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.Finding(); } @@ -3577,16 +4062,16 @@ public static com.google.cloud.websecurityscanner.v1beta.Finding getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Finding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Finding(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Finding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Finding(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3601,6 +4086,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java new file mode 100644 index 00000000..fe2f22f0 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java @@ -0,0 +1,155 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/finding_addon.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class FindingAddonProto { + private FindingAddonProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/websecurityscanner/v1beta" + + "/finding_addon.proto\022&google.cloud.webse" + + "curityscanner.v1beta\"*\n\004Form\022\022\n\naction_u" + + "ri\030\001 \001(\t\022\016\n\006fields\030\002 \003(\t\"Q\n\017OutdatedLibr" + + "ary\022\024\n\014library_name\030\001 \001(\t\022\017\n\007version\030\002 \001" + + "(\t\022\027\n\017learn_more_urls\030\003 \003(\t\"?\n\021Violating" + + "Resource\022\024\n\014content_type\030\001 \001(\t\022\024\n\014resour" + + "ce_url\030\002 \001(\t\"/\n\024VulnerableParameters\022\027\n\017" + + "parameter_names\030\001 \003(\t\"\350\001\n\021VulnerableHead" + + "ers\022Q\n\007headers\030\001 \003(\0132@.google.cloud.webs" + + "ecurityscanner.v1beta.VulnerableHeaders." + + "Header\022Y\n\017missing_headers\030\002 \003(\0132@.google" + + ".cloud.websecurityscanner.v1beta.Vulnera" + + "bleHeaders.Header\032%\n\006Header\022\014\n\004name\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t\"2\n\003Xss\022\024\n\014stack_traces\030" + + "\001 \003(\t\022\025\n\rerror_message\030\002 \001(\tB\231\002\n*com.goo" + + "gle.cloud.websecurityscanner.v1betaB\021Fin" + + "dingAddonProtoP\001ZXgoogle.golang.org/genp" + + "roto/googleapis/cloud/websecurityscanner" + + "/v1beta;websecurityscanner\252\002&Google.Clou" + + "d.WebSecurityScanner.V1Beta\312\002&Google\\Clo" + + "ud\\WebSecurityScanner\\V1beta\352\002)Google::C" + + "loud::WebSecurityScanner::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor, + new java.lang.String[] { + "ActionUri", "Fields", + }); + internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor, + new java.lang.String[] { + "LibraryName", "Version", "LearnMoreUrls", + }); + internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor, + new java.lang.String[] { + "ContentType", "ResourceUrl", + }); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor, + new java.lang.String[] { + "ParameterNames", + }); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor, + new java.lang.String[] { + "Headers", "MissingHeaders", + }); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor = + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor, + new java.lang.String[] { + "Name", "Value", + }); + internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor, + new java.lang.String[] { + "StackTraces", "ErrorMessage", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java similarity index 100% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java similarity index 84% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java index e8121da0..c8c81187 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding.proto package com.google.cloud.websecurityscanner.v1beta; -public interface FindingOrBuilder extends +public interface FindingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.Finding) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -15,10 +33,13 @@ public interface FindingOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the Finding. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -26,12 +47,14 @@ public interface FindingOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -39,10 +62,13 @@ public interface FindingOrBuilder extends
    * 
* * string finding_type = 2; + * * @return The findingType. */ java.lang.String getFindingType(); /** + * + * *
    * The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -50,202 +76,250 @@ public interface FindingOrBuilder extends
    * 
* * string finding_type = 2; + * * @return The bytes for findingType. */ - com.google.protobuf.ByteString - getFindingTypeBytes(); + com.google.protobuf.ByteString getFindingTypeBytes(); /** + * + * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; + * * @return The httpMethod. */ java.lang.String getHttpMethod(); /** + * + * *
    * The http method of the request that triggered the vulnerability, in
    * uppercase.
    * 
* * string http_method = 3; + * * @return The bytes for httpMethod. */ - com.google.protobuf.ByteString - getHttpMethodBytes(); + com.google.protobuf.ByteString getHttpMethodBytes(); /** + * + * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; + * * @return The fuzzedUrl. */ java.lang.String getFuzzedUrl(); /** + * + * *
    * The URL produced by the server-side fuzzer and used in the request that
    * triggered the vulnerability.
    * 
* * string fuzzed_url = 4; + * * @return The bytes for fuzzedUrl. */ - com.google.protobuf.ByteString - getFuzzedUrlBytes(); + com.google.protobuf.ByteString getFuzzedUrlBytes(); /** + * + * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; + * * @return The body. */ java.lang.String getBody(); /** + * + * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; + * * @return The bytes for body. */ - com.google.protobuf.ByteString - getBodyBytes(); + com.google.protobuf.ByteString getBodyBytes(); /** + * + * *
    * The description of the vulnerability.
    * 
* * string description = 6; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * The description of the vulnerability.
    * 
* * string description = 6; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; + * * @return The reproductionUrl. */ java.lang.String getReproductionUrl(); /** + * + * *
    * The URL containing human-readable payload that user can leverage to
    * reproduce the vulnerability.
    * 
* * string reproduction_url = 7; + * * @return The bytes for reproductionUrl. */ - com.google.protobuf.ByteString - getReproductionUrlBytes(); + com.google.protobuf.ByteString getReproductionUrlBytes(); /** + * + * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; + * * @return The frameUrl. */ java.lang.String getFrameUrl(); /** + * + * *
    * If the vulnerability was originated from nested IFrame, the immediate
    * parent IFrame is reported.
    * 
* * string frame_url = 8; + * * @return The bytes for frameUrl. */ - com.google.protobuf.ByteString - getFrameUrlBytes(); + com.google.protobuf.ByteString getFrameUrlBytes(); /** + * + * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; + * * @return The finalUrl. */ java.lang.String getFinalUrl(); /** + * + * *
    * The URL where the browser lands when the vulnerability is detected.
    * 
* * string final_url = 9; + * * @return The bytes for finalUrl. */ - com.google.protobuf.ByteString - getFinalUrlBytes(); + com.google.protobuf.ByteString getFinalUrlBytes(); /** + * + * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; + * * @return The trackingId. */ java.lang.String getTrackingId(); /** + * + * *
    * The tracking ID uniquely identifies a vulnerability instance across
    * multiple ScanRuns.
    * 
* * string tracking_id = 10; + * * @return The bytes for trackingId. */ - com.google.protobuf.ByteString - getTrackingIdBytes(); + com.google.protobuf.ByteString getTrackingIdBytes(); /** + * + * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; + * * @return Whether the form field is set. */ boolean hasForm(); /** + * + * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Form form = 16; + * * @return The form. */ com.google.cloud.websecurityscanner.v1beta.Form getForm(); /** + * + * *
    * An addon containing information reported for a vulnerability with an HTML
    * form, if any.
@@ -256,24 +330,32 @@ public interface FindingOrBuilder extends
   com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder();
 
   /**
+   *
+   *
    * 
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; + * * @return Whether the outdatedLibrary field is set. */ boolean hasOutdatedLibrary(); /** + * + * *
    * An addon containing information about outdated libraries.
    * 
* * .google.cloud.websecurityscanner.v1beta.OutdatedLibrary outdated_library = 11; + * * @return The outdatedLibrary. */ com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getOutdatedLibrary(); /** + * + * *
    * An addon containing information about outdated libraries.
    * 
@@ -283,26 +365,34 @@ public interface FindingOrBuilder extends com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder(); /** + * + * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * * @return Whether the violatingResource field is set. */ boolean hasViolatingResource(); /** + * + * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
    * 
* * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12; + * * @return The violatingResource. */ com.google.cloud.websecurityscanner.v1beta.ViolatingResource getViolatingResource(); /** + * + * *
    * An addon containing detailed information regarding any resource causing the
    * vulnerability such as JavaScript sources, image, audio files, etc.
@@ -310,84 +400,114 @@ public interface FindingOrBuilder extends
    *
    * .google.cloud.websecurityscanner.v1beta.ViolatingResource violating_resource = 12;
    */
-  com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder getViolatingResourceOrBuilder();
+  com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder
+      getViolatingResourceOrBuilder();
 
   /**
+   *
+   *
    * 
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * * @return Whether the vulnerableHeaders field is set. */ boolean hasVulnerableHeaders(); /** + * + * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; + * * @return The vulnerableHeaders. */ com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getVulnerableHeaders(); /** + * + * *
    * An addon containing information about vulnerable or missing HTTP headers.
    * 
* * .google.cloud.websecurityscanner.v1beta.VulnerableHeaders vulnerable_headers = 15; */ - com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder(); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder + getVulnerableHeadersOrBuilder(); /** + * + * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * + * * @return Whether the vulnerableParameters field is set. */ boolean hasVulnerableParameters(); /** + * + * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * + * * @return The vulnerableParameters. */ com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getVulnerableParameters(); /** + * + * *
    * An addon containing information about request parameters which were found
    * to be vulnerable.
    * 
* - * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * .google.cloud.websecurityscanner.v1beta.VulnerableParameters vulnerable_parameters = 13; + * */ - com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder(); + com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder + getVulnerableParametersOrBuilder(); /** + * + * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; + * * @return Whether the xss field is set. */ boolean hasXss(); /** + * + * *
    * An addon containing information reported for an XSS, if any.
    * 
* * .google.cloud.websecurityscanner.v1beta.Xss xss = 14; + * * @return The xss. */ com.google.cloud.websecurityscanner.v1beta.Xss getXss(); /** + * + * *
    * An addon containing information reported for an XSS, if any.
    * 
diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java new file mode 100644 index 00000000..84a2e452 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java @@ -0,0 +1,116 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/finding.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class FindingProto { + private FindingProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/websecurityscanner/v1beta" + + "/finding.proto\022&google.cloud.websecurity" + + "scanner.v1beta\032\031google/api/resource.prot" + + "o\032:google/cloud/websecurityscanner/v1bet" + + "a/finding_addon.proto\"\251\006\n\007Finding\022\014\n\004nam" + + "e\030\001 \001(\t\022\024\n\014finding_type\030\002 \001(\t\022\023\n\013http_me" + + "thod\030\003 \001(\t\022\022\n\nfuzzed_url\030\004 \001(\t\022\014\n\004body\030\005" + + " \001(\t\022\023\n\013description\030\006 \001(\t\022\030\n\020reproductio" + + "n_url\030\007 \001(\t\022\021\n\tframe_url\030\010 \001(\t\022\021\n\tfinal_" + + "url\030\t \001(\t\022\023\n\013tracking_id\030\n \001(\t\022:\n\004form\030\020" + + " \001(\0132,.google.cloud.websecurityscanner.v" + + "1beta.Form\022Q\n\020outdated_library\030\013 \001(\01327.g" + + "oogle.cloud.websecurityscanner.v1beta.Ou" + + "tdatedLibrary\022U\n\022violating_resource\030\014 \001(" + + "\01329.google.cloud.websecurityscanner.v1be" + + "ta.ViolatingResource\022U\n\022vulnerable_heade" + + "rs\030\017 \001(\01329.google.cloud.websecurityscann" + + "er.v1beta.VulnerableHeaders\022[\n\025vulnerabl" + + "e_parameters\030\r \001(\0132<.google.cloud.websec" + + "urityscanner.v1beta.VulnerableParameters" + + "\0228\n\003xss\030\016 \001(\0132+.google.cloud.websecurity" + + "scanner.v1beta.Xss:\204\001\352A\200\001\n)websecuritysc" + + "anner.googleapis.com/Finding\022Sprojects/{" + + "project}/scanConfigs/{scan_config}/scanR" + + "uns/{scan_run}/findings/{finding}B\224\002\n*co" + + "m.google.cloud.websecurityscanner.v1beta" + + "B\014FindingProtoP\001ZXgoogle.golang.org/genp" + + "roto/googleapis/cloud/websecurityscanner" + + "/v1beta;websecurityscanner\252\002&Google.Clou" + + "d.WebSecurityScanner.V1Beta\312\002&Google\\Clo" + + "ud\\WebSecurityScanner\\V1beta\352\002)Google::C" + + "loud::WebSecurityScanner::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_Finding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_Finding_descriptor, + new java.lang.String[] { + "Name", + "FindingType", + "HttpMethod", + "FuzzedUrl", + "Body", + "Description", + "ReproductionUrl", + "FrameUrl", + "FinalUrl", + "TrackingId", + "Form", + "OutdatedLibrary", + "ViolatingResource", + "VulnerableHeaders", + "VulnerableParameters", + "Xss", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java similarity index 70% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java index f333459c..40ea677b 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * A FindingTypeStats resource represents stats regarding a specific FindingType
  * of Findings under a given ScanRun.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.FindingTypeStats}
  */
-public final class FindingTypeStats extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FindingTypeStats extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.FindingTypeStats)
     FindingTypeStatsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FindingTypeStats.newBuilder() to construct.
   private FindingTypeStats(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FindingTypeStats() {
     findingType_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FindingTypeStats();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private FindingTypeStats(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,24 +71,25 @@ private FindingTypeStats(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            findingType_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            findingCount_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              findingType_ = s;
+              break;
+            }
+          case 16:
+            {
+              findingCount_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -79,34 +97,39 @@ private FindingTypeStats(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto
+        .internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto
+        .internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.class,
+            com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder.class);
   }
 
   public static final int FINDING_TYPE_FIELD_NUMBER = 1;
   private volatile java.lang.Object findingType_;
   /**
+   *
+   *
    * 
    * The finding type associated with the stats.
    * 
* * string finding_type = 1; + * * @return The findingType. */ @java.lang.Override @@ -115,29 +138,29 @@ public java.lang.String getFindingType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; } } /** + * + * *
    * The finding type associated with the stats.
    * 
* * string finding_type = 1; + * * @return The bytes for findingType. */ @java.lang.Override - public com.google.protobuf.ByteString - getFindingTypeBytes() { + public com.google.protobuf.ByteString getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); findingType_ = b; return b; } else { @@ -148,11 +171,14 @@ public java.lang.String getFindingType() { public static final int FINDING_COUNT_FIELD_NUMBER = 2; private int findingCount_; /** + * + * *
    * The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; + * * @return The findingCount. */ @java.lang.Override @@ -161,6 +187,7 @@ public int getFindingCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +199,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(findingType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, findingType_); } @@ -193,8 +219,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, findingType_); } if (findingCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, findingCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, findingCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -204,17 +229,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.FindingTypeStats)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats other = (com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) obj; + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats other = + (com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) obj; - if (!getFindingType() - .equals(other.getFindingType())) return false; - if (getFindingCount() - != other.getFindingCount()) return false; + if (!getFindingType().equals(other.getFindingType())) return false; + if (getFindingCount() != other.getFindingCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -236,96 +260,104 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.FindingTypeStats prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A FindingTypeStats resource represents stats regarding a specific FindingType
    * of Findings under a given ScanRun.
@@ -333,21 +365,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.FindingTypeStats}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.FindingTypeStats)
       com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.class, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.class,
+              com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.newBuilder()
@@ -355,16 +389,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -376,9 +409,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor;
     }
 
     @java.lang.Override
@@ -397,7 +430,8 @@ public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.FindingTypeStats result = new com.google.cloud.websecurityscanner.v1beta.FindingTypeStats(this);
+      com.google.cloud.websecurityscanner.v1beta.FindingTypeStats result =
+          new com.google.cloud.websecurityscanner.v1beta.FindingTypeStats(this);
       result.findingType_ = findingType_;
       result.findingCount_ = findingCount_;
       onBuilt();
@@ -408,38 +442,39 @@ public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats buildPartial(
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.FindingTypeStats)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -447,7 +482,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.FindingTypeStats other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance()) return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance())
+        return this;
       if (!other.getFindingType().isEmpty()) {
         findingType_ = other.findingType_;
         onChanged();
@@ -474,7 +510,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1beta.FindingTypeStats) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -486,18 +523,20 @@ public Builder mergeFrom(
 
     private java.lang.Object findingType_ = "";
     /**
+     *
+     *
      * 
      * The finding type associated with the stats.
      * 
* * string finding_type = 1; + * * @return The findingType. */ public java.lang.String getFindingType() { java.lang.Object ref = findingType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); findingType_ = s; return s; @@ -506,20 +545,21 @@ public java.lang.String getFindingType() { } } /** + * + * *
      * The finding type associated with the stats.
      * 
* * string finding_type = 1; + * * @return The bytes for findingType. */ - public com.google.protobuf.ByteString - getFindingTypeBytes() { + public com.google.protobuf.ByteString getFindingTypeBytes() { java.lang.Object ref = findingType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); findingType_ = b; return b; } else { @@ -527,66 +567,76 @@ public java.lang.String getFindingType() { } } /** + * + * *
      * The finding type associated with the stats.
      * 
* * string finding_type = 1; + * * @param value The findingType to set. * @return This builder for chaining. */ - public Builder setFindingType( - java.lang.String value) { + public Builder setFindingType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + findingType_ = value; onChanged(); return this; } /** + * + * *
      * The finding type associated with the stats.
      * 
* * string finding_type = 1; + * * @return This builder for chaining. */ public Builder clearFindingType() { - + findingType_ = getDefaultInstance().getFindingType(); onChanged(); return this; } /** + * + * *
      * The finding type associated with the stats.
      * 
* * string finding_type = 1; + * * @param value The bytes for findingType to set. * @return This builder for chaining. */ - public Builder setFindingTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + findingType_ = value; onChanged(); return this; } - private int findingCount_ ; + private int findingCount_; /** + * + * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; + * * @return The findingCount. */ @java.lang.Override @@ -594,37 +644,43 @@ public int getFindingCount() { return findingCount_; } /** + * + * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; + * * @param value The findingCount to set. * @return This builder for chaining. */ public Builder setFindingCount(int value) { - + findingCount_ = value; onChanged(); return this; } /** + * + * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; + * * @return This builder for chaining. */ public Builder clearFindingCount() { - + findingCount_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -634,12 +690,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.FindingTypeStats) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.FindingTypeStats) private static final com.google.cloud.websecurityscanner.v1beta.FindingTypeStats DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.FindingTypeStats(); } @@ -648,16 +704,16 @@ public static com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FindingTypeStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FindingTypeStats(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindingTypeStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FindingTypeStats(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -672,6 +728,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java similarity index 54% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java index b78eb348..1021b9f0 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java @@ -1,38 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_type_stats.proto package com.google.cloud.websecurityscanner.v1beta; -public interface FindingTypeStatsOrBuilder extends +public interface FindingTypeStatsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.FindingTypeStats) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The finding type associated with the stats.
    * 
* * string finding_type = 1; + * * @return The findingType. */ java.lang.String getFindingType(); /** + * + * *
    * The finding type associated with the stats.
    * 
* * string finding_type = 1; + * * @return The bytes for findingType. */ - com.google.protobuf.ByteString - getFindingTypeBytes(); + com.google.protobuf.ByteString getFindingTypeBytes(); /** + * + * *
    * The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; + * * @return The findingCount. */ int getFindingCount(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java new file mode 100644 index 00000000..5b01de6c --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java @@ -0,0 +1,70 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/finding_type_stats.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class FindingTypeStatsProto { + private FindingTypeStatsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n?google/cloud/websecurityscanner/v1beta" + + "/finding_type_stats.proto\022&google.cloud." + + "websecurityscanner.v1beta\"?\n\020FindingType" + + "Stats\022\024\n\014finding_type\030\001 \001(\t\022\025\n\rfinding_c" + + "ount\030\002 \001(\005B\235\002\n*com.google.cloud.websecur" + + "ityscanner.v1betaB\025FindingTypeStatsProto" + + "P\001ZXgoogle.golang.org/genproto/googleapi" + + "s/cloud/websecurityscanner/v1beta;websec" + + "urityscanner\252\002&Google.Cloud.WebSecurityS" + + "canner.V1Beta\312\002&Google\\Cloud\\WebSecurity" + + "Scanner\\V1beta\352\002)Google::Cloud::WebSecur" + + "ityScanner::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_FindingTypeStats_descriptor, + new java.lang.String[] { + "FindingType", "FindingCount", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java similarity index 72% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java index d614a420..5b578613 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * ! Information about a vulnerability with an HTML.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Form} */ -public final class Form extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Form extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.Form) FormOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Form.newBuilder() to construct. private Form(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Form() { actionUri_ = ""; fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,16 +44,15 @@ private Form() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Form(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Form( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private Form( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - actionUri_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + actionUri_ = s; + break; } - fields_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fields_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + fields_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private Form( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { fields_ = fields_.getUnmodifiableView(); @@ -94,27 +112,33 @@ private Form( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.Form.class, com.google.cloud.websecurityscanner.v1beta.Form.Builder.class); + com.google.cloud.websecurityscanner.v1beta.Form.class, + com.google.cloud.websecurityscanner.v1beta.Form.Builder.class); } public static final int ACTION_URI_FIELD_NUMBER = 1; private volatile java.lang.Object actionUri_; /** + * + * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; + * * @return The actionUri. */ @java.lang.Override @@ -123,29 +147,29 @@ public java.lang.String getActionUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionUri_ = s; return s; } } /** + * + * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; + * * @return The bytes for actionUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getActionUriBytes() { + public com.google.protobuf.ByteString getActionUriBytes() { java.lang.Object ref = actionUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); actionUri_ = b; return b; } else { @@ -156,34 +180,42 @@ public java.lang.String getActionUri() { public static final int FIELDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList fields_; /** + * + * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; + * * @return A list containing the fields. */ - public com.google.protobuf.ProtocolStringList - getFieldsList() { + public com.google.protobuf.ProtocolStringList getFieldsList() { return fields_; } /** + * + * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; + * * @return The count of fields. */ public int getFieldsCount() { return fields_.size(); } /** + * + * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; + * * @param index The index of the element to return. * @return The fields at the given index. */ @@ -191,20 +223,23 @@ public java.lang.String getFields(int index) { return fields_.get(index); } /** + * + * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; + * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - public com.google.protobuf.ByteString - getFieldsBytes(int index) { + public com.google.protobuf.ByteString getFieldsBytes(int index) { return fields_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,8 +251,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actionUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, actionUri_); } @@ -252,17 +286,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.Form)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.Form other = (com.google.cloud.websecurityscanner.v1beta.Form) obj; + com.google.cloud.websecurityscanner.v1beta.Form other = + (com.google.cloud.websecurityscanner.v1beta.Form) obj; - if (!getActionUri() - .equals(other.getActionUri())) return false; - if (!getFieldsList() - .equals(other.getFieldsList())) return false; + if (!getActionUri().equals(other.getActionUri())) return false; + if (!getFieldsList().equals(other.getFieldsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -285,118 +318,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Form parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.Form parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.Form parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.Form parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.Form prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ! Information about a vulnerability with an HTML.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Form} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.Form) com.google.cloud.websecurityscanner.v1beta.FormOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_Form_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.Form.class, com.google.cloud.websecurityscanner.v1beta.Form.Builder.class); + com.google.cloud.websecurityscanner.v1beta.Form.class, + com.google.cloud.websecurityscanner.v1beta.Form.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.Form.newBuilder() @@ -404,16 +446,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +466,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_Form_descriptor; } @java.lang.Override @@ -446,7 +487,8 @@ public com.google.cloud.websecurityscanner.v1beta.Form build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.Form buildPartial() { - com.google.cloud.websecurityscanner.v1beta.Form result = new com.google.cloud.websecurityscanner.v1beta.Form(this); + com.google.cloud.websecurityscanner.v1beta.Form result = + new com.google.cloud.websecurityscanner.v1beta.Form(this); int from_bitField0_ = bitField0_; result.actionUri_ = actionUri_; if (((bitField0_ & 0x00000001) != 0)) { @@ -462,38 +504,39 @@ public com.google.cloud.websecurityscanner.v1beta.Form buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.Form) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Form)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Form) other); } else { super.mergeFrom(other); return this; @@ -501,7 +544,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.Form other) { - if (other == com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance()) + return this; if (!other.getActionUri().isEmpty()) { actionUri_ = other.actionUri_; onChanged(); @@ -544,22 +588,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object actionUri_ = ""; /** + * + * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; + * * @return The actionUri. */ public java.lang.String getActionUri() { java.lang.Object ref = actionUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actionUri_ = s; return s; @@ -568,20 +615,21 @@ public java.lang.String getActionUri() { } } /** + * + * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; + * * @return The bytes for actionUri. */ - public com.google.protobuf.ByteString - getActionUriBytes() { + public com.google.protobuf.ByteString getActionUriBytes() { java.lang.Object ref = actionUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); actionUri_ = b; return b; } else { @@ -589,95 +637,112 @@ public java.lang.String getActionUri() { } } /** + * + * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; + * * @param value The actionUri to set. * @return This builder for chaining. */ - public Builder setActionUri( - java.lang.String value) { + public Builder setActionUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + actionUri_ = value; onChanged(); return this; } /** + * + * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; + * * @return This builder for chaining. */ public Builder clearActionUri() { - + actionUri_ = getDefaultInstance().getActionUri(); onChanged(); return this; } /** + * + * *
      * ! The URI where to send the form when it's submitted.
      * 
* * string action_uri = 1; + * * @param value The bytes for actionUri to set. * @return This builder for chaining. */ - public Builder setActionUriBytes( - com.google.protobuf.ByteString value) { + public Builder setActionUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + actionUri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList fields_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList fields_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fields_ = new com.google.protobuf.LazyStringArrayList(fields_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @return A list containing the fields. */ - public com.google.protobuf.ProtocolStringList - getFieldsList() { + public com.google.protobuf.ProtocolStringList getFieldsList() { return fields_.getUnmodifiableView(); } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @return The count of fields. */ public int getFieldsCount() { return fields_.size(); } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @param index The index of the element to return. * @return The fields at the given index. */ @@ -685,80 +750,90 @@ public java.lang.String getFields(int index) { return fields_.get(index); } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - public com.google.protobuf.ByteString - getFieldsBytes(int index) { + public com.google.protobuf.ByteString getFieldsBytes(int index) { return fields_.getByteString(index); } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @param index The index to set the value at. * @param value The fields to set. * @return This builder for chaining. */ - public Builder setFields( - int index, java.lang.String value) { + public Builder setFields(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); + throw new NullPointerException(); + } + ensureFieldsIsMutable(); fields_.set(index, value); onChanged(); return this; } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @param value The fields to add. * @return This builder for chaining. */ - public Builder addFields( - java.lang.String value) { + public Builder addFields(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureFieldsIsMutable(); + throw new NullPointerException(); + } + ensureFieldsIsMutable(); fields_.add(value); onChanged(); return this; } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @param values The fields to add. * @return This builder for chaining. */ - public Builder addAllFields( - java.lang.Iterable values) { + public Builder addAllFields(java.lang.Iterable values) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); onChanged(); return this; } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @return This builder for chaining. */ public Builder clearFields() { @@ -768,28 +843,30 @@ public Builder clearFields() { return this; } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @param value The bytes of the fields to add. * @return This builder for chaining. */ - public Builder addFieldsBytes( - com.google.protobuf.ByteString value) { + public Builder addFieldsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureFieldsIsMutable(); fields_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -799,12 +876,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.Form) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.Form) private static final com.google.cloud.websecurityscanner.v1beta.Form DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.Form(); } @@ -813,16 +890,16 @@ public static com.google.cloud.websecurityscanner.v1beta.Form getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Form parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Form(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Form parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Form(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -837,6 +914,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.Form getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java similarity index 64% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java index 991f84ae..033698c6 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java @@ -1,70 +1,101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface FormOrBuilder extends +public interface FormOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.Form) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; + * * @return The actionUri. */ java.lang.String getActionUri(); /** + * + * *
    * ! The URI where to send the form when it's submitted.
    * 
* * string action_uri = 1; + * * @return The bytes for actionUri. */ - com.google.protobuf.ByteString - getActionUriBytes(); + com.google.protobuf.ByteString getActionUriBytes(); /** + * + * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; + * * @return A list containing the fields. */ - java.util.List - getFieldsList(); + java.util.List getFieldsList(); /** + * + * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; + * * @return The count of fields. */ int getFieldsCount(); /** + * + * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; + * * @param index The index of the element to return. * @return The fields at the given index. */ java.lang.String getFields(int index); /** + * + * *
    * ! The names of form fields related to the vulnerability.
    * 
* * repeated string fields = 2; + * * @param index The index of the value to return. * @return The bytes of the fields at the given index. */ - com.google.protobuf.ByteString - getFieldsBytes(int index); + com.google.protobuf.ByteString getFieldsBytes(int index); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java similarity index 66% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java index 19efd738..9c58abb6 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Request for the `GetFinding` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetFindingRequest} */ -public final class GetFindingRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetFindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.GetFindingRequest) GetFindingRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetFindingRequest.newBuilder() to construct. private GetFindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetFindingRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetFindingRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetFindingRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetFindingRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private GetFindingRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.GetFindingRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest other = (com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) obj; + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest other = + (com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `GetFinding` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetFindingRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.GetFindingRequest) com.google.cloud.websecurityscanner.v1beta.GetFindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.class, + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,13 +381,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.getDefaultInstance(); } @@ -366,7 +403,8 @@ public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest result = new com.google.cloud.websecurityscanner.v1beta.GetFindingRequest(this); + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest result = + new com.google.cloud.websecurityscanner.v1beta.GetFindingRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +414,39 @@ public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetFindingRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +454,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest other) { - if (other == com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1beta.GetFindingRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +480,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.GetFindingRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +493,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +519,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +545,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +628,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.GetFindingRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.GetFindingRequest) - private static final com.google.cloud.websecurityscanner.v1beta.GetFindingRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.GetFindingRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.GetFindingRequest(); } @@ -580,16 +643,16 @@ public static com.google.cloud.websecurityscanner.v1beta.GetFindingRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFindingRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFindingRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +667,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java new file mode 100644 index 00000000..a6d708c8 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface GetFindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetFindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Finding to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the Finding to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java similarity index 64% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java index ad9f1629..2801eb0b 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Request for the `GetScanConfig` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetScanConfigRequest} */ -public final class GetScanConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) GetScanConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetScanConfigRequest.newBuilder() to construct. private GetScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetScanConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetScanConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ScanConfig to be returned. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest other = (com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest other = + (com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `GetScanConfig` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetScanConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest result = new com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +412,50 @@ public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest other) { - if (other == com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +479,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +493,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +518,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +543,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be returned. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +623,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +660,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java new file mode 100644 index 00000000..44926ab6 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface GetScanConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetScanConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ScanConfig to be returned. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the ScanConfig to be returned. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java similarity index 66% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java index f7ed60f3..b85b8769 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Request for the `GetScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetScanRunRequest} */ -public final class GetScanRunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetScanRunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) GetScanRunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetScanRunRequest.newBuilder() to construct. private GetScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetScanRunRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private GetScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest other = (com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest other = + (com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `GetScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.GetScanRunRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) com.google.cloud.websecurityscanner.v1beta.GetScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.class, + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,13 +381,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.getDefaultInstance(); } @@ -366,7 +403,8 @@ public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest result = new com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest(this); + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest result = + new com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +414,39 @@ public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +454,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest other) { - if (other == com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +480,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +493,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +519,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +545,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +628,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest(); } @@ -580,16 +643,16 @@ public static com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +667,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java new file mode 100644 index 00000000..cc76d3b0 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface GetScanRunRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.GetScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ScanRun to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the ScanRun to be returned. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java similarity index 68% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java index 32c1841c..916c047d 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Request for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest} */ -public final class ListCrawledUrlsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCrawledUrlsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) ListCrawledUrlsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCrawledUrlsRequest.newBuilder() to construct. private ListCrawledUrlsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCrawledUrlsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListCrawledUrlsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCrawledUrlsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCrawledUrlsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListCrawledUrlsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +104,43 @@ private ListCrawledUrlsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,31 +149,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -158,6 +186,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -165,6 +195,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -173,14 +204,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -188,16 +220,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -208,6 +239,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -215,6 +248,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -223,6 +257,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,8 +269,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -261,8 +295,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -272,19 +305,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest other = (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) obj; + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest other = + (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -308,134 +339,145 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.class, + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -449,13 +491,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.getDefaultInstance(); } @@ -470,7 +513,8 @@ public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest build() @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest(this); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest result = + new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -482,46 +526,50 @@ public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -552,7 +600,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -564,20 +614,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -586,22 +640,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -609,60 +666,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -670,6 +740,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -677,13 +749,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -692,6 +764,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -699,15 +773,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -715,6 +788,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -722,20 +797,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -743,15 +820,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -759,23 +839,25 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -783,6 +865,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -790,6 +873,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -797,16 +882,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of CrawledUrls to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -814,17 +902,18 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -834,30 +923,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) - private static final com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -869,9 +960,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java index 765f81fc..97458224 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListCrawledUrlsRequestOrBuilder extends +public interface ListCrawledUrlsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -39,10 +66,13 @@ public interface ListCrawledUrlsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -50,12 +80,14 @@ public interface ListCrawledUrlsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -63,6 +95,7 @@ public interface ListCrawledUrlsRequestOrBuilder extends
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java similarity index 72% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java index 2866ede9..6f82cec4 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Response for the `ListCrawledUrls` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse} */ -public final class ListCrawledUrlsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCrawledUrlsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) ListCrawledUrlsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCrawledUrlsResponse.newBuilder() to construct. private ListCrawledUrlsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCrawledUrlsResponse() { crawledUrls_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListCrawledUrlsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCrawledUrlsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCrawledUrlsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,34 @@ private ListCrawledUrlsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + crawledUrls_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1beta.CrawledUrl>(); + mutable_bitField0_ |= 0x00000001; + } + crawledUrls_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.CrawledUrl.parser(), + extensionRegistry)); + break; } - crawledUrls_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1beta.CrawledUrl.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +107,7 @@ private ListCrawledUrlsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); @@ -94,22 +116,27 @@ private ListCrawledUrlsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.Builder.class); } public static final int CRAWLED_URLS_FIELD_NUMBER = 1; private java.util.List crawledUrls_; /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -117,10 +144,13 @@ private ListCrawledUrlsResponse( * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ @java.lang.Override - public java.util.List getCrawledUrlsList() { + public java.util.List + getCrawledUrlsList() { return crawledUrls_; } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -128,11 +158,13 @@ public java.util.List get * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCrawledUrlsOrBuilderList() { return crawledUrls_; } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -144,6 +176,8 @@ public int getCrawledUrlsCount() { return crawledUrls_.size(); } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -155,6 +189,8 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl getCrawledUrls(int return crawledUrls_.get(index); } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -170,12 +206,15 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawled public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +223,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +255,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < crawledUrls_.size(); i++) { output.writeMessage(1, crawledUrls_.get(i)); } @@ -245,8 +284,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < crawledUrls_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, crawledUrls_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, crawledUrls_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +297,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse other = (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) obj; + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse other = + (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) obj; - if (!getCrawledUrlsList() - .equals(other.getCrawledUrlsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getCrawledUrlsList().equals(other.getCrawledUrlsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,135 +330,147 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListCrawledUrls` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.class, + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCrawledUrlsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,14 +486,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse + .getDefaultInstance(); } @java.lang.Override @@ -458,7 +509,8 @@ public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse build( @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse result = new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse(this); + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse result = + new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse(this); int from_bitField0_ = bitField0_; if (crawledUrlsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,46 +530,51 @@ public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse + .getDefaultInstance()) return this; if (crawledUrlsBuilder_ == null) { if (!other.crawledUrls_.isEmpty()) { if (crawledUrls_.isEmpty()) { @@ -536,9 +593,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListCrawledU crawledUrlsBuilder_ = null; crawledUrls_ = other.crawledUrls_; bitField0_ = (bitField0_ & ~0x00000001); - crawledUrlsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCrawledUrlsFieldBuilder() : null; + crawledUrlsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCrawledUrlsFieldBuilder() + : null; } else { crawledUrlsBuilder_.addAllMessages(other.crawledUrls_); } @@ -567,7 +625,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,28 +636,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List crawledUrls_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCrawledUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - crawledUrls_ = new java.util.ArrayList(crawledUrls_); + crawledUrls_ = + new java.util.ArrayList( + crawledUrls_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.CrawledUrl, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder> crawledUrlsBuilder_; + com.google.cloud.websecurityscanner.v1beta.CrawledUrl, + com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, + com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder> + crawledUrlsBuilder_; /** + * + * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - public java.util.List getCrawledUrlsList() { + public java.util.List + getCrawledUrlsList() { if (crawledUrlsBuilder_ == null) { return java.util.Collections.unmodifiableList(crawledUrls_); } else { @@ -605,6 +675,8 @@ public java.util.List get } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -619,6 +691,8 @@ public int getCrawledUrlsCount() { } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -633,6 +707,8 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl getCrawledUrls(int } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -654,6 +730,8 @@ public Builder setCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -672,6 +750,8 @@ public Builder setCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -692,6 +772,8 @@ public Builder addCrawledUrls(com.google.cloud.websecurityscanner.v1beta.Crawled return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -713,6 +795,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -731,6 +815,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -749,6 +835,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -756,11 +844,11 @@ public Builder addCrawledUrls( * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ public Builder addAllCrawledUrls( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (crawledUrlsBuilder_ == null) { ensureCrawledUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, crawledUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crawledUrls_); onChanged(); } else { crawledUrlsBuilder_.addAllMessages(values); @@ -768,6 +856,8 @@ public Builder addAllCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -785,6 +875,8 @@ public Builder clearCrawledUrls() { return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -802,6 +894,8 @@ public Builder removeCrawledUrls(int index) { return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -813,6 +907,8 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder getCrawledU return getCrawledUrlsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -822,19 +918,22 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder getCrawledU public com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawledUrlsOrBuilder( int index) { if (crawledUrlsBuilder_ == null) { - return crawledUrls_.get(index); } else { + return crawledUrls_.get(index); + } else { return crawledUrlsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsOrBuilderList() { + public java.util.List + getCrawledUrlsOrBuilderList() { if (crawledUrlsBuilder_ != null) { return crawledUrlsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +941,8 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawled } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -849,10 +950,12 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawled * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder addCrawledUrlsBuilder() { - return getCrawledUrlsFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder() + .addBuilder(com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance()); } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -861,30 +964,36 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder addCrawledU */ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder addCrawledUrlsBuilder( int index) { - return getCrawledUrlsFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance()); + return getCrawledUrlsFieldBuilder() + .addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.getDefaultInstance()); } /** + * + * *
      * The list of CrawledUrls returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - public java.util.List - getCrawledUrlsBuilderList() { + public java.util.List + getCrawledUrlsBuilderList() { return getCrawledUrlsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.CrawledUrl, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder> + com.google.cloud.websecurityscanner.v1beta.CrawledUrl, + com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, + com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder> getCrawledUrlsFieldBuilder() { if (crawledUrlsBuilder_ == null) { - crawledUrlsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.CrawledUrl, com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder>( - crawledUrls_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + crawledUrlsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.CrawledUrl, + com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder, + com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder>( + crawledUrls_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); crawledUrls_ = null; } return crawledUrlsBuilder_; @@ -892,19 +1001,21 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder addCrawledU private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1024,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1047,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1121,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) - private static final com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse(); } - public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCrawledUrlsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCrawledUrlsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCrawledUrlsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCrawledUrlsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1158,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java index 0f79126a..4ff47dbe 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListCrawledUrlsResponseOrBuilder extends +public interface ListCrawledUrlsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - java.util.List - getCrawledUrlsList(); + java.util.List getCrawledUrlsList(); /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -25,6 +44,8 @@ public interface ListCrawledUrlsResponseOrBuilder extends */ com.google.cloud.websecurityscanner.v1beta.CrawledUrl getCrawledUrls(int index); /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -33,43 +54,51 @@ public interface ListCrawledUrlsResponseOrBuilder extends */ int getCrawledUrlsCount(); /** + * + * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - java.util.List + java.util.List getCrawledUrlsOrBuilderList(); /** + * + * *
    * The list of CrawledUrls returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.CrawledUrl crawled_urls = 1; */ - com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawledUrlsOrBuilder( - int index); + com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawledUrlsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java similarity index 63% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java index e2b40a30..bdac7a6d 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Request for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest} */ -public final class ListFindingTypeStatsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingTypeStatsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) ListFindingTypeStatsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsRequest.newBuilder() to construct. private ListFindingTypeStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingTypeStatsRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingTypeStatsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingTypeStatsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private ListFindingTypeStatsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private ListFindingTypeStatsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest other = (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) obj; + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest other = + (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,134 +235,145 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.class, + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,19 +383,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest build() { - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result = buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -366,7 +407,8 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest bu @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest(this); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result = + new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest(this); result.parent_ = parent_; onBuilt(); return result; @@ -376,46 +418,51 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -439,7 +486,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +500,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -473,22 +526,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -496,67 +552,80 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,30 +635,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) - private static final com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -601,9 +672,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java new file mode 100644 index 00000000..5057639f --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface ListFindingTypeStatsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource name, which should be a scan run resource name in the
+   * format
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource name, which should be a scan run resource name in the
+   * format
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java similarity index 62% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java index 37f7cd12..230bd82f 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Response for the `ListFindingTypeStats` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse} */ -public final class ListFindingTypeStatsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingTypeStatsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) ListFindingTypeStatsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingTypeStatsResponse.newBuilder() to construct. private ListFindingTypeStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingTypeStatsResponse() { findingTypeStats_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingTypeStatsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingTypeStatsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private ListFindingTypeStatsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findingTypeStats_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats>(); + mutable_bitField0_ |= 0x00000001; + } + findingTypeStats_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.parser(), + extensionRegistry)); + break; } - findingTypeStats_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +99,7 @@ private ListFindingTypeStatsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); @@ -87,80 +108,103 @@ private ListFindingTypeStatsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.Builder.class); } public static final int FINDING_TYPE_STATS_FIELD_NUMBER = 1; - private java.util.List findingTypeStats_; + private java.util.List + findingTypeStats_; /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ @java.lang.Override - public java.util.List getFindingTypeStatsList() { + public java.util.List + getFindingTypeStatsList() { return findingTypeStats_; } /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> getFindingTypeStatsOrBuilderList() { return findingTypeStats_; } /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ @java.lang.Override public int getFindingTypeStatsCount() { return findingTypeStats_.size(); } /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTypeStats(int index) { + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTypeStats( + int index) { return findingTypeStats_.get(index); } /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder + getFindingTypeStatsOrBuilder(int index) { return findingTypeStats_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +216,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < findingTypeStats_.size(); i++) { output.writeMessage(1, findingTypeStats_.get(i)); } @@ -187,8 +230,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findingTypeStats_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, findingTypeStats_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findingTypeStats_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +240,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse other = (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) obj; + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse other = + (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) obj; - if (!getFindingTypeStatsList() - .equals(other.getFindingTypeStatsList())) return false; + if (!getFindingTypeStatsList().equals(other.getFindingTypeStatsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,135 +270,148 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListFindingTypeStats` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.class, + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.Builder + .class); } - // Construct using com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFindingTypeStatsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,19 +425,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse build() { - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result = buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -391,7 +449,8 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse b @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result = new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse(this); + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result = + new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse(this); int from_bitField0_ = bitField0_; if (findingTypeStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,46 +469,52 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse b public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse)other); + if (other + instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) { + return mergeFrom( + (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse + .getDefaultInstance()) return this; if (findingTypeStatsBuilder_ == null) { if (!other.findingTypeStats_.isEmpty()) { if (findingTypeStats_.isEmpty()) { @@ -468,9 +533,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListFindingT findingTypeStatsBuilder_ = null; findingTypeStats_ = other.findingTypeStats_; bitField0_ = (bitField0_ & ~0x00000001); - findingTypeStatsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFindingTypeStatsFieldBuilder() : null; + findingTypeStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFindingTypeStatsFieldBuilder() + : null; } else { findingTypeStatsBuilder_.addAllMessages(other.findingTypeStats_); } @@ -495,7 +561,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,28 +572,40 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List findingTypeStats_ = - java.util.Collections.emptyList(); + private java.util.List + findingTypeStats_ = java.util.Collections.emptyList(); + private void ensureFindingTypeStatsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findingTypeStats_ = new java.util.ArrayList(findingTypeStats_); + findingTypeStats_ = + new java.util.ArrayList( + findingTypeStats_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> findingTypeStatsBuilder_; + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, + com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> + findingTypeStatsBuilder_; /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ - public java.util.List getFindingTypeStatsList() { + public java.util.List + getFindingTypeStatsList() { if (findingTypeStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(findingTypeStats_); } else { @@ -533,11 +613,15 @@ public java.util.List * The list of FindingTypeStats returned. *
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ public int getFindingTypeStatsCount() { if (findingTypeStatsBuilder_ == null) { @@ -547,13 +631,18 @@ public int getFindingTypeStatsCount() { } } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTypeStats(int index) { + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTypeStats( + int index) { if (findingTypeStatsBuilder_ == null) { return findingTypeStats_.get(index); } else { @@ -561,11 +650,15 @@ public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTyp } } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ public Builder setFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats value) { @@ -582,14 +675,19 @@ public Builder setFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ public Builder setFindingTypeStats( - int index, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.set(index, builderForValue.build()); @@ -600,13 +698,18 @@ public Builder setFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ - public Builder addFindingTypeStats(com.google.cloud.websecurityscanner.v1beta.FindingTypeStats value) { + public Builder addFindingTypeStats( + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats value) { if (findingTypeStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -620,11 +723,15 @@ public Builder addFindingTypeStats(com.google.cloud.websecurityscanner.v1beta.Fi return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ public Builder addFindingTypeStats( int index, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats value) { @@ -641,11 +748,15 @@ public Builder addFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ public Builder addFindingTypeStats( com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder builderForValue) { @@ -659,14 +770,19 @@ public Builder addFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ public Builder addFindingTypeStats( - int index, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder builderForValue) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); findingTypeStats_.add(index, builderForValue.build()); @@ -677,18 +793,22 @@ public Builder addFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ public Builder addAllFindingTypeStats( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (findingTypeStatsBuilder_ == null) { ensureFindingTypeStatsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, findingTypeStats_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findingTypeStats_); onChanged(); } else { findingTypeStatsBuilder_.addAllMessages(values); @@ -696,11 +816,15 @@ public Builder addAllFindingTypeStats( return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ public Builder clearFindingTypeStats() { if (findingTypeStatsBuilder_ == null) { @@ -713,11 +837,15 @@ public Builder clearFindingTypeStats() { return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ public Builder removeFindingTypeStats(int index) { if (findingTypeStatsBuilder_ == null) { @@ -730,39 +858,53 @@ public Builder removeFindingTypeStats(int index) { return this; } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder getFindingTypeStatsBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder + getFindingTypeStatsBuilder(int index) { return getFindingTypeStatsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder + getFindingTypeStatsOrBuilder(int index) { if (findingTypeStatsBuilder_ == null) { - return findingTypeStats_.get(index); } else { + return findingTypeStats_.get(index); + } else { return findingTypeStatsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ - public java.util.List - getFindingTypeStatsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> + getFindingTypeStatsOrBuilderList() { if (findingTypeStatsBuilder_ != null) { return findingTypeStatsBuilder_.getMessageOrBuilderList(); } else { @@ -770,45 +912,67 @@ public com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder getF } } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder addFindingTypeStatsBuilder() { - return getFindingTypeStatsFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder + addFindingTypeStatsBuilder() { + return getFindingTypeStatsFieldBuilder() + .addBuilder( + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance()); } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ - public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder addFindingTypeStatsBuilder( - int index) { - return getFindingTypeStatsFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder + addFindingTypeStatsBuilder(int index) { + return getFindingTypeStatsFieldBuilder() + .addBuilder( + index, + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.getDefaultInstance()); } /** + * + * *
      * The list of FindingTypeStats returned.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ - public java.util.List - getFindingTypeStatsBuilderList() { + public java.util.List + getFindingTypeStatsBuilderList() { return getFindingTypeStatsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, + com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder> getFindingTypeStatsFieldBuilder() { if (findingTypeStatsBuilder_ == null) { - findingTypeStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder>( + findingTypeStatsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats, + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder, + com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder>( findingTypeStats_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -817,9 +981,9 @@ public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.Builder addFi } return findingTypeStatsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,30 +993,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) - private static final com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse(); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingTypeStatsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingTypeStatsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingTypeStatsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingTypeStatsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -864,9 +1031,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java similarity index 60% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java index c11e2faf..dc075064 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java @@ -1,52 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListFindingTypeStatsResponseOrBuilder extends +public interface ListFindingTypeStatsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ - java.util.List + java.util.List getFindingTypeStatsList(); /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getFindingTypeStats(int index); /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ int getFindingTypeStatsCount(); /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ - java.util.List + java.util.List getFindingTypeStatsOrBuilderList(); /** + * + * *
    * The list of FindingTypeStats returned.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * repeated .google.cloud.websecurityscanner.v1beta.FindingTypeStats finding_type_stats = 1; + * */ com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsOrBuilder getFindingTypeStatsOrBuilder( int index); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java similarity index 71% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java index 8f615b49..87539f9b 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Request for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingsRequest} */ -public final class ListFindingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListFindingsRequest) ListFindingsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingsRequest.newBuilder() to construct. private ListFindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingsRequest() { parent_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListFindingsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 32: { + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 32: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,36 +112,43 @@ private ListFindingsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -130,31 +157,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -165,6 +194,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -173,6 +204,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -181,14 +213,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -197,16 +230,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -217,6 +249,8 @@ public java.lang.String getFilter() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -224,6 +258,7 @@ public java.lang.String getFilter() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -232,14 +267,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -247,16 +283,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -267,6 +302,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** + * + * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -274,6 +311,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -282,6 +320,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,8 +332,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -326,8 +364,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -337,21 +374,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest other = (com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest other = + (com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -377,117 +411,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListFindingsRequest) com.google.cloud.websecurityscanner.v1beta.ListFindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.class, + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.newBuilder() @@ -495,16 +539,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,13 +563,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.getDefaultInstance(); } @@ -541,7 +585,8 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest(this); + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest result = + new com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageToken_ = pageToken_; @@ -554,38 +599,39 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) other); } else { super.mergeFrom(other); return this; @@ -593,7 +639,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -628,7 +676,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -640,20 +690,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -662,22 +716,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -685,60 +742,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -746,6 +816,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -754,13 +826,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -769,6 +841,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -777,15 +851,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -793,6 +866,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -801,20 +876,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -823,15 +900,18 @@ public Builder setFilter(
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -840,16 +920,16 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -857,6 +937,8 @@ public Builder setFilterBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -864,13 +946,13 @@ public Builder setFilterBytes(
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -879,6 +961,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -886,15 +970,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -902,6 +985,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -909,20 +994,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -930,15 +1017,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -946,23 +1036,25 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -970,6 +1062,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -977,6 +1070,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -984,16 +1079,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 4; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of Findings to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -1001,17 +1099,18 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1021,30 +1120,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListFindingsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListFindingsRequest) - private static final com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1056,9 +1157,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java index 975732f5..c1bec864 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListFindingsRequestOrBuilder extends +public interface ListFindingsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListFindingsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -40,10 +67,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -52,12 +82,14 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -65,10 +97,13 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -76,12 +111,14 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -89,6 +126,7 @@ public interface ListFindingsRequestOrBuilder extends
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java similarity index 73% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java index 69d4457c..f0e98b1d 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Response for the `ListFindings` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingsResponse} */ -public final class ListFindingsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListFindingsResponse) ListFindingsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFindingsResponse.newBuilder() to construct. private ListFindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFindingsResponse() { findings_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFindingsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,33 @@ private ListFindingsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - findings_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + findings_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + findings_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.Finding.parser(), + extensionRegistry)); + break; } - findings_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1beta.Finding.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +106,7 @@ private ListFindingsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -94,22 +115,27 @@ private ListFindingsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.Builder.class); } public static final int FINDINGS_FIELD_NUMBER = 1; private java.util.List findings_; /** + * + * *
    * The list of Findings returned.
    * 
@@ -121,6 +147,8 @@ public java.util.List getFin return findings_; } /** + * + * *
    * The list of Findings returned.
    * 
@@ -128,11 +156,13 @@ public java.util.List getFin * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFindingsOrBuilderList() { return findings_; } /** + * + * *
    * The list of Findings returned.
    * 
@@ -144,6 +174,8 @@ public int getFindingsCount() { return findings_.size(); } /** + * + * *
    * The list of Findings returned.
    * 
@@ -155,6 +187,8 @@ public com.google.cloud.websecurityscanner.v1beta.Finding getFindings(int index) return findings_.get(index); } /** + * + * *
    * The list of Findings returned.
    * 
@@ -170,12 +204,15 @@ public com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOr public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +221,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +253,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +265,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < findings_.size(); i++) { output.writeMessage(1, findings_.get(i)); } @@ -245,8 +282,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < findings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, findings_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, findings_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +295,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse other = (com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) obj; + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse other = + (com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) obj; - if (!getFindingsList() - .equals(other.getFindingsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getFindingsList().equals(other.getFindingsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +328,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListFindings` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListFindingsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListFindingsResponse) com.google.cloud.websecurityscanner.v1beta.ListFindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.class, + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.newBuilder() @@ -411,17 +456,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getFindingsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,13 +482,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.getDefaultInstance(); } @@ -458,7 +504,8 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse result = new com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse(this); + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse result = + new com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse(this); int from_bitField0_ = bitField0_; if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,46 +525,50 @@ public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse.getDefaultInstance()) + return this; if (findingsBuilder_ == null) { if (!other.findings_.isEmpty()) { if (findings_.isEmpty()) { @@ -536,9 +587,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListFindings findingsBuilder_ = null; findings_ = other.findings_; bitField0_ = (bitField0_ & ~0x00000001); - findingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFindingsFieldBuilder() : null; + findingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFindingsFieldBuilder() + : null; } else { findingsBuilder_.addAllMessages(other.findings_); } @@ -567,7 +619,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +630,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List findings_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFindingsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - findings_ = new java.util.ArrayList(findings_); + findings_ = + new java.util.ArrayList(findings_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Finding, com.google.cloud.websecurityscanner.v1beta.Finding.Builder, com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder> findingsBuilder_; + com.google.cloud.websecurityscanner.v1beta.Finding, + com.google.cloud.websecurityscanner.v1beta.Finding.Builder, + com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder> + findingsBuilder_; /** + * + * *
      * The list of Findings returned.
      * 
@@ -605,6 +667,8 @@ public java.util.List getFin } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -619,6 +683,8 @@ public int getFindingsCount() { } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -633,6 +699,8 @@ public com.google.cloud.websecurityscanner.v1beta.Finding getFindings(int index) } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -654,6 +722,8 @@ public Builder setFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -672,6 +742,8 @@ public Builder setFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -692,6 +764,8 @@ public Builder addFindings(com.google.cloud.websecurityscanner.v1beta.Finding va return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -713,6 +787,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -731,6 +807,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -749,6 +827,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -759,8 +839,7 @@ public Builder addAllFindings( java.lang.Iterable values) { if (findingsBuilder_ == null) { ensureFindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, findings_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, findings_); onChanged(); } else { findingsBuilder_.addAllMessages(values); @@ -768,6 +847,8 @@ public Builder addAllFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -785,6 +866,8 @@ public Builder clearFindings() { return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -802,6 +885,8 @@ public Builder removeFindings(int index) { return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -813,6 +898,8 @@ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder getFindingsBui return getFindingsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of Findings returned.
      * 
@@ -822,19 +909,22 @@ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder getFindingsBui public com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOrBuilder( int index) { if (findingsBuilder_ == null) { - return findings_.get(index); } else { + return findings_.get(index); + } else { return findingsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ - public java.util.List - getFindingsOrBuilderList() { + public java.util.List + getFindingsOrBuilderList() { if (findingsBuilder_ != null) { return findingsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +932,8 @@ public com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOr } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -849,10 +941,12 @@ public com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOr * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder addFindingsBuilder() { - return getFindingsFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance()); + return getFindingsFieldBuilder() + .addBuilder(com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance()); } /** + * + * *
      * The list of Findings returned.
      * 
@@ -861,30 +955,36 @@ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder addFindingsBui */ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder addFindingsBuilder( int index) { - return getFindingsFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance()); + return getFindingsFieldBuilder() + .addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.Finding.getDefaultInstance()); } /** + * + * *
      * The list of Findings returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ - public java.util.List - getFindingsBuilderList() { + public java.util.List + getFindingsBuilderList() { return getFindingsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Finding, com.google.cloud.websecurityscanner.v1beta.Finding.Builder, com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder> + com.google.cloud.websecurityscanner.v1beta.Finding, + com.google.cloud.websecurityscanner.v1beta.Finding.Builder, + com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder> getFindingsFieldBuilder() { if (findingsBuilder_ == null) { - findingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.Finding, com.google.cloud.websecurityscanner.v1beta.Finding.Builder, com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder>( - findings_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + findingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.Finding, + com.google.cloud.websecurityscanner.v1beta.Finding.Builder, + com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder>( + findings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); findings_ = null; } return findingsBuilder_; @@ -892,19 +992,21 @@ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder addFindingsBui private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1015,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1038,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1112,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListFindingsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListFindingsResponse) - private static final com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse(); } - public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFindingsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFindingsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1149,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java index 731383be..9f51c883 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListFindingsResponseOrBuilder extends +public interface ListFindingsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListFindingsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ - java.util.List - getFindingsList(); + java.util.List getFindingsList(); /** + * + * *
    * The list of Findings returned.
    * 
@@ -25,6 +44,8 @@ public interface ListFindingsResponseOrBuilder extends */ com.google.cloud.websecurityscanner.v1beta.Finding getFindings(int index); /** + * + * *
    * The list of Findings returned.
    * 
@@ -33,43 +54,51 @@ public interface ListFindingsResponseOrBuilder extends */ int getFindingsCount(); /** + * + * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ - java.util.List + java.util.List getFindingsOrBuilderList(); /** + * + * *
    * The list of Findings returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.Finding findings = 1; */ - com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOrBuilder( - int index); + com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java similarity index 67% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java index d049d2cf..f80cdd78 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Request for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest} */ -public final class ListScanConfigsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListScanConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) ListScanConfigsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListScanConfigsRequest.newBuilder() to construct. private ListScanConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListScanConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListScanConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanConfigsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListScanConfigsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListScanConfigsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListScanConfigsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -122,30 +148,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,6 +184,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -163,6 +193,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -171,14 +202,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -186,16 +218,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -206,6 +237,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -213,6 +246,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -221,6 +255,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -259,8 +293,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -270,19 +303,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest other = (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) obj; + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest other = + (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,134 +337,145 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.class, + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -447,13 +489,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.getDefaultInstance(); } @@ -468,7 +511,8 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest build() @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest(this); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest result = + new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -480,46 +524,50 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -550,7 +598,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -562,19 +612,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -583,21 +637,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -605,57 +662,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a project resource name in the
      * format 'projects/{projectId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -663,6 +733,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -670,13 +742,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -685,6 +757,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -692,15 +766,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -708,6 +781,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -715,20 +790,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -736,15 +813,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -752,23 +832,25 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -776,6 +858,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -783,6 +866,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -790,16 +875,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of ScanConfigs to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -807,17 +895,18 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -827,30 +916,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) - private static final com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -862,9 +953,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java index ba39d379..1b9df87d 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListScanConfigsRequestOrBuilder extends +public interface ListScanConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name, which should be a project resource name in the
    * format 'projects/{projectId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -37,10 +64,13 @@ public interface ListScanConfigsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -48,12 +78,14 @@ public interface ListScanConfigsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -61,6 +93,7 @@ public interface ListScanConfigsRequestOrBuilder extends
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java similarity index 72% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java index 3a57b0b4..1d5891fd 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Response for the `ListScanConfigs` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse} */ -public final class ListScanConfigsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListScanConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) ListScanConfigsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListScanConfigsResponse.newBuilder() to construct. private ListScanConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListScanConfigsResponse() { scanConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListScanConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanConfigsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListScanConfigsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,34 @@ private ListScanConfigsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanConfigs_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1beta.ScanConfig>(); + mutable_bitField0_ |= 0x00000001; + } + scanConfigs_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), + extensionRegistry)); + break; } - scanConfigs_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +107,7 @@ private ListScanConfigsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); @@ -94,22 +116,27 @@ private ListScanConfigsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.Builder.class); } public static final int SCAN_CONFIGS_FIELD_NUMBER = 1; private java.util.List scanConfigs_; /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -117,10 +144,13 @@ private ListScanConfigsResponse( * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ @java.lang.Override - public java.util.List getScanConfigsList() { + public java.util.List + getScanConfigsList() { return scanConfigs_; } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -128,11 +158,13 @@ public java.util.List get * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanConfigsOrBuilderList() { return scanConfigs_; } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -144,6 +176,8 @@ public int getScanConfigsCount() { return scanConfigs_.size(); } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -155,6 +189,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfigs(int return scanConfigs_.get(index); } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -170,12 +206,15 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +223,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +255,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < scanConfigs_.size(); i++) { output.writeMessage(1, scanConfigs_.get(i)); } @@ -245,8 +284,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, scanConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +297,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse other = (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) obj; + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse other = + (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) obj; - if (!getScanConfigsList() - .equals(other.getScanConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getScanConfigsList().equals(other.getScanConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,135 +330,147 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListScanConfigs` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.class, + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getScanConfigsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,14 +486,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse + .getDefaultInstance(); } @java.lang.Override @@ -458,7 +509,8 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse build( @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse result = new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse(this); + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse result = + new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse(this); int from_bitField0_ = bitField0_; if (scanConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,46 +530,51 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse + .getDefaultInstance()) return this; if (scanConfigsBuilder_ == null) { if (!other.scanConfigs_.isEmpty()) { if (scanConfigs_.isEmpty()) { @@ -536,9 +593,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListScanConf scanConfigsBuilder_ = null; scanConfigs_ = other.scanConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - scanConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getScanConfigsFieldBuilder() : null; + scanConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getScanConfigsFieldBuilder() + : null; } else { scanConfigsBuilder_.addAllMessages(other.scanConfigs_); } @@ -567,7 +625,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,28 +636,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List scanConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureScanConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanConfigs_ = new java.util.ArrayList(scanConfigs_); + scanConfigs_ = + new java.util.ArrayList( + scanConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> scanConfigsBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> + scanConfigsBuilder_; /** + * + * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - public java.util.List getScanConfigsList() { + public java.util.List + getScanConfigsList() { if (scanConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(scanConfigs_); } else { @@ -605,6 +675,8 @@ public java.util.List get } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -619,6 +691,8 @@ public int getScanConfigsCount() { } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -633,6 +707,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfigs(int } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -654,6 +730,8 @@ public Builder setScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -672,6 +750,8 @@ public Builder setScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -692,6 +772,8 @@ public Builder addScanConfigs(com.google.cloud.websecurityscanner.v1beta.ScanCon return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -713,6 +795,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -731,6 +815,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -749,6 +835,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -756,11 +844,11 @@ public Builder addScanConfigs( * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ public Builder addAllScanConfigs( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (scanConfigsBuilder_ == null) { ensureScanConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, scanConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanConfigs_); onChanged(); } else { scanConfigsBuilder_.addAllMessages(values); @@ -768,6 +856,8 @@ public Builder addAllScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -785,6 +875,8 @@ public Builder clearScanConfigs() { return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -802,6 +894,8 @@ public Builder removeScanConfigs(int index) { return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -813,6 +907,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConf return getScanConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -822,19 +918,22 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConf public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigsOrBuilder( int index) { if (scanConfigsBuilder_ == null) { - return scanConfigs_.get(index); } else { + return scanConfigs_.get(index); + } else { return scanConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsOrBuilderList() { + public java.util.List + getScanConfigsOrBuilderList() { if (scanConfigsBuilder_ != null) { return scanConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +941,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -849,10 +950,12 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder addScanConfigsBuilder() { - return getScanConfigsFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder() + .addBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()); } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -861,30 +964,36 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder addScanConf */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder addScanConfigsBuilder( int index) { - return getScanConfigsFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()); + return getScanConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()); } /** + * + * *
      * The list of ScanConfigs returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - public java.util.List - getScanConfigsBuilderList() { + public java.util.List + getScanConfigsBuilderList() { return getScanConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> getScanConfigsFieldBuilder() { if (scanConfigsBuilder_ == null) { - scanConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( - scanConfigs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + scanConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( + scanConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); scanConfigs_ = null; } return scanConfigsBuilder_; @@ -892,19 +1001,21 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder addScanConf private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1024,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1047,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1121,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) - private static final com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse(); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanConfigsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanConfigsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1158,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java index 845e712e..c52b947e 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListScanConfigsResponseOrBuilder extends +public interface ListScanConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - java.util.List - getScanConfigsList(); + java.util.List getScanConfigsList(); /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -25,6 +44,8 @@ public interface ListScanConfigsResponseOrBuilder extends */ com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfigs(int index); /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -33,43 +54,51 @@ public interface ListScanConfigsResponseOrBuilder extends */ int getScanConfigsCount(); /** + * + * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - java.util.List + java.util.List getScanConfigsOrBuilderList(); /** + * + * *
    * The list of ScanConfigs returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig scan_configs = 1; */ - com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigsOrBuilder( - int index); + com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java similarity index 69% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java index 32cb456e..aff0e1c0 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Request for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanRunsRequest} */ -public final class ListScanRunsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListScanRunsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) ListScanRunsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListScanRunsRequest.newBuilder() to construct. private ListScanRunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListScanRunsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListScanRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanRunsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListScanRunsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListScanRunsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListScanRunsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -122,30 +148,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,6 +184,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object pageToken_; /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -163,6 +193,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -171,14 +202,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -186,16 +218,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -206,6 +237,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -213,6 +246,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -221,6 +255,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -259,8 +293,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -270,19 +303,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest other = (com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) obj; + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest other = + (com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,117 +337,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanRunsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.class, + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.newBuilder() @@ -424,16 +465,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -447,13 +487,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.getDefaultInstance(); } @@ -468,7 +509,8 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest(this); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest result = + new com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -480,38 +522,39 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) other); } else { super.mergeFrom(other); return this; @@ -519,7 +562,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest other) { - if (other == com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -550,7 +595,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -562,19 +609,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -583,21 +634,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -605,57 +659,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan resource name in the
      * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -663,6 +730,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -670,13 +739,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -685,6 +754,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -692,15 +763,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -708,6 +778,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -715,20 +787,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -736,15 +810,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A token identifying a page of results to be returned. This should be a
      * `next_page_token` value returned from a previous List request.
@@ -752,23 +829,25 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -776,6 +855,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -783,6 +863,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -790,16 +872,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of ScanRuns to return, can be limited by server.
      * If not specified or not positive, the implementation will select a
@@ -807,17 +892,18 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -827,30 +913,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) - private static final com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -862,9 +950,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java index a02571fa..d1cdde6f 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListScanRunsRequestOrBuilder extends +public interface ListScanRunsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListScanRunsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name, which should be a scan resource name in the
    * format 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -37,10 +64,13 @@ public interface ListScanRunsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A token identifying a page of results to be returned. This should be a
    * `next_page_token` value returned from a previous List request.
@@ -48,12 +78,14 @@ public interface ListScanRunsRequestOrBuilder extends
    * 
* * string page_token = 2; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -61,6 +93,7 @@ public interface ListScanRunsRequestOrBuilder extends
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java similarity index 73% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java index 3186acd3..6562b694 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Response for the `ListScanRuns` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanRunsResponse} */ -public final class ListScanRunsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListScanRunsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) ListScanRunsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListScanRunsResponse.newBuilder() to construct. private ListScanRunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListScanRunsResponse() { scanRuns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListScanRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanRunsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListScanRunsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,33 @@ private ListScanRunsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - scanRuns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + scanRuns_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + scanRuns_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), + extensionRegistry)); + break; } - scanRuns_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +106,7 @@ private ListScanRunsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); @@ -94,22 +115,27 @@ private ListScanRunsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.Builder.class); } public static final int SCAN_RUNS_FIELD_NUMBER = 1; private java.util.List scanRuns_; /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -121,6 +147,8 @@ public java.util.List getSca return scanRuns_; } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -128,11 +156,13 @@ public java.util.List getSca * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getScanRunsOrBuilderList() { return scanRuns_; } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -144,6 +174,8 @@ public int getScanRunsCount() { return scanRuns_.size(); } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -155,6 +187,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRuns(int index) return scanRuns_.get(index); } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -170,12 +204,15 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOr public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +221,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +253,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +265,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < scanRuns_.size(); i++) { output.writeMessage(1, scanRuns_.get(i)); } @@ -245,8 +282,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < scanRuns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, scanRuns_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, scanRuns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +295,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse other = (com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) obj; + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse other = + (com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) obj; - if (!getScanRunsList() - .equals(other.getScanRunsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getScanRunsList().equals(other.getScanRunsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +328,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for the `ListScanRuns` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ListScanRunsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.class, + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.newBuilder() @@ -411,17 +456,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getScanRunsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,13 +482,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.getDefaultInstance(); } @@ -458,7 +504,8 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse result = new com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse(this); + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse result = + new com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse(this); int from_bitField0_ = bitField0_; if (scanRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,46 +525,50 @@ public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse other) { - if (other == com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse.getDefaultInstance()) + return this; if (scanRunsBuilder_ == null) { if (!other.scanRuns_.isEmpty()) { if (scanRuns_.isEmpty()) { @@ -536,9 +587,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ListScanRuns scanRunsBuilder_ = null; scanRuns_ = other.scanRuns_; bitField0_ = (bitField0_ & ~0x00000001); - scanRunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getScanRunsFieldBuilder() : null; + scanRunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getScanRunsFieldBuilder() + : null; } else { scanRunsBuilder_.addAllMessages(other.scanRuns_); } @@ -567,7 +619,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +630,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List scanRuns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureScanRunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - scanRuns_ = new java.util.ArrayList(scanRuns_); + scanRuns_ = + new java.util.ArrayList(scanRuns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> scanRunsBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanRun, + com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> + scanRunsBuilder_; /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -605,6 +667,8 @@ public java.util.List getSca } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -619,6 +683,8 @@ public int getScanRunsCount() { } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -633,6 +699,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRuns(int index) } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -654,6 +722,8 @@ public Builder setScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -672,6 +742,8 @@ public Builder setScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -692,6 +764,8 @@ public Builder addScanRuns(com.google.cloud.websecurityscanner.v1beta.ScanRun va return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -713,6 +787,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -731,6 +807,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -749,6 +827,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -759,8 +839,7 @@ public Builder addAllScanRuns( java.lang.Iterable values) { if (scanRunsBuilder_ == null) { ensureScanRunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, scanRuns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scanRuns_); onChanged(); } else { scanRunsBuilder_.addAllMessages(values); @@ -768,6 +847,8 @@ public Builder addAllScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -785,6 +866,8 @@ public Builder clearScanRuns() { return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -802,6 +885,8 @@ public Builder removeScanRuns(int index) { return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -813,6 +898,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder getScanRunsBui return getScanRunsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -822,19 +909,22 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder getScanRunsBui public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOrBuilder( int index) { if (scanRunsBuilder_ == null) { - return scanRuns_.get(index); } else { + return scanRuns_.get(index); + } else { return scanRunsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsOrBuilderList() { + public java.util.List + getScanRunsOrBuilderList() { if (scanRunsBuilder_ != null) { return scanRunsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +932,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOr } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -849,10 +941,12 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOr * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder addScanRunsBuilder() { - return getScanRunsFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()); + return getScanRunsFieldBuilder() + .addBuilder(com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()); } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -861,30 +955,36 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder addScanRunsBui */ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder addScanRunsBuilder( int index) { - return getScanRunsFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()); + return getScanRunsFieldBuilder() + .addBuilder( + index, com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()); } /** + * + * *
      * The list of ScanRuns returned.
      * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ - public java.util.List - getScanRunsBuilderList() { + public java.util.List + getScanRunsBuilderList() { return getScanRunsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanRun, + com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> getScanRunsFieldBuilder() { if (scanRunsBuilder_ == null) { - scanRunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder>( - scanRuns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + scanRunsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanRun, + com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder>( + scanRuns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); scanRuns_ = null; } return scanRunsBuilder_; @@ -892,19 +992,21 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder addScanRunsBui private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1015,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1038,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Token to retrieve the next page of results, or empty if there are no
      * more results in the list.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,30 +1112,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) - private static final com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse(); } - public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListScanRunsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListScanRunsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListScanRunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListScanRunsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1149,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java index f84d198f..3e1252bd 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ListScanRunsResponseOrBuilder extends +public interface ListScanRunsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ListScanRunsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ - java.util.List - getScanRunsList(); + java.util.List getScanRunsList(); /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -25,6 +44,8 @@ public interface ListScanRunsResponseOrBuilder extends */ com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRuns(int index); /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -33,43 +54,51 @@ public interface ListScanRunsResponseOrBuilder extends */ int getScanRunsCount(); /** + * + * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ - java.util.List + java.util.List getScanRunsOrBuilderList(); /** + * + * *
    * The list of ScanRuns returned.
    * 
* * repeated .google.cloud.websecurityscanner.v1beta.ScanRun scan_runs = 1; */ - com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOrBuilder( - int index); + com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOrBuilder(int index); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Token to retrieve the next page of results, or empty if there are no
    * more results in the list.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java similarity index 72% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java index 703c5208..acf0bcd4 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Information reported for an outdated library.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.OutdatedLibrary} */ -public final class OutdatedLibrary extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OutdatedLibrary extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.OutdatedLibrary) OutdatedLibraryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OutdatedLibrary.newBuilder() to construct. private OutdatedLibrary(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OutdatedLibrary() { libraryName_ = ""; version_ = ""; @@ -27,16 +45,15 @@ private OutdatedLibrary() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutdatedLibrary(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OutdatedLibrary( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,34 +73,37 @@ private OutdatedLibrary( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - libraryName_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + libraryName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + version_ = s; + break; } - learnMoreUrls_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + learnMoreUrls_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,8 +111,7 @@ private OutdatedLibrary( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = learnMoreUrls_.getUnmodifiableView(); @@ -101,27 +120,33 @@ private OutdatedLibrary( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.class, + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder.class); } public static final int LIBRARY_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object libraryName_; /** + * + * *
    * The name of the outdated library.
    * 
* * string library_name = 1; + * * @return The libraryName. */ @java.lang.Override @@ -130,29 +155,29 @@ public java.lang.String getLibraryName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; } } /** + * + * *
    * The name of the outdated library.
    * 
* * string library_name = 1; + * * @return The bytes for libraryName. */ @java.lang.Override - public com.google.protobuf.ByteString - getLibraryNameBytes() { + public com.google.protobuf.ByteString getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); libraryName_ = b; return b; } else { @@ -163,11 +188,14 @@ public java.lang.String getLibraryName() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** + * + * *
    * The version number.
    * 
* * string version = 2; + * * @return The version. */ @java.lang.Override @@ -176,29 +204,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * The version number.
    * 
* * string version = 2; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -209,34 +237,42 @@ public java.lang.String getVersion() { public static final int LEARN_MORE_URLS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList learnMoreUrls_; /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList - getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { return learnMoreUrls_; } /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -244,20 +280,23 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString - getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,8 +308,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(libraryName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, libraryName_); } @@ -311,19 +349,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary other = (com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) obj; + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary other = + (com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) obj; - if (!getLibraryName() - .equals(other.getLibraryName())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getLearnMoreUrlsList() - .equals(other.getLearnMoreUrlsList())) return false; + if (!getLibraryName().equals(other.getLibraryName())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getLearnMoreUrlsList().equals(other.getLearnMoreUrlsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -349,117 +385,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information reported for an outdated library.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.OutdatedLibrary} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.OutdatedLibrary) com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.class, com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder.class); + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.class, + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.newBuilder() @@ -467,16 +513,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -490,9 +535,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_OutdatedLibrary_descriptor; } @java.lang.Override @@ -511,7 +556,8 @@ public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary buildPartial() { - com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary result = new com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary(this); + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary result = + new com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary(this); int from_bitField0_ = bitField0_; result.libraryName_ = libraryName_; result.version_ = version_; @@ -528,38 +574,39 @@ public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) other); } else { super.mergeFrom(other); return this; @@ -567,7 +614,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary other) { - if (other == com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance()) + return this; if (!other.getLibraryName().isEmpty()) { libraryName_ = other.libraryName_; onChanged(); @@ -605,7 +653,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -614,22 +663,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object libraryName_ = ""; /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @return The libraryName. */ public java.lang.String getLibraryName() { java.lang.Object ref = libraryName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryName_ = s; return s; @@ -638,20 +690,21 @@ public java.lang.String getLibraryName() { } } /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @return The bytes for libraryName. */ - public com.google.protobuf.ByteString - getLibraryNameBytes() { + public com.google.protobuf.ByteString getLibraryNameBytes() { java.lang.Object ref = libraryName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); libraryName_ = b; return b; } else { @@ -659,54 +712,61 @@ public java.lang.String getLibraryName() { } } /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @param value The libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryName( - java.lang.String value) { + public Builder setLibraryName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + libraryName_ = value; onChanged(); return this; } /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @return This builder for chaining. */ public Builder clearLibraryName() { - + libraryName_ = getDefaultInstance().getLibraryName(); onChanged(); return this; } /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @param value The bytes for libraryName to set. * @return This builder for chaining. */ - public Builder setLibraryNameBytes( - com.google.protobuf.ByteString value) { + public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + libraryName_ = value; onChanged(); return this; @@ -714,18 +774,20 @@ public Builder setLibraryNameBytes( private java.lang.Object version_ = ""; /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -734,20 +796,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -755,95 +818,112 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList learnMoreUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLearnMoreUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(learnMoreUrls_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @return A list containing the learnMoreUrls. */ - public com.google.protobuf.ProtocolStringList - getLearnMoreUrlsList() { + public com.google.protobuf.ProtocolStringList getLearnMoreUrlsList() { return learnMoreUrls_.getUnmodifiableView(); } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @return The count of learnMoreUrls. */ public int getLearnMoreUrlsCount() { return learnMoreUrls_.size(); } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ @@ -851,80 +931,90 @@ public java.lang.String getLearnMoreUrls(int index) { return learnMoreUrls_.get(index); } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - public com.google.protobuf.ByteString - getLearnMoreUrlsBytes(int index) { + public com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index) { return learnMoreUrls_.getByteString(index); } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param index The index to set the value at. * @param value The learnMoreUrls to set. * @return This builder for chaining. */ - public Builder setLearnMoreUrls( - int index, java.lang.String value) { + public Builder setLearnMoreUrls(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.set(index, value); onChanged(); return this; } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param value The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrls( - java.lang.String value) { + public Builder addLearnMoreUrls(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLearnMoreUrlsIsMutable(); + throw new NullPointerException(); + } + ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param values The learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addAllLearnMoreUrls( - java.lang.Iterable values) { + public Builder addAllLearnMoreUrls(java.lang.Iterable values) { ensureLearnMoreUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, learnMoreUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, learnMoreUrls_); onChanged(); return this; } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @return This builder for chaining. */ public Builder clearLearnMoreUrls() { @@ -934,28 +1024,30 @@ public Builder clearLearnMoreUrls() { return this; } /** + * + * *
      * URLs to learn more information about the vulnerabilities in the library.
      * 
* * repeated string learn_more_urls = 3; + * * @param value The bytes of the learnMoreUrls to add. * @return This builder for chaining. */ - public Builder addLearnMoreUrlsBytes( - com.google.protobuf.ByteString value) { + public Builder addLearnMoreUrlsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -965,12 +1057,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.OutdatedLibrary) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.OutdatedLibrary) private static final com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary(); } @@ -979,16 +1071,16 @@ public static com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutdatedLibrary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutdatedLibrary(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OutdatedLibrary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutdatedLibrary(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1003,6 +1095,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java index 68ad3f2f..a6372eec 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java @@ -1,90 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface OutdatedLibraryOrBuilder extends +public interface OutdatedLibraryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.OutdatedLibrary) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the outdated library.
    * 
* * string library_name = 1; + * * @return The libraryName. */ java.lang.String getLibraryName(); /** + * + * *
    * The name of the outdated library.
    * 
* * string library_name = 1; + * * @return The bytes for libraryName. */ - com.google.protobuf.ByteString - getLibraryNameBytes(); + com.google.protobuf.ByteString getLibraryNameBytes(); /** + * + * *
    * The version number.
    * 
* * string version = 2; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * The version number.
    * 
* * string version = 2; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @return A list containing the learnMoreUrls. */ - java.util.List - getLearnMoreUrlsList(); + java.util.List getLearnMoreUrlsList(); /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @return The count of learnMoreUrls. */ int getLearnMoreUrlsCount(); /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the element to return. * @return The learnMoreUrls at the given index. */ java.lang.String getLearnMoreUrls(int index); /** + * + * *
    * URLs to learn more information about the vulnerabilities in the library.
    * 
* * repeated string learn_more_urls = 3; + * * @param index The index of the value to return. * @return The bytes of the learnMoreUrls at the given index. */ - com.google.protobuf.ByteString - getLearnMoreUrlsBytes(int index); + com.google.protobuf.ByteString getLearnMoreUrlsBytes(int index); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java similarity index 100% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java similarity index 66% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java index 054742f3..534992ec 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_config.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * A ScanConfig resource contains the configurations to launch a scan.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig} */ -public final class ScanConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ScanConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfig) ScanConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ScanConfig.newBuilder() to construct. private ScanConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ScanConfig() { name_ = ""; displayName_ = ""; @@ -32,16 +50,15 @@ private ScanConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ScanConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ScanConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -61,128 +78,151 @@ private ScanConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 24: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - maxQps_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - startingUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + displayName_ = s; + break; } - startingUrls_.add(s); - break; - } - case 42: { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder subBuilder = null; - if (authentication_ != null) { - subBuilder = authentication_.toBuilder(); + case 24: + { + maxQps_ = input.readInt32(); + break; } - authentication_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authentication_); - authentication_ = subBuilder.buildPartial(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + startingUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + startingUrls_.add(s); + break; } + case 42: + { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder + subBuilder = null; + if (authentication_ != null) { + subBuilder = authentication_.toBuilder(); + } + authentication_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authentication_); + authentication_ = subBuilder.buildPartial(); + } - break; - } - case 48: { - int rawValue = input.readEnum(); - - userAgent_ = rawValue; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + break; } - blacklistPatterns_.add(s); - break; - } - case 66: { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder subBuilder = null; - if (schedule_ != null) { - subBuilder = schedule_.toBuilder(); + case 48: + { + int rawValue = input.readEnum(); + + userAgent_ = rawValue; + break; } - schedule_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schedule_); - schedule_ = subBuilder.buildPartial(); + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + blacklistPatterns_.add(s); + break; } + case 66: + { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder subBuilder = + null; + if (schedule_ != null) { + subBuilder = schedule_.toBuilder(); + } + schedule_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schedule_); + schedule_ = subBuilder.buildPartial(); + } - break; - } - case 72: { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - targetPlatforms_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + break; } - targetPlatforms_.add(rawValue); - break; - } - case 74: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 72: + { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000004) != 0)) { targetPlatforms_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } targetPlatforms_.add(rawValue); + break; } - input.popLimit(oldLimit); - break; - } - case 80: { - int rawValue = input.readEnum(); - - exportToSecurityCommandCenter_ = rawValue; - break; - } - case 90: { - com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder subBuilder = null; - if (latestRun_ != null) { - subBuilder = latestRun_.toBuilder(); + case 74: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + targetPlatforms_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + targetPlatforms_.add(rawValue); + } + input.popLimit(oldLimit); + break; } - latestRun_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(latestRun_); - latestRun_ = subBuilder.buildPartial(); + case 80: + { + int rawValue = input.readEnum(); + + exportToSecurityCommandCenter_ = rawValue; + break; } + case 90: + { + com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder subBuilder = null; + if (latestRun_ != null) { + subBuilder = latestRun_.toBuilder(); + } + latestRun_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latestRun_); + latestRun_ = subBuilder.buildPartial(); + } - break; - } - case 96: { - int rawValue = input.readEnum(); + break; + } + case 96: + { + int rawValue = input.readEnum(); - riskLevel_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + riskLevel_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -190,8 +230,7 @@ private ScanConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { startingUrls_ = startingUrls_.getUnmodifiableView(); @@ -206,29 +245,35 @@ private ScanConfig( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder.class); } /** + * + * *
    * Type of user agents used for scanning.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent} */ - public enum UserAgent - implements com.google.protobuf.ProtocolMessageEnum { + public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -237,6 +282,8 @@ public enum UserAgent */ USER_AGENT_UNSPECIFIED(0), /** + * + * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -245,6 +292,8 @@ public enum UserAgent */ CHROME_LINUX(1), /** + * + * *
      * Chrome on Android.
      * 
@@ -253,6 +302,8 @@ public enum UserAgent */ CHROME_ANDROID(2), /** + * + * *
      * Safari on IPhone.
      * 
@@ -264,6 +315,8 @@ public enum UserAgent ; /** + * + * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -272,6 +325,8 @@ public enum UserAgent */ public static final int USER_AGENT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -280,6 +335,8 @@ public enum UserAgent */ public static final int CHROME_LINUX_VALUE = 1; /** + * + * *
      * Chrome on Android.
      * 
@@ -288,6 +345,8 @@ public enum UserAgent */ public static final int CHROME_ANDROID_VALUE = 2; /** + * + * *
      * Safari on IPhone.
      * 
@@ -296,7 +355,6 @@ public enum UserAgent */ public static final int SAFARI_IPHONE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -321,50 +379,53 @@ public static UserAgent valueOf(int value) { */ public static UserAgent forNumber(int value) { switch (value) { - case 0: return USER_AGENT_UNSPECIFIED; - case 1: return CHROME_LINUX; - case 2: return CHROME_ANDROID; - case 3: return SAFARI_IPHONE; - default: return null; + case 0: + return USER_AGENT_UNSPECIFIED; + case 1: + return CHROME_LINUX; + case 2: + return CHROME_ANDROID; + case 3: + return SAFARI_IPHONE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - UserAgent> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public UserAgent findValueByNumber(int number) { - return UserAgent.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UserAgent findValueByNumber(int number) { + return UserAgent.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor() + .getEnumTypes() + .get(0); } private static final UserAgent[] VALUES = values(); - public static UserAgent valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static UserAgent valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -382,15 +443,18 @@ private UserAgent(int value) { } /** + * + * *
    * Cloud platforms supported by Cloud Web Security Scanner.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform} */ - public enum TargetPlatform - implements com.google.protobuf.ProtocolMessageEnum { + public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The target platform is unknown. Requests with this enum value will be
      * rejected with INVALID_ARGUMENT error.
@@ -400,6 +464,8 @@ public enum TargetPlatform
      */
     TARGET_PLATFORM_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Google App Engine service.
      * 
@@ -408,6 +474,8 @@ public enum TargetPlatform */ APP_ENGINE(1), /** + * + * *
      * Google Compute Engine service.
      * 
@@ -419,6 +487,8 @@ public enum TargetPlatform ; /** + * + * *
      * The target platform is unknown. Requests with this enum value will be
      * rejected with INVALID_ARGUMENT error.
@@ -428,6 +498,8 @@ public enum TargetPlatform
      */
     public static final int TARGET_PLATFORM_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Google App Engine service.
      * 
@@ -436,6 +508,8 @@ public enum TargetPlatform */ public static final int APP_ENGINE_VALUE = 1; /** + * + * *
      * Google Compute Engine service.
      * 
@@ -444,7 +518,6 @@ public enum TargetPlatform */ public static final int COMPUTE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -469,49 +542,51 @@ public static TargetPlatform valueOf(int value) { */ public static TargetPlatform forNumber(int value) { switch (value) { - case 0: return TARGET_PLATFORM_UNSPECIFIED; - case 1: return APP_ENGINE; - case 2: return COMPUTE; - default: return null; + case 0: + return TARGET_PLATFORM_UNSPECIFIED; + case 1: + return APP_ENGINE; + case 2: + return COMPUTE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - TargetPlatform> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TargetPlatform findValueByNumber(int number) { - return TargetPlatform.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TargetPlatform findValueByNumber(int number) { + return TargetPlatform.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor() + .getEnumTypes() + .get(1); } private static final TargetPlatform[] VALUES = values(); - public static TargetPlatform valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TargetPlatform valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -529,6 +604,8 @@ private TargetPlatform(int value) { } /** + * + * *
    * Scan risk levels supported by Cloud Web Security Scanner. LOW impact
    * scanning will minimize requests with the potential to modify data. To
@@ -537,9 +614,10 @@ private TargetPlatform(int value) {
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel}
    */
-  public enum RiskLevel
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Use default, which is NORMAL.
      * 
@@ -548,6 +626,8 @@ public enum RiskLevel */ RISK_LEVEL_UNSPECIFIED(0), /** + * + * *
      * Normal scanning (Recommended)
      * 
@@ -556,6 +636,8 @@ public enum RiskLevel */ NORMAL(1), /** + * + * *
      * Lower impact scanning
      * 
@@ -567,6 +649,8 @@ public enum RiskLevel ; /** + * + * *
      * Use default, which is NORMAL.
      * 
@@ -575,6 +659,8 @@ public enum RiskLevel */ public static final int RISK_LEVEL_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Normal scanning (Recommended)
      * 
@@ -583,6 +669,8 @@ public enum RiskLevel */ public static final int NORMAL_VALUE = 1; /** + * + * *
      * Lower impact scanning
      * 
@@ -591,7 +679,6 @@ public enum RiskLevel */ public static final int LOW_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -616,49 +703,51 @@ public static RiskLevel valueOf(int value) { */ public static RiskLevel forNumber(int value) { switch (value) { - case 0: return RISK_LEVEL_UNSPECIFIED; - case 1: return NORMAL; - case 2: return LOW; - default: return null; + case 0: + return RISK_LEVEL_UNSPECIFIED; + case 1: + return NORMAL; + case 2: + return LOW; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - RiskLevel> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RiskLevel findValueByNumber(int number) { - return RiskLevel.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RiskLevel findValueByNumber(int number) { + return RiskLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor().getEnumTypes().get(2); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor() + .getEnumTypes() + .get(2); } private static final RiskLevel[] VALUES = values(); - public static RiskLevel valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RiskLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -676,16 +765,20 @@ private RiskLevel(int value) { } /** + * + * *
    * Controls export of scan configurations and results to Cloud Security
    * Command Center.
    * 
* - * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter} + * Protobuf enum {@code + * google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter} */ - public enum ExportToSecurityCommandCenter - implements com.google.protobuf.ProtocolMessageEnum { + public enum ExportToSecurityCommandCenter implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Use default, which is ENABLED.
      * 
@@ -694,6 +787,8 @@ public enum ExportToSecurityCommandCenter */ EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED(0), /** + * + * *
      * Export results of this scan to Cloud Security Command Center.
      * 
@@ -702,6 +797,8 @@ public enum ExportToSecurityCommandCenter */ ENABLED(1), /** + * + * *
      * Do not export results of this scan to Cloud Security Command Center.
      * 
@@ -713,6 +810,8 @@ public enum ExportToSecurityCommandCenter ; /** + * + * *
      * Use default, which is ENABLED.
      * 
@@ -721,6 +820,8 @@ public enum ExportToSecurityCommandCenter */ public static final int EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Export results of this scan to Cloud Security Command Center.
      * 
@@ -729,6 +830,8 @@ public enum ExportToSecurityCommandCenter */ public static final int ENABLED_VALUE = 1; /** + * + * *
      * Do not export results of this scan to Cloud Security Command Center.
      * 
@@ -737,7 +840,6 @@ public enum ExportToSecurityCommandCenter */ public static final int DISABLED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -762,10 +864,14 @@ public static ExportToSecurityCommandCenter valueOf(int value) { */ public static ExportToSecurityCommandCenter forNumber(int value) { switch (value) { - case 0: return EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED; - case 1: return ENABLED; - case 2: return DISABLED; - default: return null; + case 0: + return EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED; + case 1: + return ENABLED; + case 2: + return DISABLED; + default: + return null; } } @@ -773,29 +879,31 @@ public static ExportToSecurityCommandCenter forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ExportToSecurityCommandCenter> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExportToSecurityCommandCenter findValueByNumber(int number) { - return ExportToSecurityCommandCenter.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExportToSecurityCommandCenter findValueByNumber(int number) { + return ExportToSecurityCommandCenter.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor().getEnumTypes().get(3); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDescriptor() + .getEnumTypes() + .get(3); } private static final ExportToSecurityCommandCenter[] VALUES = values(); @@ -803,8 +911,7 @@ public ExportToSecurityCommandCenter findValueByNumber(int number) { public static ExportToSecurityCommandCenter valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -821,97 +928,132 @@ private ExportToSecurityCommandCenter(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter) } - public interface AuthenticationOrBuilder extends + public interface AuthenticationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return Whether the googleAccount field is set. */ boolean hasGoogleAccount(); /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return The googleAccount. */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getGoogleAccount(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + getGoogleAccount(); /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder + getGoogleAccountOrBuilder(); /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return Whether the customAccount field is set. */ boolean hasCustomAccount(); /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return The customAccount. */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getCustomAccount(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + getCustomAccount(); /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder + getCustomAccountOrBuilder(); - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.AuthenticationCase getAuthenticationCase(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.AuthenticationCase + getAuthenticationCase(); } /** + * + * *
    * Scan authentication configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication} */ - public static final class Authentication extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Authentication extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) AuthenticationOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Authentication.newBuilder() to construct. private Authentication(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Authentication() { - } + + private Authentication() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Authentication(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Authentication( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -930,41 +1072,67 @@ private Authentication( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder subBuilder = null; - if (authenticationCase_ == 1) { - subBuilder = ((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_).toBuilder(); - } - authentication_ = - input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_); - authentication_ = subBuilder.buildPartial(); - } - authenticationCase_ = 1; - break; - } - case 18: { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder subBuilder = null; - if (authenticationCase_ == 2) { - subBuilder = ((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_).toBuilder(); + case 10: + { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .Builder + subBuilder = null; + if (authenticationCase_ == 1) { + subBuilder = + ((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount) + authentication_) + .toBuilder(); + } + authentication_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount) + authentication_); + authentication_ = subBuilder.buildPartial(); + } + authenticationCase_ = 1; + break; } - authentication_ = - input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_); - authentication_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .Builder + subBuilder = null; + if (authenticationCase_ == 2) { + subBuilder = + ((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount) + authentication_) + .toBuilder(); + } + authentication_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount) + authentication_); + authentication_ = subBuilder.buildPartial(); + } + authenticationCase_ = 2; + break; } - authenticationCase_ = 2; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -972,88 +1140,109 @@ private Authentication( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.class, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder.class); } - public interface GoogleAccountOrBuilder extends + public interface GoogleAccountOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); } /** + * + * *
      * Describes authentication configuration that uses a Google account.
      * 
* - * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code + * google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount} */ - public static final class GoogleAccount extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GoogleAccount extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) GoogleAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GoogleAccount.newBuilder() to construct. private GoogleAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GoogleAccount() { username_ = ""; password_ = ""; @@ -1061,16 +1250,15 @@ private GoogleAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GoogleAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GoogleAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1089,25 +1277,27 @@ private GoogleAccount( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + password_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1115,34 +1305,42 @@ private GoogleAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .class, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** + * + * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ @java.lang.Override @@ -1151,29 +1349,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** + * + * *
        * Required. The user name of the Google account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -1184,12 +1382,17 @@ public java.lang.String getUsername() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** + * + * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ @java.lang.Override @@ -1198,30 +1401,32 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** + * + * *
        * Required. Input only. The password of the Google account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -1230,6 +1435,7 @@ public java.lang.String getPassword() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1241,8 +1447,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -1272,17 +1477,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount)) { + if (!(obj + instanceof + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount other = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount other = + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) + obj; - if (!getUsername() - .equals(other.getUsername())) return false; - if (!getPassword() - .equals(other.getPassword())) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1303,88 +1510,116 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1394,44 +1629,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Describes authentication configuration that uses a Google account.
        * 
* - * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount} + * Protobuf type {@code + * google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .class, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1443,19 +1687,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount build() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount result = buildPartial(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + build() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1463,8 +1711,12 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Goog } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount result = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount(this); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + buildPartial() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + result = + new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount(this); result.username_ = username_; result.password_ = password_; onBuilt(); @@ -1475,46 +1727,57 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Goog public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount)other); + if (other + instanceof + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) { + return mergeFrom( + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount other) { - if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -1538,11 +1801,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount parsedMessage = null; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1554,18 +1820,20 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** + * + * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1574,20 +1842,21 @@ public java.lang.String getUsername() { } } /** + * + * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -1595,54 +1864,61 @@ public java.lang.String getUsername() { } } /** + * + * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { + public Builder setUsername(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** + * + * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** + * + * *
          * Required. The user name of the Google account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -1650,19 +1926,23 @@ public Builder setUsernameBytes( private java.lang.Object password_ = ""; /** + * + * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1671,21 +1951,24 @@ public java.lang.String getPassword() { } } /** + * + * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -1693,61 +1976,75 @@ public java.lang.String getPassword() { } } /** + * + * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { + public Builder setPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** + * + * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** + * + * *
          * Required. Input only. The password of the Google account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1760,30 +2057,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) - private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount(); + DEFAULT_INSTANCE = + new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount(); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GoogleAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GoogleAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GoogleAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1795,94 +2098,118 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CustomAccountOrBuilder extends + public interface CustomAccountOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); /** + * + * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The loginUrl. */ java.lang.String getLoginUrl(); /** + * + * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for loginUrl. */ - com.google.protobuf.ByteString - getLoginUrlBytes(); + com.google.protobuf.ByteString getLoginUrlBytes(); } /** + * + * *
      * Describes authentication configuration that uses a custom account.
      * 
* - * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code + * google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount} */ - public static final class CustomAccount extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CustomAccount extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) CustomAccountOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CustomAccount.newBuilder() to construct. private CustomAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CustomAccount() { username_ = ""; password_ = ""; @@ -1891,16 +2218,15 @@ private CustomAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CustomAccount(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CustomAccount( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1919,31 +2245,34 @@ private CustomAccount( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + password_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - loginUrl_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + loginUrl_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1951,34 +2280,42 @@ private CustomAccount( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .class, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** + * + * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ @java.lang.Override @@ -1987,29 +2324,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** + * + * *
        * Required. The user name of the custom account.
        * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -2020,12 +2357,17 @@ public java.lang.String getUsername() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** + * + * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ @java.lang.Override @@ -2034,30 +2376,32 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** + * + * *
        * Required. Input only. The password of the custom account. The credential is stored encrypted
        * and not returned in any response nor included in audit logs.
        * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -2068,11 +2412,14 @@ public java.lang.String getPassword() { public static final int LOGIN_URL_FIELD_NUMBER = 3; private volatile java.lang.Object loginUrl_; /** + * + * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The loginUrl. */ @java.lang.Override @@ -2081,29 +2428,29 @@ public java.lang.String getLoginUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; } } /** + * + * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for loginUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getLoginUrlBytes() { + public com.google.protobuf.ByteString getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); loginUrl_ = b; return b; } else { @@ -2112,6 +2459,7 @@ public java.lang.String getLoginUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2123,8 +2471,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -2160,19 +2507,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount)) { + if (!(obj + instanceof + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount other = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount other = + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) + obj; - if (!getUsername() - .equals(other.getUsername())) return false; - if (!getPassword() - .equals(other.getPassword())) return false; - if (!getLoginUrl() - .equals(other.getLoginUrl())) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; + if (!getLoginUrl().equals(other.getLoginUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2195,88 +2543,116 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2286,44 +2662,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Describes authentication configuration that uses a custom account.
        * 
* - * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount} + * Protobuf type {@code + * google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .class, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2337,19 +2722,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount build() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount result = buildPartial(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + build() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2357,8 +2746,12 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Cust } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount result = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount(this); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + buildPartial() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + result = + new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount(this); result.username_ = username_; result.password_ = password_; result.loginUrl_ = loginUrl_; @@ -2370,46 +2763,57 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Cust public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount)other); + if (other + instanceof + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) { + return mergeFrom( + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount other) { - if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -2437,11 +2841,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount parsedMessage = null; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2453,18 +2860,20 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** + * + * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -2473,20 +2882,21 @@ public java.lang.String getUsername() { } } /** + * + * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -2494,54 +2904,61 @@ public java.lang.String getUsername() { } } /** + * + * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { + public Builder setUsername(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** + * + * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** + * + * *
          * Required. The user name of the custom account.
          * 
* * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -2549,19 +2966,23 @@ public Builder setUsernameBytes( private java.lang.Object password_ = ""; /** + * + * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -2570,21 +2991,24 @@ public java.lang.String getPassword() { } } /** + * + * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -2592,57 +3016,70 @@ public java.lang.String getPassword() { } } /** + * + * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { + public Builder setPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** + * + * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** + * + * *
          * Required. Input only. The password of the custom account. The credential is stored encrypted
          * and not returned in any response nor included in audit logs.
          * 
* - * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; @@ -2650,18 +3087,20 @@ public Builder setPasswordBytes( private java.lang.Object loginUrl_ = ""; /** + * + * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The loginUrl. */ public java.lang.String getLoginUrl() { java.lang.Object ref = loginUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); loginUrl_ = s; return s; @@ -2670,20 +3109,21 @@ public java.lang.String getLoginUrl() { } } /** + * + * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for loginUrl. */ - public com.google.protobuf.ByteString - getLoginUrlBytes() { + public com.google.protobuf.ByteString getLoginUrlBytes() { java.lang.Object ref = loginUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); loginUrl_ = b; return b; } else { @@ -2691,58 +3131,66 @@ public java.lang.String getLoginUrl() { } } /** + * + * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrl( - java.lang.String value) { + public Builder setLoginUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + loginUrl_ = value; onChanged(); return this; } /** + * + * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLoginUrl() { - + loginUrl_ = getDefaultInstance().getLoginUrl(); onChanged(); return this; } /** + * + * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for loginUrl to set. * @return This builder for chaining. */ - public Builder setLoginUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setLoginUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + loginUrl_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2755,30 +3203,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) - private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount(); + DEFAULT_INSTANCE = + new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount(); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomAccount(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomAccount(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2790,21 +3244,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int authenticationCase_ = 0; private java.lang.Object authentication_; + public enum AuthenticationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GOOGLE_ACCOUNT(1), CUSTOM_ACCOUNT(2), AUTHENTICATION_NOT_SET(0); private final int value; + private AuthenticationCase(int value) { this.value = value; } @@ -2820,30 +3277,38 @@ public static AuthenticationCase valueOf(int value) { public static AuthenticationCase forNumber(int value) { switch (value) { - case 1: return GOOGLE_ACCOUNT; - case 2: return CUSTOM_ACCOUNT; - case 0: return AUTHENTICATION_NOT_SET; - default: return null; + case 1: + return GOOGLE_ACCOUNT; + case 2: + return CUSTOM_ACCOUNT; + case 0: + return AUTHENTICATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public AuthenticationCase - getAuthenticationCase() { - return AuthenticationCase.forNumber( - authenticationCase_); + public AuthenticationCase getAuthenticationCase() { + return AuthenticationCase.forNumber(authenticationCase_); } public static final int GOOGLE_ACCOUNT_FIELD_NUMBER = 1; /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return Whether the googleAccount field is set. */ @java.lang.Override @@ -2851,42 +3316,63 @@ public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + getGoogleAccount() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccountOrBuilder + getGoogleAccountOrBuilder() { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } public static final int CUSTOM_ACCOUNT_FIELD_NUMBER = 2; /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return Whether the customAccount field is set. */ @java.lang.Override @@ -2894,36 +3380,53 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getCustomAccount() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + getCustomAccount() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } /** + * + * *
      * Authentication using a custom account.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccountOrBuilder + getCustomAccountOrBuilder() { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2935,13 +3438,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (authenticationCase_ == 1) { - output.writeMessage(1, (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_); + output.writeMessage( + 1, + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) + authentication_); } if (authenticationCase_ == 2) { - output.writeMessage(2, (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_); + output.writeMessage( + 2, + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) + authentication_); } unknownFields.writeTo(output); } @@ -2953,12 +3461,18 @@ public int getSerializedSize() { size = 0; if (authenticationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) + authentication_); } if (authenticationCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) + authentication_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2968,22 +3482,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication other = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication other = + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) obj; if (!getAuthenticationCase().equals(other.getAuthenticationCase())) return false; switch (authenticationCase_) { case 1: - if (!getGoogleAccount() - .equals(other.getGoogleAccount())) return false; + if (!getGoogleAccount().equals(other.getGoogleAccount())) return false; break; case 2: - if (!getCustomAccount() - .equals(other.getCustomAccount())) return false; + if (!getCustomAccount().equals(other.getCustomAccount())) return false; break; case 0: default: @@ -3017,87 +3530,95 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -3107,44 +3628,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Scan authentication configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.class, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -3154,19 +3680,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication build() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result = buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3175,7 +3704,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication buil @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication(this); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result = + new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication(this); if (authenticationCase_ == 1) { if (googleAccountBuilder_ == null) { result.authentication_ = authentication_; @@ -3199,58 +3729,68 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication other) { - if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .getDefaultInstance()) return this; switch (other.getAuthenticationCase()) { - case GOOGLE_ACCOUNT: { - mergeGoogleAccount(other.getGoogleAccount()); - break; - } - case CUSTOM_ACCOUNT: { - mergeCustomAccount(other.getCustomAccount()); - break; - } - case AUTHENTICATION_NOT_SET: { - break; - } + case GOOGLE_ACCOUNT: + { + mergeGoogleAccount(other.getGoogleAccount()); + break; + } + case CUSTOM_ACCOUNT: + { + mergeCustomAccount(other.getCustomAccount()); + break; + } + case AUTHENTICATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -3271,7 +3811,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3280,12 +3822,12 @@ public Builder mergeFrom( } return this; } + private int authenticationCase_ = 0; private java.lang.Object authentication_; - public AuthenticationCase - getAuthenticationCase() { - return AuthenticationCase.forNumber( - authenticationCase_); + + public AuthenticationCase getAuthenticationCase() { + return AuthenticationCase.forNumber(authenticationCase_); } public Builder clearAuthentication() { @@ -3295,15 +3837,24 @@ public Builder clearAuthentication() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder> googleAccountBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccountOrBuilder> + googleAccountBuilder_; /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return Whether the googleAccount field is set. */ @java.lang.Override @@ -3311,35 +3862,51 @@ public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * * @return The googleAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + getGoogleAccount() { if (googleAccountBuilder_ == null) { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } else { if (authenticationCase_ == 1) { return googleAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ - public Builder setGoogleAccount(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount value) { + public Builder setGoogleAccount( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + value) { if (googleAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3353,14 +3920,19 @@ public Builder setGoogleAccount(com.google.cloud.websecurityscanner.v1beta.ScanC return this; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder builderForValue) { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder + builderForValue) { if (googleAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -3371,18 +3943,32 @@ public Builder setGoogleAccount( return this; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ - public Builder mergeGoogleAccount(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount value) { + public Builder mergeGoogleAccount( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + value) { if (googleAccountBuilder_ == null) { - if (authenticationCase_ == 1 && - authentication_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance()) { - authentication_ = com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.newBuilder((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_) - .mergeFrom(value).buildPartial(); + if (authenticationCase_ == 1 + && authentication_ + != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount.getDefaultInstance()) { + authentication_ = + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .newBuilder( + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount) + authentication_) + .mergeFrom(value) + .buildPartial(); } else { authentication_ = value; } @@ -3398,11 +3984,15 @@ public Builder mergeGoogleAccount(com.google.cloud.websecurityscanner.v1beta.Sca return this; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ public Builder clearGoogleAccount() { if (googleAccountBuilder_ == null) { @@ -3421,67 +4011,111 @@ public Builder clearGoogleAccount() { return this; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder getGoogleAccountBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .Builder + getGoogleAccountBuilder() { return getGoogleAccountFieldBuilder().getBuilder(); } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccountOrBuilder + getGoogleAccountOrBuilder() { if ((authenticationCase_ == 1) && (googleAccountBuilder_ != null)) { return googleAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 1) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount google_account = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccountOrBuilder> getGoogleAccountFieldBuilder() { if (googleAccountBuilder_ == null) { if (!(authenticationCase_ == 1)) { - authentication_ = com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.getDefaultInstance(); + authentication_ = + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .getDefaultInstance(); } - googleAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount) authentication_, + googleAccountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + .Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .GoogleAccount) + authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 1; - onChanged();; + onChanged(); + ; return googleAccountBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder> customAccountBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccountOrBuilder> + customAccountBuilder_; /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return Whether the customAccount field is set. */ @java.lang.Override @@ -3489,35 +4123,51 @@ public boolean hasCustomAccount() { return authenticationCase_ == 2; } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * * @return The customAccount. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount getCustomAccount() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + getCustomAccount() { if (customAccountBuilder_ == null) { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } else { if (authenticationCase_ == 2) { return customAccountBuilder_.getMessage(); } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ - public Builder setCustomAccount(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount value) { + public Builder setCustomAccount( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + value) { if (customAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3531,14 +4181,19 @@ public Builder setCustomAccount(com.google.cloud.websecurityscanner.v1beta.ScanC return this; } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ public Builder setCustomAccount( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder builderForValue) { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder + builderForValue) { if (customAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -3549,18 +4204,32 @@ public Builder setCustomAccount( return this; } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ - public Builder mergeCustomAccount(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount value) { + public Builder mergeCustomAccount( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + value) { if (customAccountBuilder_ == null) { - if (authenticationCase_ == 2 && - authentication_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance()) { - authentication_ = com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.newBuilder((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_) - .mergeFrom(value).buildPartial(); + if (authenticationCase_ == 2 + && authentication_ + != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount.getDefaultInstance()) { + authentication_ = + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .newBuilder( + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount) + authentication_) + .mergeFrom(value) + .buildPartial(); } else { authentication_ = value; } @@ -3576,11 +4245,15 @@ public Builder mergeCustomAccount(com.google.cloud.websecurityscanner.v1beta.Sca return this; } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ public Builder clearCustomAccount() { if (customAccountBuilder_ == null) { @@ -3599,58 +4272,93 @@ public Builder clearCustomAccount() { return this; } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder getCustomAccountBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .Builder + getCustomAccountBuilder() { return getCustomAccountFieldBuilder().getBuilder(); } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder getCustomAccountOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccountOrBuilder + getCustomAccountOrBuilder() { if ((authenticationCase_ == 2) && (customAccountBuilder_ != null)) { return customAccountBuilder_.getMessageOrBuilder(); } else { if (authenticationCase_ == 2) { - return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_; + return (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount) + authentication_; } - return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } } /** + * + * *
        * Authentication using a custom account.
        * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount custom_account = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccountOrBuilder> getCustomAccountFieldBuilder() { if (customAccountBuilder_ == null) { if (!(authenticationCase_ == 2)) { - authentication_ = com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.getDefaultInstance(); + authentication_ = + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .getDefaultInstance(); } - customAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccountOrBuilder>( - (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount) authentication_, + customAccountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + .Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccountOrBuilder>( + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .CustomAccount) + authentication_, getParentForChildren(), isClean()); authentication_ = null; } authenticationCase_ = 2; - onChanged();; + onChanged(); + ; return customAccountBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3663,30 +4371,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication) - private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication(); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Authentication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Authentication(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authentication parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Authentication(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3698,17 +4408,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ScheduleOrBuilder extends + public interface ScheduleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -3717,10 +4430,13 @@ public interface ScheduleOrBuilder extends
      * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return Whether the scheduleTime field is set. */ boolean hasScheduleTime(); /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -3729,10 +4445,13 @@ public interface ScheduleOrBuilder extends
      * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return The scheduleTime. */ com.google.protobuf.Timestamp getScheduleTime(); /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -3745,46 +4464,50 @@ public interface ScheduleOrBuilder extends
     com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder();
 
     /**
+     *
+     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The intervalDurationDays. */ int getIntervalDurationDays(); } /** + * + * *
    * Scan schedule configuration.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule} */ - public static final class Schedule extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Schedule extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) ScheduleOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Schedule.newBuilder() to construct. private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Schedule() { - } + + private Schedule() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Schedule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Schedule( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3803,31 +4526,33 @@ private Schedule( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (scheduleTime_ != null) { + subBuilder = scheduleTime_.toBuilder(); + } + scheduleTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduleTime_); + scheduleTime_ = subBuilder.buildPartial(); + } + + break; } - scheduleTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); + case 16: + { + intervalDurationDays_ = input.readInt32(); + break; } - - break; - } - case 16: { - - intervalDurationDays_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3835,29 +4560,33 @@ private Schedule( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.class, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder.class); } public static final int SCHEDULE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp scheduleTime_; /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -3866,6 +4595,7 @@ private Schedule(
      * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -3873,6 +4603,8 @@ public boolean hasScheduleTime() { return scheduleTime_ != null; } /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -3881,13 +4613,18 @@ public boolean hasScheduleTime() {
      * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return The scheduleTime. */ @java.lang.Override public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; } /** + * + * *
      * A timestamp indicates when the next run will be scheduled. The value is
      * refreshed by the server after each run. If unspecified, it will default
@@ -3905,11 +4642,14 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
     public static final int INTERVAL_DURATION_DAYS_FIELD_NUMBER = 2;
     private int intervalDurationDays_;
     /**
+     *
+     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The intervalDurationDays. */ @java.lang.Override @@ -3918,6 +4658,7 @@ public int getIntervalDurationDays() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3929,8 +4670,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (scheduleTime_ != null) { output.writeMessage(1, getScheduleTime()); } @@ -3947,12 +4687,10 @@ public int getSerializedSize() { size = 0; if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getScheduleTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getScheduleTime()); } if (intervalDurationDays_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, intervalDurationDays_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, intervalDurationDays_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3962,20 +4700,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule other = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule other = + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) obj; if (hasScheduleTime() != other.hasScheduleTime()) return false; if (hasScheduleTime()) { - if (!getScheduleTime() - .equals(other.getScheduleTime())) return false; + if (!getScheduleTime().equals(other.getScheduleTime())) return false; } - if (getIntervalDurationDays() - != other.getIntervalDurationDays()) return false; + if (getIntervalDurationDays() != other.getIntervalDurationDays()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3999,87 +4736,94 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4089,27 +4833,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Scan schedule configuration.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.class, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.newBuilder() @@ -4117,16 +4866,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -4142,13 +4890,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance(); } @@ -4163,7 +4912,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule result = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule(this); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule result = + new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule(this); if (scheduleTimeBuilder_ == null) { result.scheduleTime_ = scheduleTime_; } else { @@ -4178,46 +4928,52 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule other) { - if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance()) + return this; if (other.hasScheduleTime()) { mergeScheduleTime(other.getScheduleTime()); } @@ -4243,7 +4999,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4255,8 +5013,13 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp scheduleTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduleTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + scheduleTimeBuilder_; /** + * + * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4265,12 +5028,15 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return scheduleTimeBuilder_ != null || scheduleTime_ != null; } /** + * + * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4279,16 +5045,21 @@ public boolean hasScheduleTime() {
        * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return The scheduleTime. */ public com.google.protobuf.Timestamp getScheduleTime() { if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_; + return scheduleTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : scheduleTime_; } else { return scheduleTimeBuilder_.getMessage(); } } /** + * + * *
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4312,6 +5083,8 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4321,8 +5094,7 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp schedule_time = 1;
        */
-      public Builder setScheduleTime(
-          com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) {
         if (scheduleTimeBuilder_ == null) {
           scheduleTime_ = builderForValue.build();
           onChanged();
@@ -4333,6 +5105,8 @@ public Builder setScheduleTime(
         return this;
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4346,7 +5120,9 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         if (scheduleTimeBuilder_ == null) {
           if (scheduleTime_ != null) {
             scheduleTime_ =
-              com.google.protobuf.Timestamp.newBuilder(scheduleTime_).mergeFrom(value).buildPartial();
+                com.google.protobuf.Timestamp.newBuilder(scheduleTime_)
+                    .mergeFrom(value)
+                    .buildPartial();
           } else {
             scheduleTime_ = value;
           }
@@ -4358,6 +5134,8 @@ public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4379,6 +5157,8 @@ public Builder clearScheduleTime() {
         return this;
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4389,11 +5169,13 @@ public Builder clearScheduleTime() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() {
-        
+
         onChanged();
         return getScheduleTimeFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4407,11 +5189,14 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
         if (scheduleTimeBuilder_ != null) {
           return scheduleTimeBuilder_.getMessageOrBuilder();
         } else {
-          return scheduleTime_ == null ?
-              com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_;
+          return scheduleTime_ == null
+              ? com.google.protobuf.Timestamp.getDefaultInstance()
+              : scheduleTime_;
         }
       }
       /**
+       *
+       *
        * 
        * A timestamp indicates when the next run will be scheduled. The value is
        * refreshed by the server after each run. If unspecified, it will default
@@ -4422,26 +5207,32 @@ public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
        * .google.protobuf.Timestamp schedule_time = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
           getScheduleTimeFieldBuilder() {
         if (scheduleTimeBuilder_ == null) {
-          scheduleTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                  getScheduleTime(),
-                  getParentForChildren(),
-                  isClean());
+          scheduleTimeBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Timestamp,
+                  com.google.protobuf.Timestamp.Builder,
+                  com.google.protobuf.TimestampOrBuilder>(
+                  getScheduleTime(), getParentForChildren(), isClean());
           scheduleTime_ = null;
         }
         return scheduleTimeBuilder_;
       }
 
-      private int intervalDurationDays_ ;
+      private int intervalDurationDays_;
       /**
+       *
+       *
        * 
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The intervalDurationDays. */ @java.lang.Override @@ -4449,34 +5240,41 @@ public int getIntervalDurationDays() { return intervalDurationDays_; } /** + * + * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The intervalDurationDays to set. * @return This builder for chaining. */ public Builder setIntervalDurationDays(int value) { - + intervalDurationDays_ = value; onChanged(); return this; } /** + * + * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearIntervalDurationDays() { - + intervalDurationDays_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4489,30 +5287,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule) - private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule(); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schedule(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4524,15 +5324,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -4540,6 +5342,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getDefault
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -4548,14 +5351,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -4563,16 +5367,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -4583,11 +5386,14 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -4596,29 +5402,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -4629,6 +5435,8 @@ public java.lang.String getDisplayName() { public static final int MAX_QPS_FIELD_NUMBER = 3; private int maxQps_; /** + * + * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -4637,6 +5445,7 @@ public java.lang.String getDisplayName() {
    * 
* * int32 max_qps = 3; + * * @return The maxQps. */ @java.lang.Override @@ -4647,34 +5456,42 @@ public int getMaxQps() { public static final int STARTING_URLS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList startingUrls_; /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList - getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList getStartingUrlsList() { return startingUrls_; } /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -4682,28 +5499,34 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString - getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } public static final int AUTHENTICATION_FIELD_NUMBER = 5; private com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication_; /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * + * * @return Whether the authentication field is set. */ @java.lang.Override @@ -4711,92 +5534,121 @@ public boolean hasAuthentication() { return authentication_ != null; } /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * + * * @return The authentication. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getAuthentication() { - return authentication_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance() : authentication_; + return authentication_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance() + : authentication_; } /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder + getAuthenticationOrBuilder() { return getAuthentication(); } public static final int USER_AGENT_FIELD_NUMBER = 6; private int userAgent_; /** + * + * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; + * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override public int getUserAgentValue() { + @java.lang.Override + public int getUserAgentValue() { return userAgent_; } /** + * + * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; + * * @return The userAgent. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent getUserAgent() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = + com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.UNRECOGNIZED + : result; } public static final int BLACKLIST_PATTERNS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList blacklistPatterns_; /** + * + * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; + * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList - getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { return blacklistPatterns_; } /** + * + * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; + * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** + * + * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -4804,28 +5656,33 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** + * + * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString - getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } public static final int SCHEDULE_FIELD_NUMBER = 8; private com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule_; /** + * + * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; + * * @return Whether the schedule field is set. */ @java.lang.Override @@ -4833,18 +5690,25 @@ public boolean hasSchedule() { return schedule_ != null; } /** + * + * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; + * * @return The schedule. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getSchedule() { - return schedule_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() : schedule_; + return schedule_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() + : schedule_; } /** + * + * *
    * The schedule of the ScanConfig.
    * 
@@ -4852,43 +5716,64 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getSchedul * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder + getScheduleOrBuilder() { return getSchedule(); } public static final int TARGET_PLATFORMS_FIELD_NUMBER = 9; private java.util.List targetPlatforms_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform> targetPlatforms_converter_ = + java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform> + targetPlatforms_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>() { - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform convert(java.lang.Integer from) { + java.lang.Integer, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform convert( + java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform.valueOf(from); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform result = + com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform.valueOf( + from); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform + .UNRECOGNIZED + : result; } }; /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return A list containing the targetPlatforms. */ @java.lang.Override - public java.util.List getTargetPlatformsList() { + public java.util.List + getTargetPlatformsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>(targetPlatforms_, targetPlatforms_converter_); + java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>( + targetPlatforms_, targetPlatforms_converter_); } /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return The count of targetPlatforms. */ @java.lang.Override @@ -4896,40 +5781,55 @@ public int getTargetPlatformsCount() { return targetPlatforms_.size(); } /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms(int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms( + int index) { return targetPlatforms_converter_.convert(targetPlatforms_.get(index)); } /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return A list containing the enum numeric values on the wire for targetPlatforms. */ @java.lang.Override - public java.util.List - getTargetPlatformsValueList() { + public java.util.List getTargetPlatformsValueList() { return targetPlatforms_; } /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ @@ -4937,45 +5837,67 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getT public int getTargetPlatformsValue(int index) { return targetPlatforms_.get(index); } + private int targetPlatformsMemoizedSerializedSize; public static final int EXPORT_TO_SECURITY_COMMAND_CENTER_FIELD_NUMBER = 10; private int exportToSecurityCommandCenter_; /** + * + * *
    * Controls export of scan configurations and results to Cloud Security
    * Command Center.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ - @java.lang.Override public int getExportToSecurityCommandCenterValue() { + @java.lang.Override + public int getExportToSecurityCommandCenterValue() { return exportToSecurityCommandCenter_; } /** + * + * *
    * Controls export of scan configurations and results to Cloud Security
    * Command Center.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @return The exportToSecurityCommandCenter. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter + getExportToSecurityCommandCenter() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.valueOf(exportToSecurityCommandCenter_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.valueOf( + exportToSecurityCommandCenter_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter + .UNRECOGNIZED + : result; } public static final int LATEST_RUN_FIELD_NUMBER = 11; private com.google.cloud.websecurityscanner.v1beta.ScanRun latestRun_; /** + * + * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; + * * @return Whether the latestRun field is set. */ @java.lang.Override @@ -4983,18 +5905,25 @@ public boolean hasLatestRun() { return latestRun_ != null; } /** + * + * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; + * * @return The latestRun. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun getLatestRun() { - return latestRun_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() : latestRun_; + return latestRun_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() + : latestRun_; } /** + * + * *
    * Latest ScanRun if available.
    * 
@@ -5009,31 +5938,43 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getLatestRunO public static final int RISK_LEVEL_FIELD_NUMBER = 12; private int riskLevel_; /** + * + * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; + * * @return The enum numeric value on the wire for riskLevel. */ - @java.lang.Override public int getRiskLevelValue() { + @java.lang.Override + public int getRiskLevelValue() { return riskLevel_; } /** + * + * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; + * * @return The riskLevel. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel getRiskLevel() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel getRiskLevel() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.valueOf(riskLevel_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = + com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.valueOf(riskLevel_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5045,8 +5986,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); @@ -5063,7 +6003,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (authentication_ != null) { output.writeMessage(5, getAuthentication()); } - if (userAgent_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { + if (userAgent_ + != com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED + .getNumber()) { output.writeEnum(6, userAgent_); } for (int i = 0; i < blacklistPatterns_.size(); i++) { @@ -5079,13 +6021,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < targetPlatforms_.size(); i++) { output.writeEnumNoTag(targetPlatforms_.get(i)); } - if (exportToSecurityCommandCenter_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED.getNumber()) { + if (exportToSecurityCommandCenter_ + != com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter + .EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED + .getNumber()) { output.writeEnum(10, exportToSecurityCommandCenter_); } if (latestRun_ != null) { output.writeMessage(11, getLatestRun()); } - if (riskLevel_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED.getNumber()) { + if (riskLevel_ + != com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED + .getNumber()) { output.writeEnum(12, riskLevel_); } unknownFields.writeTo(output); @@ -5104,8 +6051,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (maxQps_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxQps_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxQps_); } { int dataSize = 0; @@ -5116,12 +6062,12 @@ public int getSerializedSize() { size += 1 * getStartingUrlsList().size(); } if (authentication_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAuthentication()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthentication()); } - if (userAgent_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, userAgent_); + if (userAgent_ + != com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.USER_AGENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, userAgent_); } { int dataSize = 0; @@ -5132,32 +6078,35 @@ public int getSerializedSize() { size += 1 * getBlacklistPatternsList().size(); } if (schedule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSchedule()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSchedule()); } { int dataSize = 0; for (int i = 0; i < targetPlatforms_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(targetPlatforms_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(targetPlatforms_.get(i)); } size += dataSize; - if (!getTargetPlatformsList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }targetPlatformsMemoizedSerializedSize = dataSize; + if (!getTargetPlatformsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + targetPlatformsMemoizedSerializedSize = dataSize; } - if (exportToSecurityCommandCenter_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, exportToSecurityCommandCenter_); + if (exportToSecurityCommandCenter_ + != com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter + .EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(10, exportToSecurityCommandCenter_); } if (latestRun_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getLatestRun()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLatestRun()); } - if (riskLevel_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, riskLevel_); + if (riskLevel_ + != com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.RISK_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, riskLevel_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5167,40 +6116,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfig other = (com.google.cloud.websecurityscanner.v1beta.ScanConfig) obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfig other = + (com.google.cloud.websecurityscanner.v1beta.ScanConfig) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (getMaxQps() - != other.getMaxQps()) return false; - if (!getStartingUrlsList() - .equals(other.getStartingUrlsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (getMaxQps() != other.getMaxQps()) return false; + if (!getStartingUrlsList().equals(other.getStartingUrlsList())) return false; if (hasAuthentication() != other.hasAuthentication()) return false; if (hasAuthentication()) { - if (!getAuthentication() - .equals(other.getAuthentication())) return false; + if (!getAuthentication().equals(other.getAuthentication())) return false; } if (userAgent_ != other.userAgent_) return false; - if (!getBlacklistPatternsList() - .equals(other.getBlacklistPatternsList())) return false; + if (!getBlacklistPatternsList().equals(other.getBlacklistPatternsList())) return false; if (hasSchedule() != other.hasSchedule()) return false; if (hasSchedule()) { - if (!getSchedule() - .equals(other.getSchedule())) return false; + if (!getSchedule().equals(other.getSchedule())) return false; } if (!targetPlatforms_.equals(other.targetPlatforms_)) return false; if (exportToSecurityCommandCenter_ != other.exportToSecurityCommandCenter_) return false; if (hasLatestRun() != other.hasLatestRun()) return false; if (hasLatestRun()) { - if (!getLatestRun() - .equals(other.getLatestRun())) return false; + if (!getLatestRun().equals(other.getLatestRun())) return false; } if (riskLevel_ != other.riskLevel_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -5256,117 +6198,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ScanConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A ScanConfig resource contains the configurations to launch a scan.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfig) com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder.class); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.class, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.newBuilder() @@ -5374,16 +6326,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -5427,9 +6378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigProto + .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; } @java.lang.Override @@ -5448,7 +6399,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig buildPartial() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig result = new com.google.cloud.websecurityscanner.v1beta.ScanConfig(this); + com.google.cloud.websecurityscanner.v1beta.ScanConfig result = + new com.google.cloud.websecurityscanner.v1beta.ScanConfig(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -5494,38 +6446,39 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfig) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfig) other); } else { super.mergeFrom(other); return this; @@ -5533,7 +6486,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfig other) { - if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -5612,7 +6566,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.ScanConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5621,10 +6576,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5632,13 +6590,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -5647,6 +6605,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5654,15 +6614,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -5670,6 +6629,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5677,20 +6638,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5698,15 +6661,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5714,16 +6680,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -5731,18 +6697,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -5751,20 +6719,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -5772,61 +6741,70 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } - private int maxQps_ ; + private int maxQps_; /** + * + * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -5835,6 +6813,7 @@ public Builder setDisplayNameBytes(
      * 
* * int32 max_qps = 3; + * * @return The maxQps. */ @java.lang.Override @@ -5842,6 +6821,8 @@ public int getMaxQps() { return maxQps_; } /** + * + * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -5850,16 +6831,19 @@ public int getMaxQps() {
      * 
* * int32 max_qps = 3; + * * @param value The maxQps to set. * @return This builder for chaining. */ public Builder setMaxQps(int value) { - + maxQps_ = value; onChanged(); return this; } /** + * + * *
      * The maximum QPS during scanning. A valid value ranges from 5 to 20
      * inclusively. If the field is unspecified or its value is set 0, server will
@@ -5868,51 +6852,62 @@ public Builder setMaxQps(int value) {
      * 
* * int32 max_qps = 3; + * * @return This builder for chaining. */ public Builder clearMaxQps() { - + maxQps_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList startingUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList startingUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureStartingUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { startingUrls_ = new com.google.protobuf.LazyStringArrayList(startingUrls_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the startingUrls. */ - public com.google.protobuf.ProtocolStringList - getStartingUrlsList() { + public com.google.protobuf.ProtocolStringList getStartingUrlsList() { return startingUrls_.getUnmodifiableView(); } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of startingUrls. */ public int getStartingUrlsCount() { return startingUrls_.size(); } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The startingUrls at the given index. */ @@ -5920,80 +6915,90 @@ public java.lang.String getStartingUrls(int index) { return startingUrls_.get(index); } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - public com.google.protobuf.ByteString - getStartingUrlsBytes(int index) { + public com.google.protobuf.ByteString getStartingUrlsBytes(int index) { return startingUrls_.getByteString(index); } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The startingUrls to set. * @return This builder for chaining. */ - public Builder setStartingUrls( - int index, java.lang.String value) { + public Builder setStartingUrls(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrls( - java.lang.String value) { + public Builder addStartingUrls(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStartingUrlsIsMutable(); + throw new NullPointerException(); + } + ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); return this; } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The startingUrls to add. * @return This builder for chaining. */ - public Builder addAllStartingUrls( - java.lang.Iterable values) { + public Builder addAllStartingUrls(java.lang.Iterable values) { ensureStartingUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, startingUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, startingUrls_); onChanged(); return this; } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearStartingUrls() { @@ -6003,20 +7008,22 @@ public Builder clearStartingUrls() { return this; } /** + * + * *
      * Required. The starting URLs from which the scanner finds site pages.
      * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrlsBytes( - com.google.protobuf.ByteString value) { + public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStartingUrlsIsMutable(); startingUrls_.add(value); onChanged(); @@ -6025,44 +7032,63 @@ public Builder addStartingUrlsBytes( private com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder> authenticationBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder> + authenticationBuilder_; /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * + * * @return Whether the authentication field is set. */ public boolean hasAuthentication() { return authenticationBuilder_ != null || authentication_ != null; } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * + * * @return The authentication. */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getAuthentication() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + getAuthentication() { if (authenticationBuilder_ == null) { - return authentication_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance() : authentication_; + return authentication_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .getDefaultInstance() + : authentication_; } else { return authenticationBuilder_.getMessage(); } } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * */ - public Builder setAuthentication(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication value) { + public Builder setAuthentication( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6076,15 +7102,19 @@ public Builder setAuthentication(com.google.cloud.websecurityscanner.v1beta.Scan return this; } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * */ public Builder setAuthentication( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder builderForValue) { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder + builderForValue) { if (authenticationBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -6095,18 +7125,25 @@ public Builder setAuthentication( return this; } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * */ - public Builder mergeAuthentication(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication value) { + public Builder mergeAuthentication( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication value) { if (authenticationBuilder_ == null) { if (authentication_ != null) { authentication_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.newBuilder(authentication_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.newBuilder( + authentication_) + .mergeFrom(value) + .buildPartial(); } else { authentication_ = value; } @@ -6118,12 +7155,15 @@ public Builder mergeAuthentication(com.google.cloud.websecurityscanner.v1beta.Sc return this; } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * */ public Builder clearAuthentication() { if (authenticationBuilder_ == null) { @@ -6137,51 +7177,67 @@ public Builder clearAuthentication() { return this; } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder getAuthenticationBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder + getAuthenticationBuilder() { + onChanged(); return getAuthenticationFieldBuilder().getBuilder(); } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder + getAuthenticationOrBuilder() { if (authenticationBuilder_ != null) { return authenticationBuilder_.getMessageOrBuilder(); } else { - return authentication_ == null ? - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance() : authentication_; + return authentication_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .getDefaultInstance() + : authentication_; } } /** + * + * *
      * The authentication configuration. If specified, service will use the
      * authentication configuration during scanning.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder> getAuthenticationFieldBuilder() { if (authenticationBuilder_ == null) { - authenticationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder>( - getAuthentication(), - getParentForChildren(), - isClean()); + authenticationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder>( + getAuthentication(), getParentForChildren(), isClean()); authentication_ = null; } return authenticationBuilder_; @@ -6189,117 +7245,147 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBui private int userAgent_ = 0; /** + * + * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; + * * @return The enum numeric value on the wire for userAgent. */ - @java.lang.Override public int getUserAgentValue() { + @java.lang.Override + public int getUserAgentValue() { return userAgent_; } /** + * + * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; + * * @param value The enum numeric value on the wire for userAgent to set. * @return This builder for chaining. */ public Builder setUserAgentValue(int value) { - + userAgent_ = value; onChanged(); return this; } /** + * + * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; + * * @return The userAgent. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent getUserAgent() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.valueOf(userAgent_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = + com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.valueOf(userAgent_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.UNRECOGNIZED + : result; } /** + * + * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; + * * @param value The userAgent to set. * @return This builder for chaining. */ - public Builder setUserAgent(com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent value) { + public Builder setUserAgent( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent value) { if (value == null) { throw new NullPointerException(); } - + userAgent_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The user agent used during scanning.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; + * * @return This builder for chaining. */ public Builder clearUserAgent() { - + userAgent_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList blacklistPatterns_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureBlacklistPatternsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(blacklistPatterns_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @return A list containing the blacklistPatterns. */ - public com.google.protobuf.ProtocolStringList - getBlacklistPatternsList() { + public com.google.protobuf.ProtocolStringList getBlacklistPatternsList() { return blacklistPatterns_.getUnmodifiableView(); } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @return The count of blacklistPatterns. */ public int getBlacklistPatternsCount() { return blacklistPatterns_.size(); } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ @@ -6307,85 +7393,95 @@ public java.lang.String getBlacklistPatterns(int index) { return blacklistPatterns_.get(index); } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - public com.google.protobuf.ByteString - getBlacklistPatternsBytes(int index) { + public com.google.protobuf.ByteString getBlacklistPatternsBytes(int index) { return blacklistPatterns_.getByteString(index); } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param index The index to set the value at. * @param value The blacklistPatterns to set. * @return This builder for chaining. */ - public Builder setBlacklistPatterns( - int index, java.lang.String value) { + public Builder setBlacklistPatterns(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.set(index, value); onChanged(); return this; } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param value The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatterns( - java.lang.String value) { + public Builder addBlacklistPatterns(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlacklistPatternsIsMutable(); + throw new NullPointerException(); + } + ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); return this; } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param values The blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addAllBlacklistPatterns( - java.lang.Iterable values) { + public Builder addAllBlacklistPatterns(java.lang.Iterable values) { ensureBlacklistPatternsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blacklistPatterns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blacklistPatterns_); onChanged(); return this; } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @return This builder for chaining. */ public Builder clearBlacklistPatterns() { @@ -6395,21 +7491,23 @@ public Builder clearBlacklistPatterns() { return this; } /** + * + * *
      * The blacklist URL patterns as described in
      * https://cloud.google.com/security-scanner/docs/excluded-urls
      * 
* * repeated string blacklist_patterns = 7; + * * @param value The bytes of the blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatternsBytes( - com.google.protobuf.ByteString value) { + public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); onChanged(); @@ -6418,41 +7516,55 @@ public Builder addBlacklistPatternsBytes( private com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder> scheduleBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder> + scheduleBuilder_; /** + * + * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; + * * @return Whether the schedule field is set. */ public boolean hasSchedule() { return scheduleBuilder_ != null || schedule_ != null; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; + * * @return The schedule. */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getSchedule() { if (scheduleBuilder_ == null) { - return schedule_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() : schedule_; + return schedule_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() + : schedule_; } else { return scheduleBuilder_.getMessage(); } } /** + * + * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ - public Builder setSchedule(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule value) { + public Builder setSchedule( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule value) { if (scheduleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6466,6 +7578,8 @@ public Builder setSchedule(com.google.cloud.websecurityscanner.v1beta.ScanConfig return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -6484,17 +7598,22 @@ public Builder setSchedule( return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ - public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule value) { + public Builder mergeSchedule( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule value) { if (scheduleBuilder_ == null) { if (schedule_ != null) { schedule_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.newBuilder(schedule_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.newBuilder(schedule_) + .mergeFrom(value) + .buildPartial(); } else { schedule_ = value; } @@ -6506,6 +7625,8 @@ public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1beta.ScanConf return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -6524,33 +7645,42 @@ public Builder clearSchedule() { return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder getScheduleBuilder() { - + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder + getScheduleBuilder() { + onChanged(); return getScheduleFieldBuilder().getBuilder(); } /** + * + * *
      * The schedule of the ScanConfig.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder + getScheduleOrBuilder() { if (scheduleBuilder_ != null) { return scheduleBuilder_.getMessageOrBuilder(); } else { - return schedule_ == null ? - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() : schedule_; + return schedule_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() + : schedule_; } } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -6558,21 +7688,24 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder g * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder> getScheduleFieldBuilder() { if (scheduleBuilder_ == null) { - scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder>( - getSchedule(), - getParentForChildren(), - isClean()); + scheduleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder>( + getSchedule(), getParentForChildren(), isClean()); schedule_ = null; } return scheduleBuilder_; } - private java.util.List targetPlatforms_ = - java.util.Collections.emptyList(); + private java.util.List targetPlatforms_ = java.util.Collections.emptyList(); + private void ensureTargetPlatformsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { targetPlatforms_ = new java.util.ArrayList(targetPlatforms_); @@ -6580,50 +7713,73 @@ private void ensureTargetPlatformsIsMutable() { } } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return A list containing the targetPlatforms. */ - public java.util.List getTargetPlatformsList() { + public java.util.List + getTargetPlatformsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>(targetPlatforms_, targetPlatforms_converter_); + java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>( + targetPlatforms_, targetPlatforms_converter_); } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return The count of targetPlatforms. */ public int getTargetPlatformsCount() { return targetPlatforms_.size(); } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms(int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms( + int index) { return targetPlatforms_converter_.convert(targetPlatforms_.get(index)); } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param index The index to set the value at. * @param value The targetPlatforms to set. * @return This builder for chaining. @@ -6639,16 +7795,22 @@ public Builder setTargetPlatforms( return this; } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param value The targetPlatforms to add. * @return This builder for chaining. */ - public Builder addTargetPlatforms(com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform value) { + public Builder addTargetPlatforms( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform value) { if (value == null) { throw new NullPointerException(); } @@ -6658,17 +7820,24 @@ public Builder addTargetPlatforms(com.google.cloud.websecurityscanner.v1beta.Sca return this; } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param values The targetPlatforms to add. * @return This builder for chaining. */ public Builder addAllTargetPlatforms( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform> + values) { ensureTargetPlatformsIsMutable(); for (com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform value : values) { targetPlatforms_.add(value.getNumber()); @@ -6677,12 +7846,17 @@ public Builder addAllTargetPlatforms( return this; } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return This builder for chaining. */ public Builder clearTargetPlatforms() { @@ -6692,25 +7866,34 @@ public Builder clearTargetPlatforms() { return this; } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return A list containing the enum numeric values on the wire for targetPlatforms. */ - public java.util.List - getTargetPlatformsValueList() { + public java.util.List getTargetPlatformsValueList() { return java.util.Collections.unmodifiableList(targetPlatforms_); } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ @@ -6718,30 +7901,39 @@ public int getTargetPlatformsValue(int index) { return targetPlatforms_.get(index); } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param index The index to set the value at. * @param value The enum numeric value on the wire for targetPlatforms to set. * @return This builder for chaining. */ - public Builder setTargetPlatformsValue( - int index, int value) { + public Builder setTargetPlatformsValue(int index, int value) { ensureTargetPlatformsIsMutable(); targetPlatforms_.set(index, value); onChanged(); return this; } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param value The enum numeric value on the wire for targetPlatforms to add. * @return This builder for chaining. */ @@ -6752,17 +7944,21 @@ public Builder addTargetPlatformsValue(int value) { return this; } /** + * + * *
      * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
      * used as a default.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param values The enum numeric values on the wire for targetPlatforms to add. * @return This builder for chaining. */ - public Builder addAllTargetPlatformsValue( - java.lang.Iterable values) { + public Builder addAllTargetPlatformsValue(java.lang.Iterable values) { ensureTargetPlatformsIsMutable(); for (int value : values) { targetPlatforms_.add(value); @@ -6773,78 +7969,111 @@ public Builder addAllTargetPlatformsValue( private int exportToSecurityCommandCenter_ = 0; /** + * + * *
      * Controls export of scan configurations and results to Cloud Security
      * Command Center.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ - @java.lang.Override public int getExportToSecurityCommandCenterValue() { + @java.lang.Override + public int getExportToSecurityCommandCenterValue() { return exportToSecurityCommandCenter_; } /** + * + * *
      * Controls export of scan configurations and results to Cloud Security
      * Command Center.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @param value The enum numeric value on the wire for exportToSecurityCommandCenter to set. * @return This builder for chaining. */ public Builder setExportToSecurityCommandCenterValue(int value) { - + exportToSecurityCommandCenter_ = value; onChanged(); return this; } /** + * + * *
      * Controls export of scan configurations and results to Cloud Security
      * Command Center.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @return The exportToSecurityCommandCenter. */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter + getExportToSecurityCommandCenter() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.valueOf(exportToSecurityCommandCenter_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter + .valueOf(exportToSecurityCommandCenter_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter + .UNRECOGNIZED + : result; } /** + * + * *
      * Controls export of scan configurations and results to Cloud Security
      * Command Center.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @param value The exportToSecurityCommandCenter to set. * @return This builder for chaining. */ - public Builder setExportToSecurityCommandCenter(com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter value) { + public Builder setExportToSecurityCommandCenter( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter value) { if (value == null) { throw new NullPointerException(); } - + exportToSecurityCommandCenter_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Controls export of scan configurations and results to Cloud Security
      * Command Center.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @return This builder for chaining. */ public Builder clearExportToSecurityCommandCenter() { - + exportToSecurityCommandCenter_ = 0; onChanged(); return this; @@ -6852,34 +8081,47 @@ public Builder clearExportToSecurityCommandCenter() { private com.google.cloud.websecurityscanner.v1beta.ScanRun latestRun_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> latestRunBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanRun, + com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> + latestRunBuilder_; /** + * + * *
      * Latest ScanRun if available.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; + * * @return Whether the latestRun field is set. */ public boolean hasLatestRun() { return latestRunBuilder_ != null || latestRun_ != null; } /** + * + * *
      * Latest ScanRun if available.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; + * * @return The latestRun. */ public com.google.cloud.websecurityscanner.v1beta.ScanRun getLatestRun() { if (latestRunBuilder_ == null) { - return latestRun_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() : latestRun_; + return latestRun_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() + : latestRun_; } else { return latestRunBuilder_.getMessage(); } } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6900,6 +8142,8 @@ public Builder setLatestRun(com.google.cloud.websecurityscanner.v1beta.ScanRun v return this; } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6918,6 +8162,8 @@ public Builder setLatestRun( return this; } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6928,7 +8174,9 @@ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1beta.ScanRun if (latestRunBuilder_ == null) { if (latestRun_ != null) { latestRun_ = - com.google.cloud.websecurityscanner.v1beta.ScanRun.newBuilder(latestRun_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanRun.newBuilder(latestRun_) + .mergeFrom(value) + .buildPartial(); } else { latestRun_ = value; } @@ -6940,6 +8188,8 @@ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1beta.ScanRun return this; } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6958,6 +8208,8 @@ public Builder clearLatestRun() { return this; } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6965,11 +8217,13 @@ public Builder clearLatestRun() { * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; */ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder getLatestRunBuilder() { - + onChanged(); return getLatestRunFieldBuilder().getBuilder(); } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6980,11 +8234,14 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getLatestRunO if (latestRunBuilder_ != null) { return latestRunBuilder_.getMessageOrBuilder(); } else { - return latestRun_ == null ? - com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() : latestRun_; + return latestRun_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() + : latestRun_; } } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6992,14 +8249,17 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getLatestRunO * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanRun, + com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder> getLatestRunFieldBuilder() { if (latestRunBuilder_ == null) { - latestRunBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRun, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder>( - getLatestRun(), - getParentForChildren(), - isClean()); + latestRunBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanRun, + com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder>( + getLatestRun(), getParentForChildren(), isClean()); latestRun_ = null; } return latestRunBuilder_; @@ -7007,80 +8267,100 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getLatestRunO private int riskLevel_ = 0; /** + * + * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; + * * @return The enum numeric value on the wire for riskLevel. */ - @java.lang.Override public int getRiskLevelValue() { + @java.lang.Override + public int getRiskLevelValue() { return riskLevel_; } /** + * + * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; + * * @param value The enum numeric value on the wire for riskLevel to set. * @return This builder for chaining. */ public Builder setRiskLevelValue(int value) { - + riskLevel_ = value; onChanged(); return this; } /** + * + * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; + * * @return The riskLevel. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel getRiskLevel() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.valueOf(riskLevel_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = + com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.valueOf(riskLevel_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.UNRECOGNIZED + : result; } /** + * + * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; + * * @param value The riskLevel to set. * @return This builder for chaining. */ - public Builder setRiskLevel(com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel value) { + public Builder setRiskLevel( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel value) { if (value == null) { throw new NullPointerException(); } - + riskLevel_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The risk level selected for the scan
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; + * * @return This builder for chaining. */ public Builder clearRiskLevel() { - + riskLevel_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7090,12 +8370,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfig) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfig) private static final com.google.cloud.websecurityscanner.v1beta.ScanConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfig(); } @@ -7104,16 +8384,16 @@ public static com.google.cloud.websecurityscanner.v1beta.ScanConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7128,6 +8408,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java similarity index 75% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java index 53863ec2..2f1c0033 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_config_error.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Defines a custom error message used by CreateScanConfig and UpdateScanConfig
  * APIs when scan configuration validation fails. It is also reported as part of
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfigError}
  */
-public final class ScanConfigError extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ScanConfigError extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanConfigError)
     ScanConfigErrorOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ScanConfigError.newBuilder() to construct.
   private ScanConfigError(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ScanConfigError() {
     code_ = 0;
     fieldName_ = "";
@@ -29,16 +47,15 @@ private ScanConfigError() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ScanConfigError();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ScanConfigError(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,25 +74,27 @@ private ScanConfigError(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            code_ = rawValue;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              code_ = rawValue;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            fieldName_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              fieldName_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,27 +102,31 @@ private ScanConfigError(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto
+        .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto
+        .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.class, com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.class,
+            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Output only.
    * Defines an error reason code.
@@ -112,9 +135,10 @@ private ScanConfigError(
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanConfigError.Code}
    */
-  public enum Code
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Code implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * There is no error.
      * 
@@ -123,6 +147,8 @@ public enum Code */ CODE_UNSPECIFIED(0, 0), /** + * + * *
      * Indicates an internal server error.
      * Please DO NOT USE THIS ERROR CODE unless the root cause is truly unknown.
@@ -132,6 +158,8 @@ public enum Code
      */
     INTERNAL_ERROR(2, 1),
     /**
+     *
+     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot validate the scan
      * settings due to an App Engine API backend error.
@@ -141,6 +169,8 @@ public enum Code
      */
     APPENGINE_API_BACKEND_ERROR(3, 2),
     /**
+     *
+     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot access the
      * App Engine API to validate scan settings.
@@ -150,6 +180,8 @@ public enum Code
      */
     APPENGINE_API_NOT_ACCESSIBLE(4, 3),
     /**
+     *
+     *
      * 
      * One of the seed URLs is an App Engine URL but the Default Host of the
      * App Engine is not set.
@@ -159,6 +191,8 @@ public enum Code
      */
     APPENGINE_DEFAULT_HOST_MISSING(5, 4),
     /**
+     *
+     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -167,6 +201,8 @@ public enum Code */ CANNOT_USE_GOOGLE_COM_ACCOUNT(6, 6), /** + * + * *
      * The account of the scan creator can not be used for scanning.
      * 
@@ -175,6 +211,8 @@ public enum Code */ CANNOT_USE_OWNER_ACCOUNT(7, 7), /** + * + * *
      * This scan targets Compute Engine, but we cannot validate scan settings
      * due to a Compute Engine API backend error.
@@ -184,6 +222,8 @@ public enum Code
      */
     COMPUTE_API_BACKEND_ERROR(8, 8),
     /**
+     *
+     *
      * 
      * This scan targets Compute Engine, but we cannot access the Compute Engine
      * API to validate the scan settings.
@@ -193,6 +233,8 @@ public enum Code
      */
     COMPUTE_API_NOT_ACCESSIBLE(9, 9),
     /**
+     *
+     *
      * 
      * The Custom Login URL does not belong to the current project.
      * 
@@ -201,6 +243,8 @@ public enum Code */ CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT(10, 10), /** + * + * *
      * The Custom Login URL is malformed (can not be parsed).
      * 
@@ -209,6 +253,8 @@ public enum Code */ CUSTOM_LOGIN_URL_MALFORMED(11, 11), /** + * + * *
      * The Custom Login URL is mapped to a non-routable IP address in DNS.
      * 
@@ -217,6 +263,8 @@ public enum Code */ CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS(12, 12), /** + * + * *
      * The Custom Login URL is mapped to an IP address which is not reserved for
      * the current project.
@@ -226,6 +274,8 @@ public enum Code
      */
     CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS(13, 13),
     /**
+     *
+     *
      * 
      * The Custom Login URL has a non-routable IP address.
      * 
@@ -234,6 +284,8 @@ public enum Code */ CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS(14, 14), /** + * + * *
      * The Custom Login URL has an IP address which is not reserved for the
      * current project.
@@ -243,6 +295,8 @@ public enum Code
      */
     CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS(15, 15),
     /**
+     *
+     *
      * 
      * Another scan with the same name (case-sensitive) already exists.
      * 
@@ -251,6 +305,8 @@ public enum Code */ DUPLICATE_SCAN_NAME(16, 16), /** + * + * *
      * A field is set to an invalid value.
      * 
@@ -259,6 +315,8 @@ public enum Code */ INVALID_FIELD_VALUE(17, 18), /** + * + * *
      * There was an error trying to authenticate to the scan target.
      * 
@@ -267,6 +325,8 @@ public enum Code */ FAILED_TO_AUTHENTICATE_TO_TARGET(18, 19), /** + * + * *
      * Finding type value is not specified in the list findings request.
      * 
@@ -275,6 +335,8 @@ public enum Code */ FINDING_TYPE_UNSPECIFIED(19, 20), /** + * + * *
      * Scan targets Compute Engine, yet current project was not whitelisted for
      * Google Compute Engine Scanning Alpha access.
@@ -284,6 +346,8 @@ public enum Code
      */
     FORBIDDEN_TO_SCAN_COMPUTE(20, 21),
     /**
+     *
+     *
      * 
      * User tries to update managed scan
      * 
@@ -292,6 +356,8 @@ public enum Code */ FORBIDDEN_UPDATE_TO_MANAGED_SCAN(21, 43), /** + * + * *
      * The supplied filter is malformed. For example, it can not be parsed, does
      * not have a filter type in expression, or the same filter type appears
@@ -302,6 +368,8 @@ public enum Code
      */
     MALFORMED_FILTER(22, 22),
     /**
+     *
+     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -310,6 +378,8 @@ public enum Code */ MALFORMED_RESOURCE_NAME(23, 23), /** + * + * *
      * The current project is not in an active state.
      * 
@@ -318,6 +388,8 @@ public enum Code */ PROJECT_INACTIVE(24, 24), /** + * + * *
      * A required field is not set.
      * 
@@ -326,6 +398,8 @@ public enum Code */ REQUIRED_FIELD(25, 25), /** + * + * *
      * Project id, scanconfig id, scanrun id, or finding id are not consistent
      * with each other in resource name.
@@ -335,6 +409,8 @@ public enum Code
      */
     RESOURCE_NAME_INCONSISTENT(26, 26),
     /**
+     *
+     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -343,6 +419,8 @@ public enum Code */ SCAN_ALREADY_RUNNING(27, 27), /** + * + * *
      * The scan that was requested to be stopped is not running.
      * 
@@ -351,6 +429,8 @@ public enum Code */ SCAN_NOT_RUNNING(28, 28), /** + * + * *
      * One of the seed URLs does not belong to the current project.
      * 
@@ -359,6 +439,8 @@ public enum Code */ SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT(29, 29), /** + * + * *
      * One of the seed URLs is malformed (can not be parsed).
      * 
@@ -367,6 +449,8 @@ public enum Code */ SEED_URL_MALFORMED(30, 30), /** + * + * *
      * One of the seed URLs is mapped to a non-routable IP address in DNS.
      * 
@@ -375,6 +459,8 @@ public enum Code */ SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS(31, 31), /** + * + * *
      * One of the seed URLs is mapped to an IP address which is not reserved
      * for the current project.
@@ -384,6 +470,8 @@ public enum Code
      */
     SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS(32, 32),
     /**
+     *
+     *
      * 
      * One of the seed URLs has on-routable IP address.
      * 
@@ -392,6 +480,8 @@ public enum Code */ SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS(33, 33), /** + * + * *
      * One of the seed URLs has an IP address that is not reserved
      * for the current project.
@@ -401,6 +491,8 @@ public enum Code
      */
     SEED_URL_HAS_UNRESERVED_IP_ADDRESS(34, 35),
     /**
+     *
+     *
      * 
      * The Cloud Security Scanner service account is not configured under the
      * project.
@@ -410,6 +502,8 @@ public enum Code
      */
     SERVICE_ACCOUNT_NOT_CONFIGURED(35, 36),
     /**
+     *
+     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -418,6 +512,8 @@ public enum Code */ TOO_MANY_SCANS(36, 37), /** + * + * *
      * Resolving the details of the current project fails.
      * 
@@ -426,6 +522,8 @@ public enum Code */ UNABLE_TO_RESOLVE_PROJECT_INFO(37, 38), /** + * + * *
      * One or more blacklist patterns were in the wrong format.
      * 
@@ -434,6 +532,8 @@ public enum Code */ UNSUPPORTED_BLACKLIST_PATTERN_FORMAT(38, 39), /** + * + * *
      * The supplied filter is not supported.
      * 
@@ -442,6 +542,8 @@ public enum Code */ UNSUPPORTED_FILTER(39, 40), /** + * + * *
      * The supplied finding type is not supported. For example, we do not
      * provide findings of the given finding type.
@@ -451,6 +553,8 @@ public enum Code
      */
     UNSUPPORTED_FINDING_TYPE(40, 41),
     /**
+     *
+     *
      * 
      * The URL scheme of one or more of the supplied URLs is not supported.
      * 
@@ -462,6 +566,8 @@ public enum Code ; /** + * + * *
      * There is no error.
      * 
@@ -470,6 +576,8 @@ public enum Code */ public static final Code OK = CODE_UNSPECIFIED; /** + * + * *
      * There is no error.
      * 
@@ -478,6 +586,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * There is no error.
      * 
@@ -486,6 +596,8 @@ public enum Code */ public static final int OK_VALUE = 0; /** + * + * *
      * Indicates an internal server error.
      * Please DO NOT USE THIS ERROR CODE unless the root cause is truly unknown.
@@ -495,6 +607,8 @@ public enum Code
      */
     public static final int INTERNAL_ERROR_VALUE = 1;
     /**
+     *
+     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot validate the scan
      * settings due to an App Engine API backend error.
@@ -504,6 +618,8 @@ public enum Code
      */
     public static final int APPENGINE_API_BACKEND_ERROR_VALUE = 2;
     /**
+     *
+     *
      * 
      * One of the seed URLs is an App Engine URL but we cannot access the
      * App Engine API to validate scan settings.
@@ -513,6 +629,8 @@ public enum Code
      */
     public static final int APPENGINE_API_NOT_ACCESSIBLE_VALUE = 3;
     /**
+     *
+     *
      * 
      * One of the seed URLs is an App Engine URL but the Default Host of the
      * App Engine is not set.
@@ -522,6 +640,8 @@ public enum Code
      */
     public static final int APPENGINE_DEFAULT_HOST_MISSING_VALUE = 4;
     /**
+     *
+     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -530,6 +650,8 @@ public enum Code */ public static final int CANNOT_USE_GOOGLE_COM_ACCOUNT_VALUE = 6; /** + * + * *
      * The account of the scan creator can not be used for scanning.
      * 
@@ -538,6 +660,8 @@ public enum Code */ public static final int CANNOT_USE_OWNER_ACCOUNT_VALUE = 7; /** + * + * *
      * This scan targets Compute Engine, but we cannot validate scan settings
      * due to a Compute Engine API backend error.
@@ -547,6 +671,8 @@ public enum Code
      */
     public static final int COMPUTE_API_BACKEND_ERROR_VALUE = 8;
     /**
+     *
+     *
      * 
      * This scan targets Compute Engine, but we cannot access the Compute Engine
      * API to validate the scan settings.
@@ -556,6 +682,8 @@ public enum Code
      */
     public static final int COMPUTE_API_NOT_ACCESSIBLE_VALUE = 9;
     /**
+     *
+     *
      * 
      * The Custom Login URL does not belong to the current project.
      * 
@@ -564,6 +692,8 @@ public enum Code */ public static final int CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT_VALUE = 10; /** + * + * *
      * The Custom Login URL is malformed (can not be parsed).
      * 
@@ -572,6 +702,8 @@ public enum Code */ public static final int CUSTOM_LOGIN_URL_MALFORMED_VALUE = 11; /** + * + * *
      * The Custom Login URL is mapped to a non-routable IP address in DNS.
      * 
@@ -580,6 +712,8 @@ public enum Code */ public static final int CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS_VALUE = 12; /** + * + * *
      * The Custom Login URL is mapped to an IP address which is not reserved for
      * the current project.
@@ -589,6 +723,8 @@ public enum Code
      */
     public static final int CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS_VALUE = 13;
     /**
+     *
+     *
      * 
      * The Custom Login URL has a non-routable IP address.
      * 
@@ -597,6 +733,8 @@ public enum Code */ public static final int CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS_VALUE = 14; /** + * + * *
      * The Custom Login URL has an IP address which is not reserved for the
      * current project.
@@ -606,6 +744,8 @@ public enum Code
      */
     public static final int CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS_VALUE = 15;
     /**
+     *
+     *
      * 
      * Another scan with the same name (case-sensitive) already exists.
      * 
@@ -614,6 +754,8 @@ public enum Code */ public static final int DUPLICATE_SCAN_NAME_VALUE = 16; /** + * + * *
      * A field is set to an invalid value.
      * 
@@ -622,6 +764,8 @@ public enum Code */ public static final int INVALID_FIELD_VALUE_VALUE = 18; /** + * + * *
      * There was an error trying to authenticate to the scan target.
      * 
@@ -630,6 +774,8 @@ public enum Code */ public static final int FAILED_TO_AUTHENTICATE_TO_TARGET_VALUE = 19; /** + * + * *
      * Finding type value is not specified in the list findings request.
      * 
@@ -638,6 +784,8 @@ public enum Code */ public static final int FINDING_TYPE_UNSPECIFIED_VALUE = 20; /** + * + * *
      * Scan targets Compute Engine, yet current project was not whitelisted for
      * Google Compute Engine Scanning Alpha access.
@@ -647,6 +795,8 @@ public enum Code
      */
     public static final int FORBIDDEN_TO_SCAN_COMPUTE_VALUE = 21;
     /**
+     *
+     *
      * 
      * User tries to update managed scan
      * 
@@ -655,6 +805,8 @@ public enum Code */ public static final int FORBIDDEN_UPDATE_TO_MANAGED_SCAN_VALUE = 43; /** + * + * *
      * The supplied filter is malformed. For example, it can not be parsed, does
      * not have a filter type in expression, or the same filter type appears
@@ -665,6 +817,8 @@ public enum Code
      */
     public static final int MALFORMED_FILTER_VALUE = 22;
     /**
+     *
+     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -673,6 +827,8 @@ public enum Code */ public static final int MALFORMED_RESOURCE_NAME_VALUE = 23; /** + * + * *
      * The current project is not in an active state.
      * 
@@ -681,6 +837,8 @@ public enum Code */ public static final int PROJECT_INACTIVE_VALUE = 24; /** + * + * *
      * A required field is not set.
      * 
@@ -689,6 +847,8 @@ public enum Code */ public static final int REQUIRED_FIELD_VALUE = 25; /** + * + * *
      * Project id, scanconfig id, scanrun id, or finding id are not consistent
      * with each other in resource name.
@@ -698,6 +858,8 @@ public enum Code
      */
     public static final int RESOURCE_NAME_INCONSISTENT_VALUE = 26;
     /**
+     *
+     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -706,6 +868,8 @@ public enum Code */ public static final int SCAN_ALREADY_RUNNING_VALUE = 27; /** + * + * *
      * The scan that was requested to be stopped is not running.
      * 
@@ -714,6 +878,8 @@ public enum Code */ public static final int SCAN_NOT_RUNNING_VALUE = 28; /** + * + * *
      * One of the seed URLs does not belong to the current project.
      * 
@@ -722,6 +888,8 @@ public enum Code */ public static final int SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT_VALUE = 29; /** + * + * *
      * One of the seed URLs is malformed (can not be parsed).
      * 
@@ -730,6 +898,8 @@ public enum Code */ public static final int SEED_URL_MALFORMED_VALUE = 30; /** + * + * *
      * One of the seed URLs is mapped to a non-routable IP address in DNS.
      * 
@@ -738,6 +908,8 @@ public enum Code */ public static final int SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS_VALUE = 31; /** + * + * *
      * One of the seed URLs is mapped to an IP address which is not reserved
      * for the current project.
@@ -747,6 +919,8 @@ public enum Code
      */
     public static final int SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS_VALUE = 32;
     /**
+     *
+     *
      * 
      * One of the seed URLs has on-routable IP address.
      * 
@@ -755,6 +929,8 @@ public enum Code */ public static final int SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS_VALUE = 33; /** + * + * *
      * One of the seed URLs has an IP address that is not reserved
      * for the current project.
@@ -764,6 +940,8 @@ public enum Code
      */
     public static final int SEED_URL_HAS_UNRESERVED_IP_ADDRESS_VALUE = 35;
     /**
+     *
+     *
      * 
      * The Cloud Security Scanner service account is not configured under the
      * project.
@@ -773,6 +951,8 @@ public enum Code
      */
     public static final int SERVICE_ACCOUNT_NOT_CONFIGURED_VALUE = 36;
     /**
+     *
+     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -781,6 +961,8 @@ public enum Code */ public static final int TOO_MANY_SCANS_VALUE = 37; /** + * + * *
      * Resolving the details of the current project fails.
      * 
@@ -789,6 +971,8 @@ public enum Code */ public static final int UNABLE_TO_RESOLVE_PROJECT_INFO_VALUE = 38; /** + * + * *
      * One or more blacklist patterns were in the wrong format.
      * 
@@ -797,6 +981,8 @@ public enum Code */ public static final int UNSUPPORTED_BLACKLIST_PATTERN_FORMAT_VALUE = 39; /** + * + * *
      * The supplied filter is not supported.
      * 
@@ -805,6 +991,8 @@ public enum Code */ public static final int UNSUPPORTED_FILTER_VALUE = 40; /** + * + * *
      * The supplied finding type is not supported. For example, we do not
      * provide findings of the given finding type.
@@ -814,6 +1002,8 @@ public enum Code
      */
     public static final int UNSUPPORTED_FINDING_TYPE_VALUE = 41;
     /**
+     *
+     *
      * 
      * The URL scheme of one or more of the supplied URLs is not supported.
      * 
@@ -822,7 +1012,6 @@ public enum Code */ public static final int UNSUPPORTED_URL_SCHEME_VALUE = 42; - public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( @@ -847,91 +1036,174 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: return CODE_UNSPECIFIED; - case 1: return INTERNAL_ERROR; - case 2: return APPENGINE_API_BACKEND_ERROR; - case 3: return APPENGINE_API_NOT_ACCESSIBLE; - case 4: return APPENGINE_DEFAULT_HOST_MISSING; - case 6: return CANNOT_USE_GOOGLE_COM_ACCOUNT; - case 7: return CANNOT_USE_OWNER_ACCOUNT; - case 8: return COMPUTE_API_BACKEND_ERROR; - case 9: return COMPUTE_API_NOT_ACCESSIBLE; - case 10: return CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; - case 11: return CUSTOM_LOGIN_URL_MALFORMED; - case 12: return CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; - case 13: return CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS; - case 14: return CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS; - case 15: return CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS; - case 16: return DUPLICATE_SCAN_NAME; - case 18: return INVALID_FIELD_VALUE; - case 19: return FAILED_TO_AUTHENTICATE_TO_TARGET; - case 20: return FINDING_TYPE_UNSPECIFIED; - case 21: return FORBIDDEN_TO_SCAN_COMPUTE; - case 43: return FORBIDDEN_UPDATE_TO_MANAGED_SCAN; - case 22: return MALFORMED_FILTER; - case 23: return MALFORMED_RESOURCE_NAME; - case 24: return PROJECT_INACTIVE; - case 25: return REQUIRED_FIELD; - case 26: return RESOURCE_NAME_INCONSISTENT; - case 27: return SCAN_ALREADY_RUNNING; - case 28: return SCAN_NOT_RUNNING; - case 29: return SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; - case 30: return SEED_URL_MALFORMED; - case 31: return SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; - case 32: return SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS; - case 33: return SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS; - case 35: return SEED_URL_HAS_UNRESERVED_IP_ADDRESS; - case 36: return SERVICE_ACCOUNT_NOT_CONFIGURED; - case 37: return TOO_MANY_SCANS; - case 38: return UNABLE_TO_RESOLVE_PROJECT_INFO; - case 39: return UNSUPPORTED_BLACKLIST_PATTERN_FORMAT; - case 40: return UNSUPPORTED_FILTER; - case 41: return UNSUPPORTED_FINDING_TYPE; - case 42: return UNSUPPORTED_URL_SCHEME; - default: return null; + case 0: + return CODE_UNSPECIFIED; + case 1: + return INTERNAL_ERROR; + case 2: + return APPENGINE_API_BACKEND_ERROR; + case 3: + return APPENGINE_API_NOT_ACCESSIBLE; + case 4: + return APPENGINE_DEFAULT_HOST_MISSING; + case 6: + return CANNOT_USE_GOOGLE_COM_ACCOUNT; + case 7: + return CANNOT_USE_OWNER_ACCOUNT; + case 8: + return COMPUTE_API_BACKEND_ERROR; + case 9: + return COMPUTE_API_NOT_ACCESSIBLE; + case 10: + return CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; + case 11: + return CUSTOM_LOGIN_URL_MALFORMED; + case 12: + return CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; + case 13: + return CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS; + case 14: + return CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS; + case 15: + return CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS; + case 16: + return DUPLICATE_SCAN_NAME; + case 18: + return INVALID_FIELD_VALUE; + case 19: + return FAILED_TO_AUTHENTICATE_TO_TARGET; + case 20: + return FINDING_TYPE_UNSPECIFIED; + case 21: + return FORBIDDEN_TO_SCAN_COMPUTE; + case 43: + return FORBIDDEN_UPDATE_TO_MANAGED_SCAN; + case 22: + return MALFORMED_FILTER; + case 23: + return MALFORMED_RESOURCE_NAME; + case 24: + return PROJECT_INACTIVE; + case 25: + return REQUIRED_FIELD; + case 26: + return RESOURCE_NAME_INCONSISTENT; + case 27: + return SCAN_ALREADY_RUNNING; + case 28: + return SCAN_NOT_RUNNING; + case 29: + return SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT; + case 30: + return SEED_URL_MALFORMED; + case 31: + return SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS; + case 32: + return SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS; + case 33: + return SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS; + case 35: + return SEED_URL_HAS_UNRESERVED_IP_ADDRESS; + case 36: + return SERVICE_ACCOUNT_NOT_CONFIGURED; + case 37: + return TOO_MANY_SCANS; + case 38: + return UNABLE_TO_RESOLVE_PROJECT_INFO; + case 39: + return UNSUPPORTED_BLACKLIST_PATTERN_FORMAT; + case 40: + return UNSUPPORTED_FILTER; + case 41: + return UNSUPPORTED_FINDING_TYPE; + case 42: + return UNSUPPORTED_URL_SCHEME; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Code> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (index == -1) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(index); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDescriptor() + .getEnumTypes() + .get(0); } private static final Code[] VALUES = getStaticValuesArray(); + private static Code[] getStaticValuesArray() { return new Code[] { - CODE_UNSPECIFIED, OK, INTERNAL_ERROR, APPENGINE_API_BACKEND_ERROR, APPENGINE_API_NOT_ACCESSIBLE, APPENGINE_DEFAULT_HOST_MISSING, CANNOT_USE_GOOGLE_COM_ACCOUNT, CANNOT_USE_OWNER_ACCOUNT, COMPUTE_API_BACKEND_ERROR, COMPUTE_API_NOT_ACCESSIBLE, CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, CUSTOM_LOGIN_URL_MALFORMED, CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS, CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS, CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS, DUPLICATE_SCAN_NAME, INVALID_FIELD_VALUE, FAILED_TO_AUTHENTICATE_TO_TARGET, FINDING_TYPE_UNSPECIFIED, FORBIDDEN_TO_SCAN_COMPUTE, FORBIDDEN_UPDATE_TO_MANAGED_SCAN, MALFORMED_FILTER, MALFORMED_RESOURCE_NAME, PROJECT_INACTIVE, REQUIRED_FIELD, RESOURCE_NAME_INCONSISTENT, SCAN_ALREADY_RUNNING, SCAN_NOT_RUNNING, SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, SEED_URL_MALFORMED, SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS, SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS, SEED_URL_HAS_UNRESERVED_IP_ADDRESS, SERVICE_ACCOUNT_NOT_CONFIGURED, TOO_MANY_SCANS, UNABLE_TO_RESOLVE_PROJECT_INFO, UNSUPPORTED_BLACKLIST_PATTERN_FORMAT, UNSUPPORTED_FILTER, UNSUPPORTED_FINDING_TYPE, UNSUPPORTED_URL_SCHEME, + CODE_UNSPECIFIED, + OK, + INTERNAL_ERROR, + APPENGINE_API_BACKEND_ERROR, + APPENGINE_API_NOT_ACCESSIBLE, + APPENGINE_DEFAULT_HOST_MISSING, + CANNOT_USE_GOOGLE_COM_ACCOUNT, + CANNOT_USE_OWNER_ACCOUNT, + COMPUTE_API_BACKEND_ERROR, + COMPUTE_API_NOT_ACCESSIBLE, + CUSTOM_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, + CUSTOM_LOGIN_URL_MALFORMED, + CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, + CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS, + CUSTOM_LOGIN_URL_HAS_NON_ROUTABLE_IP_ADDRESS, + CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS, + DUPLICATE_SCAN_NAME, + INVALID_FIELD_VALUE, + FAILED_TO_AUTHENTICATE_TO_TARGET, + FINDING_TYPE_UNSPECIFIED, + FORBIDDEN_TO_SCAN_COMPUTE, + FORBIDDEN_UPDATE_TO_MANAGED_SCAN, + MALFORMED_FILTER, + MALFORMED_RESOURCE_NAME, + PROJECT_INACTIVE, + REQUIRED_FIELD, + RESOURCE_NAME_INCONSISTENT, + SCAN_ALREADY_RUNNING, + SCAN_NOT_RUNNING, + SEED_URL_DOES_NOT_BELONG_TO_CURRENT_PROJECT, + SEED_URL_MALFORMED, + SEED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS, + SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS, + SEED_URL_HAS_NON_ROUTABLE_IP_ADDRESS, + SEED_URL_HAS_UNRESERVED_IP_ADDRESS, + SERVICE_ACCOUNT_NOT_CONFIGURED, + TOO_MANY_SCANS, + UNABLE_TO_RESOLVE_PROJECT_INFO, + UNSUPPORTED_BLACKLIST_PATTERN_FORMAT, + UNSUPPORTED_FILTER, + UNSUPPORTED_FINDING_TYPE, + UNSUPPORTED_URL_SCHEME, }; } - public static Code valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + + public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -953,33 +1225,46 @@ private Code(int index, int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** + * + * *
    * Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; + * * @return The code. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.valueOf(code_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = + com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.valueOf(code_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.UNRECOGNIZED + : result; } public static final int FIELD_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object fieldName_; /** + * + * *
    * Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -988,6 +1273,7 @@ private Code(int index, int value) {
    * 
* * string field_name = 2; + * * @return The fieldName. */ @java.lang.Override @@ -996,14 +1282,15 @@ public java.lang.String getFieldName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldName_ = s; return s; } } /** + * + * *
    * Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -1012,16 +1299,15 @@ public java.lang.String getFieldName() {
    * 
* * string field_name = 2; + * * @return The bytes for fieldName. */ @java.lang.Override - public com.google.protobuf.ByteString - getFieldNameBytes() { + public com.google.protobuf.ByteString getFieldNameBytes() { java.lang.Object ref = fieldName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fieldName_ = b; return b; } else { @@ -1030,6 +1316,7 @@ public java.lang.String getFieldName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1041,9 +1328,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.CODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { @@ -1058,9 +1346,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + if (code_ + != com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldName_); @@ -1073,16 +1362,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfigError)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanConfigError other = (com.google.cloud.websecurityscanner.v1beta.ScanConfigError) obj; + com.google.cloud.websecurityscanner.v1beta.ScanConfigError other = + (com.google.cloud.websecurityscanner.v1beta.ScanConfigError) obj; if (code_ != other.code_) return false; - if (!getFieldName() - .equals(other.getFieldName())) return false; + if (!getFieldName().equals(other.getFieldName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1104,96 +1393,104 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanConfigError prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ScanConfigError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Defines a custom error message used by CreateScanConfig and UpdateScanConfig
    * APIs when scan configuration validation fails. It is also reported as part of
@@ -1203,21 +1500,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanConfigError}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanConfigError)
       com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.ScanConfigError.class, com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.ScanConfigError.class,
+              com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfigError.newBuilder()
@@ -1225,16 +1524,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1246,9 +1544,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor;
     }
 
     @java.lang.Override
@@ -1267,7 +1565,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.ScanConfigError buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.ScanConfigError result = new com.google.cloud.websecurityscanner.v1beta.ScanConfigError(this);
+      com.google.cloud.websecurityscanner.v1beta.ScanConfigError result =
+          new com.google.cloud.websecurityscanner.v1beta.ScanConfigError(this);
       result.code_ = code_;
       result.fieldName_ = fieldName_;
       onBuilt();
@@ -1278,38 +1577,39 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanConfigError) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfigError)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanConfigError) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1317,7 +1617,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanConfigError other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance()) return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance())
+        return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -1344,7 +1645,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanConfigError) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1beta.ScanConfigError) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1356,51 +1658,67 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
+     *
+     *
      * 
      * Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
      * Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; + * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.valueOf(code_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = + com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.valueOf(code_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.UNRECOGNIZED + : result; } /** + * + * *
      * Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; + * * @param value The code to set. * @return This builder for chaining. */ @@ -1408,21 +1726,24 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1beta.ScanConfigErro if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Indicates the reason code for a configuration failure.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -1430,6 +1751,8 @@ public Builder clearCode() { private java.lang.Object fieldName_ = ""; /** + * + * *
      * Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1438,13 +1761,13 @@ public Builder clearCode() {
      * 
* * string field_name = 2; + * * @return The fieldName. */ public java.lang.String getFieldName() { java.lang.Object ref = fieldName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldName_ = s; return s; @@ -1453,6 +1776,8 @@ public java.lang.String getFieldName() { } } /** + * + * *
      * Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1461,15 +1786,14 @@ public java.lang.String getFieldName() {
      * 
* * string field_name = 2; + * * @return The bytes for fieldName. */ - public com.google.protobuf.ByteString - getFieldNameBytes() { + public com.google.protobuf.ByteString getFieldNameBytes() { java.lang.Object ref = fieldName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fieldName_ = b; return b; } else { @@ -1477,6 +1801,8 @@ public java.lang.String getFieldName() { } } /** + * + * *
      * Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1485,20 +1811,22 @@ public java.lang.String getFieldName() {
      * 
* * string field_name = 2; + * * @param value The fieldName to set. * @return This builder for chaining. */ - public Builder setFieldName( - java.lang.String value) { + public Builder setFieldName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + fieldName_ = value; onChanged(); return this; } /** + * + * *
      * Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1507,15 +1835,18 @@ public Builder setFieldName(
      * 
* * string field_name = 2; + * * @return This builder for chaining. */ public Builder clearFieldName() { - + fieldName_ = getDefaultInstance().getFieldName(); onChanged(); return this; } /** + * + * *
      * Indicates the full name of the ScanConfig field that triggers this error,
      * for example "scan_config.max_qps". This field is provided for
@@ -1524,23 +1855,23 @@ public Builder clearFieldName() {
      * 
* * string field_name = 2; + * * @param value The bytes for fieldName to set. * @return This builder for chaining. */ - public Builder setFieldNameBytes( - com.google.protobuf.ByteString value) { + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1550,12 +1881,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanConfigError) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanConfigError) private static final com.google.cloud.websecurityscanner.v1beta.ScanConfigError DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanConfigError(); } @@ -1564,16 +1895,16 @@ public static com.google.cloud.websecurityscanner.v1beta.ScanConfigError getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanConfigError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanConfigError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanConfigError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanConfigError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1588,6 +1919,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java index 61d24001..23fc4f1a 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_config_error.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ScanConfigErrorOrBuilder extends +public interface ScanConfigErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfigError) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
    * Indicates the reason code for a configuration failure.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError.Code code = 1; + * * @return The code. */ com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode(); /** + * + * *
    * Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -35,10 +59,13 @@ public interface ScanConfigErrorOrBuilder extends
    * 
* * string field_name = 2; + * * @return The fieldName. */ java.lang.String getFieldName(); /** + * + * *
    * Indicates the full name of the ScanConfig field that triggers this error,
    * for example "scan_config.max_qps". This field is provided for
@@ -47,8 +74,8 @@ public interface ScanConfigErrorOrBuilder extends
    * 
* * string field_name = 2; + * * @return The bytes for fieldName. */ - com.google.protobuf.ByteString - getFieldNameBytes(); + com.google.protobuf.ByteString getFieldNameBytes(); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java new file mode 100644 index 00000000..a13075ef --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java @@ -0,0 +1,106 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/scan_config_error.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class ScanConfigErrorProto { + private ScanConfigErrorProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n>google/cloud/websecurityscanner/v1beta" + + "/scan_config_error.proto\022&google.cloud.w" + + "ebsecurityscanner.v1beta\"\355\013\n\017ScanConfigE" + + "rror\022J\n\004code\030\001 \001(\0162<.google.cloud.websec" + + "urityscanner.v1beta.ScanConfigError.Code" + + "\022\022\n\nfield_name\030\002 \001(\t\"\371\n\n\004Code\022\024\n\020CODE_UN" + + "SPECIFIED\020\000\022\006\n\002OK\020\000\022\022\n\016INTERNAL_ERROR\020\001\022" + + "\037\n\033APPENGINE_API_BACKEND_ERROR\020\002\022 \n\034APPE" + + "NGINE_API_NOT_ACCESSIBLE\020\003\022\"\n\036APPENGINE_" + + "DEFAULT_HOST_MISSING\020\004\022!\n\035CANNOT_USE_GOO" + + "GLE_COM_ACCOUNT\020\006\022\034\n\030CANNOT_USE_OWNER_AC" + + "COUNT\020\007\022\035\n\031COMPUTE_API_BACKEND_ERROR\020\010\022\036" + + "\n\032COMPUTE_API_NOT_ACCESSIBLE\020\t\0227\n3CUSTOM" + + "_LOGIN_URL_DOES_NOT_BELONG_TO_CURRENT_PR" + + "OJECT\020\n\022\036\n\032CUSTOM_LOGIN_URL_MALFORMED\020\013\022" + + "3\n/CUSTOM_LOGIN_URL_MAPPED_TO_NON_ROUTAB" + + "LE_ADDRESS\020\014\0221\n-CUSTOM_LOGIN_URL_MAPPED_" + + "TO_UNRESERVED_ADDRESS\020\r\0220\n,CUSTOM_LOGIN_" + + "URL_HAS_NON_ROUTABLE_IP_ADDRESS\020\016\022.\n*CUS" + + "TOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS\020" + + "\017\022\027\n\023DUPLICATE_SCAN_NAME\020\020\022\027\n\023INVALID_FI" + + "ELD_VALUE\020\022\022$\n FAILED_TO_AUTHENTICATE_TO" + + "_TARGET\020\023\022\034\n\030FINDING_TYPE_UNSPECIFIED\020\024\022" + + "\035\n\031FORBIDDEN_TO_SCAN_COMPUTE\020\025\022$\n FORBID" + + "DEN_UPDATE_TO_MANAGED_SCAN\020+\022\024\n\020MALFORME" + + "D_FILTER\020\026\022\033\n\027MALFORMED_RESOURCE_NAME\020\027\022" + + "\024\n\020PROJECT_INACTIVE\020\030\022\022\n\016REQUIRED_FIELD\020" + + "\031\022\036\n\032RESOURCE_NAME_INCONSISTENT\020\032\022\030\n\024SCA" + + "N_ALREADY_RUNNING\020\033\022\024\n\020SCAN_NOT_RUNNING\020" + + "\034\022/\n+SEED_URL_DOES_NOT_BELONG_TO_CURRENT" + + "_PROJECT\020\035\022\026\n\022SEED_URL_MALFORMED\020\036\022+\n\'SE" + + "ED_URL_MAPPED_TO_NON_ROUTABLE_ADDRESS\020\037\022" + + ")\n%SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS" + + "\020 \022(\n$SEED_URL_HAS_NON_ROUTABLE_IP_ADDRE" + + "SS\020!\022&\n\"SEED_URL_HAS_UNRESERVED_IP_ADDRE" + + "SS\020#\022\"\n\036SERVICE_ACCOUNT_NOT_CONFIGURED\020$" + + "\022\022\n\016TOO_MANY_SCANS\020%\022\"\n\036UNABLE_TO_RESOLV" + + "E_PROJECT_INFO\020&\022(\n$UNSUPPORTED_BLACKLIS" + + "T_PATTERN_FORMAT\020\'\022\026\n\022UNSUPPORTED_FILTER" + + "\020(\022\034\n\030UNSUPPORTED_FINDING_TYPE\020)\022\032\n\026UNSU" + + "PPORTED_URL_SCHEME\020*\032\002\020\001B\234\002\n*com.google." + + "cloud.websecurityscanner.v1betaB\024ScanCon" + + "figErrorProtoP\001ZXgoogle.golang.org/genpr" + + "oto/googleapis/cloud/websecurityscanner/" + + "v1beta;websecurityscanner\252\002&Google.Cloud" + + ".WebSecurityScanner.V1Beta\312\002&Google\\Clou" + + "d\\WebSecurityScanner\\V1beta\352\002)Google::Cl" + + "oud::WebSecurityScanner::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfigError_descriptor, + new java.lang.String[] { + "Code", "FieldName", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java similarity index 100% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java similarity index 77% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java index 3adb81e5..f8ba7b48 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_config.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ScanConfigOrBuilder extends +public interface ScanConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -15,10 +33,13 @@ public interface ScanConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the ScanConfig. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -26,32 +47,39 @@ public interface ScanConfigOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. The user provided display name of the ScanConfig.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The maximum QPS during scanning. A valid value ranges from 5 to 20
    * inclusively. If the field is unspecified or its value is set 0, server will
@@ -60,164 +88,211 @@ public interface ScanConfigOrBuilder extends
    * 
* * int32 max_qps = 3; + * * @return The maxQps. */ int getMaxQps(); /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the startingUrls. */ - java.util.List - getStartingUrlsList(); + java.util.List getStartingUrlsList(); /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of startingUrls. */ int getStartingUrlsCount(); /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The startingUrls at the given index. */ java.lang.String getStartingUrls(int index); /** + * + * *
    * Required. The starting URLs from which the scanner finds site pages.
    * 
* * repeated string starting_urls = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the startingUrls at the given index. */ - com.google.protobuf.ByteString - getStartingUrlsBytes(int index); + com.google.protobuf.ByteString getStartingUrlsBytes(int index); /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * + * * @return Whether the authentication field is set. */ boolean hasAuthentication(); /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * + * * @return The authentication. */ com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication getAuthentication(); /** + * + * *
    * The authentication configuration. If specified, service will use the
    * authentication configuration during scanning.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * .google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication authentication = 5; + * */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder + getAuthenticationOrBuilder(); /** + * + * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; + * * @return The enum numeric value on the wire for userAgent. */ int getUserAgentValue(); /** + * + * *
    * The user agent used during scanning.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent user_agent = 6; + * * @return The userAgent. */ com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent getUserAgent(); /** + * + * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; + * * @return A list containing the blacklistPatterns. */ - java.util.List - getBlacklistPatternsList(); + java.util.List getBlacklistPatternsList(); /** + * + * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; + * * @return The count of blacklistPatterns. */ int getBlacklistPatternsCount(); /** + * + * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the element to return. * @return The blacklistPatterns at the given index. */ java.lang.String getBlacklistPatterns(int index); /** + * + * *
    * The blacklist URL patterns as described in
    * https://cloud.google.com/security-scanner/docs/excluded-urls
    * 
* * repeated string blacklist_patterns = 7; + * * @param index The index of the value to return. * @return The bytes of the blacklistPatterns at the given index. */ - com.google.protobuf.ByteString - getBlacklistPatternsBytes(int index); + com.google.protobuf.ByteString getBlacklistPatternsBytes(int index); /** + * + * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; + * * @return Whether the schedule field is set. */ boolean hasSchedule(); /** + * + * *
    * The schedule of the ScanConfig.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule schedule = 8; + * * @return The schedule. */ com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getSchedule(); /** + * + * *
    * The schedule of the ScanConfig.
    * 
@@ -227,99 +302,144 @@ public interface ScanConfigOrBuilder extends com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder(); /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return A list containing the targetPlatforms. */ - java.util.List getTargetPlatformsList(); + java.util.List + getTargetPlatformsList(); /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return The count of targetPlatforms. */ int getTargetPlatformsCount(); /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param index The index of the element to return. * @return The targetPlatforms at the given index. */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms(int index); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform getTargetPlatforms( + int index); /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @return A list containing the enum numeric values on the wire for targetPlatforms. */ - java.util.List - getTargetPlatformsValueList(); + java.util.List getTargetPlatformsValueList(); /** + * + * *
    * Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
    * used as a default.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform target_platforms = 9; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of targetPlatforms at the given index. */ int getTargetPlatformsValue(int index); /** + * + * *
    * Controls export of scan configurations and results to Cloud Security
    * Command Center.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @return The enum numeric value on the wire for exportToSecurityCommandCenter. */ int getExportToSecurityCommandCenterValue(); /** + * + * *
    * Controls export of scan configurations and results to Cloud Security
    * Command Center.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter export_to_security_command_center = 10; + * + * * @return The exportToSecurityCommandCenter. */ - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter + getExportToSecurityCommandCenter(); /** + * + * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; + * * @return Whether the latestRun field is set. */ boolean hasLatestRun(); /** + * + * *
    * Latest ScanRun if available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun latest_run = 11; + * * @return The latestRun. */ com.google.cloud.websecurityscanner.v1beta.ScanRun getLatestRun(); /** + * + * *
    * Latest ScanRun if available.
    * 
@@ -329,20 +449,26 @@ public interface ScanConfigOrBuilder extends com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getLatestRunOrBuilder(); /** + * + * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; + * * @return The enum numeric value on the wire for riskLevel. */ int getRiskLevelValue(); /** + * + * *
    * The risk level selected for the scan
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel risk_level = 12; + * * @return The riskLevel. */ com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel getRiskLevel(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java new file mode 100644 index 00000000..f60d9ba1 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java @@ -0,0 +1,198 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/scan_config.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class ScanConfigProto { + private ScanConfigProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/websecurityscanner/v1beta" + + "/scan_config.proto\022&google.cloud.websecu" + + "rityscanner.v1beta\032\037google/api/field_beh" + + "avior.proto\032\031google/api/resource.proto\0325" + + "google/cloud/websecurityscanner/v1beta/s" + + "can_run.proto\032\037google/protobuf/timestamp" + + ".proto\"\246\r\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\031\n\014d" + + "isplay_name\030\002 \001(\tB\003\340A\002\022\017\n\007max_qps\030\003 \001(\005\022" + + "\032\n\rstarting_urls\030\004 \003(\tB\003\340A\002\022Y\n\016authentic" + + "ation\030\005 \001(\0132A.google.cloud.websecuritysc" + + "anner.v1beta.ScanConfig.Authentication\022P" + + "\n\nuser_agent\030\006 \001(\0162<.google.cloud.websec" + + "urityscanner.v1beta.ScanConfig.UserAgent" + + "\022\032\n\022blacklist_patterns\030\007 \003(\t\022M\n\010schedule" + + "\030\010 \001(\0132;.google.cloud.websecurityscanner" + + ".v1beta.ScanConfig.Schedule\022[\n\020target_pl" + + "atforms\030\t \003(\0162A.google.cloud.websecurity" + + "scanner.v1beta.ScanConfig.TargetPlatform" + + "\022{\n!export_to_security_command_center\030\n " + + "\001(\0162P.google.cloud.websecurityscanner.v1" + + "beta.ScanConfig.ExportToSecurityCommandC" + + "enter\022C\n\nlatest_run\030\013 \001(\0132/.google.cloud" + + ".websecurityscanner.v1beta.ScanRun\022P\n\nri" + + "sk_level\030\014 \001(\0162<.google.cloud.websecurit" + + "yscanner.v1beta.ScanConfig.RiskLevel\032\224\003\n" + + "\016Authentication\022i\n\016google_account\030\001 \001(\0132" + + "O.google.cloud.websecurityscanner.v1beta" + + ".ScanConfig.Authentication.GoogleAccount" + + "H\000\022i\n\016custom_account\030\002 \001(\0132O.google.clou" + + "d.websecurityscanner.v1beta.ScanConfig.A" + + "uthentication.CustomAccountH\000\032@\n\rGoogleA" + + "ccount\022\025\n\010username\030\001 \001(\tB\003\340A\002\022\030\n\010passwor" + + "d\030\002 \001(\tB\006\340A\002\340A\004\032X\n\rCustomAccount\022\025\n\010user" + + "name\030\001 \001(\tB\003\340A\002\022\030\n\010password\030\002 \001(\tB\006\340A\002\340A" + + "\004\022\026\n\tlogin_url\030\003 \001(\tB\003\340A\002B\020\n\016authenticat" + + "ion\032b\n\010Schedule\0221\n\rschedule_time\030\001 \001(\0132\032" + + ".google.protobuf.Timestamp\022#\n\026interval_d" + + "uration_days\030\002 \001(\005B\003\340A\002\"`\n\tUserAgent\022\032\n\026" + + "USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_LINUX" + + "\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPHONE\020" + + "\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFORM_U" + + "NSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMPUTE\020" + + "\002\"<\n\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED" + + "\020\000\022\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecur" + + "ityCommandCenter\0221\n-EXPORT_TO_SECURITY_C" + + "OMMAND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001" + + "\022\014\n\010DISABLED\020\002:_\352A\\\n,websecurityscanner." + + "googleapis.com/ScanConfig\022,projects/{pro" + + "ject}/scanConfigs/{scan_config}B\227\002\n*com." + + "google.cloud.websecurityscanner.v1betaB\017" + + "ScanConfigProtoP\001ZXgoogle.golang.org/gen" + + "proto/googleapis/cloud/websecurityscanne" + + "r/v1beta;websecurityscanner\252\002&Google.Clo" + + "ud.WebSecurityScanner.V1Beta\312\002&Google\\Cl" + + "oud\\WebSecurityScanner\\V1beta\352\002)Google::" + + "Cloud::WebSecurityScanner::V1betab\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "MaxQps", + "StartingUrls", + "Authentication", + "UserAgent", + "BlacklistPatterns", + "Schedule", + "TargetPlatforms", + "ExportToSecurityCommandCenter", + "LatestRun", + "RiskLevel", + }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor = + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor, + new java.lang.String[] { + "GoogleAccount", "CustomAccount", "Authentication", + }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_GoogleAccount_descriptor, + new java.lang.String[] { + "Username", "Password", + }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor = + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Authentication_CustomAccount_descriptor, + new java.lang.String[] { + "Username", "Password", "LoginUrl", + }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor = + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanConfig_Schedule_descriptor, + new java.lang.String[] { + "ScheduleTime", "IntervalDurationDays", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java similarity index 72% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java index 5cbcdd18..a3bb4729 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * A ScanRun is a output-only resource representing an actual run of the scan.
  * Next id: 12
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRun}
  */
-public final class ScanRun extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ScanRun extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanRun)
     ScanRunOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ScanRun.newBuilder() to construct.
   private ScanRun(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ScanRun() {
     name_ = "";
     executionState_ = 0;
@@ -29,16 +47,15 @@ private ScanRun() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ScanRun();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ScanRun(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,99 +75,116 @@ private ScanRun(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              name_ = s;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            executionState_ = rawValue;
-            break;
-          }
-          case 24: {
-            int rawValue = input.readEnum();
+              executionState_ = rawValue;
+              break;
+            }
+          case 24:
+            {
+              int rawValue = input.readEnum();
 
-            resultState_ = rawValue;
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (startTime_ != null) {
-              subBuilder = startTime_.toBuilder();
+              resultState_ = rawValue;
+              break;
             }
-            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(startTime_);
-              startTime_ = subBuilder.buildPartial();
+          case 34:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (startTime_ != null) {
+                subBuilder = startTime_.toBuilder();
+              }
+              startTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(startTime_);
+                startTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (endTime_ != null) {
-              subBuilder = endTime_.toBuilder();
+          case 42:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (endTime_ != null) {
+                subBuilder = endTime_.toBuilder();
+              }
+              endTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(endTime_);
+                endTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(endTime_);
-              endTime_ = subBuilder.buildPartial();
+          case 48:
+            {
+              urlsCrawledCount_ = input.readInt64();
+              break;
             }
-
-            break;
-          }
-          case 48: {
-
-            urlsCrawledCount_ = input.readInt64();
-            break;
-          }
-          case 56: {
-
-            urlsTestedCount_ = input.readInt64();
-            break;
-          }
-          case 64: {
-
-            hasVulnerabilities_ = input.readBool();
-            break;
-          }
-          case 72: {
-
-            progressPercent_ = input.readInt32();
-            break;
-          }
-          case 82: {
-            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder subBuilder = null;
-            if (errorTrace_ != null) {
-              subBuilder = errorTrace_.toBuilder();
+          case 56:
+            {
+              urlsTestedCount_ = input.readInt64();
+              break;
             }
-            errorTrace_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(errorTrace_);
-              errorTrace_ = subBuilder.buildPartial();
+          case 64:
+            {
+              hasVulnerabilities_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          case 90: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              warningTraces_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 72:
+            {
+              progressPercent_ = input.readInt32();
+              break;
             }
-            warningTraces_.add(
-                input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 82:
+            {
+              com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder subBuilder =
+                  null;
+              if (errorTrace_ != null) {
+                subBuilder = errorTrace_.toBuilder();
+              }
+              errorTrace_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(errorTrace_);
+                errorTrace_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 90:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                warningTraces_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              warningTraces_.add(
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.parser(),
+                      extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -158,8 +192,7 @@ private ScanRun(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         warningTraces_ = java.util.Collections.unmodifiableList(warningTraces_);
@@ -168,29 +201,35 @@ private ScanRun(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunProto
+        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunProto
+        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.ScanRun.class, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.ScanRun.class,
+            com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Types of ScanRun execution state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState} */ - public enum ExecutionState - implements com.google.protobuf.ProtocolMessageEnum { + public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -200,6 +239,8 @@ public enum ExecutionState
      */
     EXECUTION_STATE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -208,6 +249,8 @@ public enum ExecutionState */ QUEUED(1), /** + * + * *
      * The scan is in progress.
      * 
@@ -216,6 +259,8 @@ public enum ExecutionState */ SCANNING(2), /** + * + * *
      * The scan is either finished or stopped by user.
      * 
@@ -227,6 +272,8 @@ public enum ExecutionState ; /** + * + * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -236,6 +283,8 @@ public enum ExecutionState
      */
     public static final int EXECUTION_STATE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -244,6 +293,8 @@ public enum ExecutionState */ public static final int QUEUED_VALUE = 1; /** + * + * *
      * The scan is in progress.
      * 
@@ -252,6 +303,8 @@ public enum ExecutionState */ public static final int SCANNING_VALUE = 2; /** + * + * *
      * The scan is either finished or stopped by user.
      * 
@@ -260,7 +313,6 @@ public enum ExecutionState */ public static final int FINISHED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -285,50 +337,53 @@ public static ExecutionState valueOf(int value) { */ public static ExecutionState forNumber(int value) { switch (value) { - case 0: return EXECUTION_STATE_UNSPECIFIED; - case 1: return QUEUED; - case 2: return SCANNING; - case 3: return FINISHED; - default: return null; + case 0: + return EXECUTION_STATE_UNSPECIFIED; + case 1: + return QUEUED; + case 2: + return SCANNING; + case 3: + return FINISHED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ExecutionState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionState findValueByNumber(int number) { - return ExecutionState.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionState findValueByNumber(int number) { + return ExecutionState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanRun.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanRun.getDescriptor() + .getEnumTypes() + .get(0); } private static final ExecutionState[] VALUES = values(); - public static ExecutionState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ExecutionState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -346,15 +401,18 @@ private ExecutionState(int value) { } /** + * + * *
    * Types of ScanRun result state.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanRun.ResultState} */ - public enum ResultState - implements com.google.protobuf.ProtocolMessageEnum { + public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -364,6 +422,8 @@ public enum ResultState
      */
     RESULT_STATE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The scan finished without errors.
      * 
@@ -372,6 +432,8 @@ public enum ResultState */ SUCCESS(1), /** + * + * *
      * The scan finished with errors.
      * 
@@ -380,6 +442,8 @@ public enum ResultState */ ERROR(2), /** + * + * *
      * The scan was terminated by user.
      * 
@@ -391,6 +455,8 @@ public enum ResultState ; /** + * + * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -400,6 +466,8 @@ public enum ResultState
      */
     public static final int RESULT_STATE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The scan finished without errors.
      * 
@@ -408,6 +476,8 @@ public enum ResultState */ public static final int SUCCESS_VALUE = 1; /** + * + * *
      * The scan finished with errors.
      * 
@@ -416,6 +486,8 @@ public enum ResultState */ public static final int ERROR_VALUE = 2; /** + * + * *
      * The scan was terminated by user.
      * 
@@ -424,7 +496,6 @@ public enum ResultState */ public static final int KILLED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -449,50 +520,53 @@ public static ResultState valueOf(int value) { */ public static ResultState forNumber(int value) { switch (value) { - case 0: return RESULT_STATE_UNSPECIFIED; - case 1: return SUCCESS; - case 2: return ERROR; - case 3: return KILLED; - default: return null; + case 0: + return RESULT_STATE_UNSPECIFIED; + case 1: + return SUCCESS; + case 2: + return ERROR; + case 3: + return KILLED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - ResultState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResultState findValueByNumber(int number) { - return ResultState.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResultState findValueByNumber(int number) { + return ResultState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanRun.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanRun.getDescriptor() + .getEnumTypes() + .get(1); } private static final ResultState[] VALUES = values(); - public static ResultState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ResultState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -512,6 +586,8 @@ private ResultState(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -519,6 +595,7 @@ private ResultState(int value) {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -527,14 +604,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -542,16 +620,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -562,67 +639,94 @@ public java.lang.String getName() { public static final int EXECUTION_STATE_FIELD_NUMBER = 2; private int executionState_; /** + * + * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * + * * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override public int getExecutionStateValue() { + @java.lang.Override + public int getExecutionStateValue() { return executionState_; } /** + * + * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * + * * @return The executionState. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExecutionState() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.valueOf(executionState_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = + com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.valueOf(executionState_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.UNRECOGNIZED + : result; } public static final int RESULT_STATE_FIELD_NUMBER = 3; private int resultState_; /** + * + * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; + * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override public int getResultStateValue() { + @java.lang.Override + public int getResultStateValue() { return resultState_; } /** + * + * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; + * * @return The resultState. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultState() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.valueOf(resultState_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = + com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.valueOf(resultState_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.UNRECOGNIZED + : result; } public static final int START_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -630,11 +734,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return The startTime. */ @java.lang.Override @@ -642,6 +749,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The time at which the ScanRun started.
    * 
@@ -656,12 +765,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -669,12 +781,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ @java.lang.Override @@ -682,6 +797,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -697,12 +814,15 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 6;
   private long urlsCrawledCount_;
   /**
+   *
+   *
    * 
    * The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; + * * @return The urlsCrawledCount. */ @java.lang.Override @@ -713,6 +833,8 @@ public long getUrlsCrawledCount() { public static final int URLS_TESTED_COUNT_FIELD_NUMBER = 7; private long urlsTestedCount_; /** + * + * *
    * The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -721,6 +843,7 @@ public long getUrlsCrawledCount() {
    * 
* * int64 urls_tested_count = 7; + * * @return The urlsTestedCount. */ @java.lang.Override @@ -731,11 +854,14 @@ public long getUrlsTestedCount() { public static final int HAS_VULNERABILITIES_FIELD_NUMBER = 8; private boolean hasVulnerabilities_; /** + * + * *
    * Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; + * * @return The hasVulnerabilities. */ @java.lang.Override @@ -746,6 +872,8 @@ public boolean getHasVulnerabilities() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 9; private int progressPercent_; /** + * + * *
    * The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -754,6 +882,7 @@ public boolean getHasVulnerabilities() {
    * 
* * int32 progress_percent = 9; + * * @return The progressPercent. */ @java.lang.Override @@ -764,12 +893,15 @@ public int getProgressPercent() { public static final int ERROR_TRACE_FIELD_NUMBER = 10; private com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace errorTrace_; /** + * + * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; + * * @return Whether the errorTrace field is set. */ @java.lang.Override @@ -777,19 +909,26 @@ public boolean hasErrorTrace() { return errorTrace_ != null; } /** + * + * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; + * * @return The errorTrace. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrace() { - return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; + return errorTrace_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance() + : errorTrace_; } /** + * + * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
@@ -798,71 +937,92 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrac
    * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder
+      getErrorTraceOrBuilder() {
     return getErrorTrace();
   }
 
   public static final int WARNING_TRACES_FIELD_NUMBER = 11;
-  private java.util.List warningTraces_;
+  private java.util.List
+      warningTraces_;
   /**
+   *
+   *
    * 
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ @java.lang.Override - public java.util.List getWarningTracesList() { + public java.util.List + getWarningTracesList() { return warningTraces_; } /** + * + * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder> getWarningTracesOrBuilderList() { return warningTraces_; } /** + * + * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ @java.lang.Override public int getWarningTracesCount() { return warningTraces_.size(); } /** + * + * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarningTraces(int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarningTraces( + int index) { return warningTraces_.get(index); } /** + * + * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder + getWarningTracesOrBuilder(int index) { return warningTraces_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -874,15 +1034,19 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (executionState_ != com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { + if (executionState_ + != com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState + .EXECUTION_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, executionState_); } - if (resultState_ != com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { + if (resultState_ + != com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, resultState_); } if (startTime_ != null) { @@ -921,45 +1085,40 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (executionState_ != com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.EXECUTION_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, executionState_); + if (executionState_ + != com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState + .EXECUTION_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, executionState_); } - if (resultState_ != com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, resultState_); + if (resultState_ + != com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.RESULT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, resultState_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndTime()); } if (urlsCrawledCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, urlsCrawledCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, urlsCrawledCount_); } if (urlsTestedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, urlsTestedCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, urlsTestedCount_); } if (hasVulnerabilities_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, hasVulnerabilities_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, hasVulnerabilities_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, progressPercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, progressPercent_); } if (errorTrace_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getErrorTrace()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getErrorTrace()); } for (int i = 0; i < warningTraces_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, warningTraces_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, warningTraces_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -969,42 +1128,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanRun)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanRun other = (com.google.cloud.websecurityscanner.v1beta.ScanRun) obj; + com.google.cloud.websecurityscanner.v1beta.ScanRun other = + (com.google.cloud.websecurityscanner.v1beta.ScanRun) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (executionState_ != other.executionState_) return false; if (resultState_ != other.resultState_) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (getUrlsCrawledCount() - != other.getUrlsCrawledCount()) return false; - if (getUrlsTestedCount() - != other.getUrlsTestedCount()) return false; - if (getHasVulnerabilities() - != other.getHasVulnerabilities()) return false; - if (getProgressPercent() - != other.getProgressPercent()) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (getUrlsCrawledCount() != other.getUrlsCrawledCount()) return false; + if (getUrlsTestedCount() != other.getUrlsTestedCount()) return false; + if (getHasVulnerabilities() != other.getHasVulnerabilities()) return false; + if (getProgressPercent() != other.getProgressPercent()) return false; if (hasErrorTrace() != other.hasErrorTrace()) return false; if (hasErrorTrace()) { - if (!getErrorTrace() - .equals(other.getErrorTrace())) return false; + if (!getErrorTrace().equals(other.getErrorTrace())) return false; } - if (!getWarningTracesList() - .equals(other.getWarningTracesList())) return false; + if (!getWarningTracesList().equals(other.getWarningTracesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1031,14 +1182,11 @@ public int hashCode() { hash = (53 * hash) + getEndTime().hashCode(); } hash = (37 * hash) + URLS_CRAWLED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUrlsCrawledCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsCrawledCount()); hash = (37 * hash) + URLS_TESTED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUrlsTestedCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUrlsTestedCount()); hash = (37 * hash) + HAS_VULNERABILITIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHasVulnerabilities()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasVulnerabilities()); hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getProgressPercent(); if (hasErrorTrace()) { @@ -1055,96 +1203,103 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanRun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A ScanRun is a output-only resource representing an actual run of the scan.
    * Next id: 12
@@ -1152,21 +1307,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRun}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanRun)
       com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.ScanRun.class, com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.ScanRun.class,
+              com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.ScanRun.newBuilder()
@@ -1174,17 +1331,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getWarningTracesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1230,9 +1387,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor;
     }
 
     @java.lang.Override
@@ -1251,7 +1408,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.ScanRun buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.ScanRun result = new com.google.cloud.websecurityscanner.v1beta.ScanRun(this);
+      com.google.cloud.websecurityscanner.v1beta.ScanRun result =
+          new com.google.cloud.websecurityscanner.v1beta.ScanRun(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.executionState_ = executionState_;
@@ -1292,38 +1450,39 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanRun) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRun)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRun) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1331,7 +1490,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanRun other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()) return this;
+      if (other == com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1381,9 +1541,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanRun othe
             warningTracesBuilder_ = null;
             warningTraces_ = other.warningTraces_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            warningTracesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getWarningTracesFieldBuilder() : null;
+            warningTracesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getWarningTracesFieldBuilder()
+                    : null;
           } else {
             warningTracesBuilder_.addAllMessages(other.warningTraces_);
           }
@@ -1408,7 +1569,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanRun) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1beta.ScanRun) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1417,10 +1579,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1428,13 +1593,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1443,6 +1608,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1450,15 +1617,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1466,6 +1632,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1473,20 +1641,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1494,15 +1664,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1510,16 +1683,16 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1527,73 +1700,99 @@ public Builder setNameBytes( private int executionState_ = 0; /** + * + * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * + * * @return The enum numeric value on the wire for executionState. */ - @java.lang.Override public int getExecutionStateValue() { + @java.lang.Override + public int getExecutionStateValue() { return executionState_; } /** + * + * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * + * * @param value The enum numeric value on the wire for executionState to set. * @return This builder for chaining. */ public Builder setExecutionStateValue(int value) { - + executionState_ = value; onChanged(); return this; } /** + * + * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * + * * @return The executionState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExecutionState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.valueOf(executionState_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = + com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.valueOf( + executionState_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.UNRECOGNIZED + : result; } /** + * + * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * + * * @param value The executionState to set. * @return This builder for chaining. */ - public Builder setExecutionState(com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState value) { + public Builder setExecutionState( + com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState value) { if (value == null) { throw new NullPointerException(); } - + executionState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The execution state of the ScanRun.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * + * * @return This builder for chaining. */ public Builder clearExecutionState() { - + executionState_ = 0; onChanged(); return this; @@ -1601,78 +1800,98 @@ public Builder clearExecutionState() { private int resultState_ = 0; /** + * + * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; + * * @return The enum numeric value on the wire for resultState. */ - @java.lang.Override public int getResultStateValue() { + @java.lang.Override + public int getResultStateValue() { return resultState_; } /** + * + * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; + * * @param value The enum numeric value on the wire for resultState to set. * @return This builder for chaining. */ public Builder setResultStateValue(int value) { - + resultState_ = value; onChanged(); return this; } /** + * + * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; + * * @return The resultState. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultState() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.valueOf(resultState_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = + com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.valueOf(resultState_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.UNRECOGNIZED + : result; } /** + * + * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; + * * @param value The resultState to set. * @return This builder for chaining. */ - public Builder setResultState(com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState value) { + public Builder setResultState( + com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState value) { if (value == null) { throw new NullPointerException(); } - + resultState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The result state of the ScanRun. This field is only available after the
      * execution state reaches "FINISHED".
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; + * * @return This builder for chaining. */ public Builder clearResultState() { - + resultState_ = 0; onChanged(); return this; @@ -1680,24 +1899,33 @@ public Builder clearResultState() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1708,6 +1936,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1728,14 +1958,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -1746,6 +1977,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1756,7 +1989,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -1768,6 +2001,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1786,6 +2021,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1793,11 +2030,13 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 4; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1808,11 +2047,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1820,14 +2060,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -1835,26 +2078,35 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
      * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1865,6 +2117,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1886,6 +2140,8 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1893,8 +2149,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp end_time = 5;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1905,6 +2160,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1916,7 +2173,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1928,6 +2185,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1947,6 +2206,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1955,11 +2216,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1971,11 +2234,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1984,27 +2248,33 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Timestamp end_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
     }
 
-    private long urlsCrawledCount_ ;
+    private long urlsCrawledCount_;
     /**
+     *
+     *
      * 
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; + * * @return The urlsCrawledCount. */ @java.lang.Override @@ -2012,39 +2282,47 @@ public long getUrlsCrawledCount() { return urlsCrawledCount_; } /** + * + * *
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; + * * @param value The urlsCrawledCount to set. * @return This builder for chaining. */ public Builder setUrlsCrawledCount(long value) { - + urlsCrawledCount_ = value; onChanged(); return this; } /** + * + * *
      * The number of URLs crawled during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs crawled up to now.
      * 
* * int64 urls_crawled_count = 6; + * * @return This builder for chaining. */ public Builder clearUrlsCrawledCount() { - + urlsCrawledCount_ = 0L; onChanged(); return this; } - private long urlsTestedCount_ ; + private long urlsTestedCount_; /** + * + * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2053,6 +2331,7 @@ public Builder clearUrlsCrawledCount() {
      * 
* * int64 urls_tested_count = 7; + * * @return The urlsTestedCount. */ @java.lang.Override @@ -2060,6 +2339,8 @@ public long getUrlsTestedCount() { return urlsTestedCount_; } /** + * + * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2068,16 +2349,19 @@ public long getUrlsTestedCount() {
      * 
* * int64 urls_tested_count = 7; + * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ public Builder setUrlsTestedCount(long value) { - + urlsTestedCount_ = value; onChanged(); return this; } /** + * + * *
      * The number of URLs tested during this ScanRun. If the scan is in progress,
      * the value represents the number of URLs tested up to now. The number of
@@ -2086,22 +2370,26 @@ public Builder setUrlsTestedCount(long value) {
      * 
* * int64 urls_tested_count = 7; + * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { - + urlsTestedCount_ = 0L; onChanged(); return this; } - private boolean hasVulnerabilities_ ; + private boolean hasVulnerabilities_; /** + * + * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; + * * @return The hasVulnerabilities. */ @java.lang.Override @@ -2109,37 +2397,45 @@ public boolean getHasVulnerabilities() { return hasVulnerabilities_; } /** + * + * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; + * * @param value The hasVulnerabilities to set. * @return This builder for chaining. */ public Builder setHasVulnerabilities(boolean value) { - + hasVulnerabilities_ = value; onChanged(); return this; } /** + * + * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; + * * @return This builder for chaining. */ public Builder clearHasVulnerabilities() { - + hasVulnerabilities_ = false; onChanged(); return this; } - private int progressPercent_ ; + private int progressPercent_; /** + * + * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2148,6 +2444,7 @@ public Builder clearHasVulnerabilities() {
      * 
* * int32 progress_percent = 9; + * * @return The progressPercent. */ @java.lang.Override @@ -2155,6 +2452,8 @@ public int getProgressPercent() { return progressPercent_; } /** + * + * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2163,16 +2462,19 @@ public int getProgressPercent() {
      * 
* * int32 progress_percent = 9; + * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** + * + * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2181,10 +2483,11 @@ public Builder setProgressPercent(int value) {
      * 
* * int32 progress_percent = 9; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; @@ -2192,36 +2495,49 @@ public Builder clearProgressPercent() { private com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace errorTrace_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder> errorTraceBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace, + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder> + errorTraceBuilder_; /** + * + * *
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; + * * @return Whether the errorTrace field is set. */ public boolean hasErrorTrace() { return errorTraceBuilder_ != null || errorTrace_ != null; } /** + * + * *
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; + * * @return The errorTrace. */ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrace() { if (errorTraceBuilder_ == null) { - return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; + return errorTrace_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance() + : errorTrace_; } else { return errorTraceBuilder_.getMessage(); } } /** + * + * *
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2229,7 +2545,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrac
      *
      * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
      */
-    public Builder setErrorTrace(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace value) {
+    public Builder setErrorTrace(
+        com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace value) {
       if (errorTraceBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2243,6 +2560,8 @@ public Builder setErrorTrace(com.google.cloud.websecurityscanner.v1beta.ScanRunE
       return this;
     }
     /**
+     *
+     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2262,6 +2581,8 @@ public Builder setErrorTrace(
       return this;
     }
     /**
+     *
+     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2269,11 +2590,14 @@ public Builder setErrorTrace(
      *
      * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
      */
-    public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace value) {
+    public Builder mergeErrorTrace(
+        com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace value) {
       if (errorTraceBuilder_ == null) {
         if (errorTrace_ != null) {
           errorTrace_ =
-            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.newBuilder(errorTrace_).mergeFrom(value).buildPartial();
+              com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.newBuilder(errorTrace_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           errorTrace_ = value;
         }
@@ -2285,6 +2609,8 @@ public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1beta.ScanRu
       return this;
     }
     /**
+     *
+     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2304,6 +2630,8 @@ public Builder clearErrorTrace() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2311,12 +2639,15 @@ public Builder clearErrorTrace() {
      *
      * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
      */
-    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder getErrorTraceBuilder() {
-      
+    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder
+        getErrorTraceBuilder() {
+
       onChanged();
       return getErrorTraceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2324,15 +2655,19 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder getE
      *
      * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
      */
-    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() {
+    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder
+        getErrorTraceOrBuilder() {
       if (errorTraceBuilder_ != null) {
         return errorTraceBuilder_.getMessageOrBuilder();
       } else {
-        return errorTrace_ == null ?
-            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance() : errorTrace_;
+        return errorTrace_ == null
+            ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance()
+            : errorTrace_;
       }
     }
     /**
+     *
+     *
      * 
      * If result_state is an ERROR, this field provides the primary reason for
      * scan's termination and more details, if such are available.
@@ -2341,39 +2676,53 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder get
      * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder> 
+            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace,
+            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder,
+            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder>
         getErrorTraceFieldBuilder() {
       if (errorTraceBuilder_ == null) {
-        errorTraceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder>(
-                getErrorTrace(),
-                getParentForChildren(),
-                isClean());
+        errorTraceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace,
+                com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder,
+                com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder>(
+                getErrorTrace(), getParentForChildren(), isClean());
         errorTrace_ = null;
       }
       return errorTraceBuilder_;
     }
 
-    private java.util.List warningTraces_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        warningTraces_ = java.util.Collections.emptyList();
+
     private void ensureWarningTracesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        warningTraces_ = new java.util.ArrayList(warningTraces_);
+        warningTraces_ =
+            new java.util.ArrayList(
+                warningTraces_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder> warningTracesBuilder_;
+            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace,
+            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder,
+            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder>
+        warningTracesBuilder_;
 
     /**
+     *
+     *
      * 
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ - public java.util.List getWarningTracesList() { + public java.util.List + getWarningTracesList() { if (warningTracesBuilder_ == null) { return java.util.Collections.unmodifiableList(warningTraces_); } else { @@ -2381,11 +2730,15 @@ public java.util.List * A list of warnings, if such are encountered during this scan run. *
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ public int getWarningTracesCount() { if (warningTracesBuilder_ == null) { @@ -2395,13 +2748,18 @@ public int getWarningTracesCount() { } } /** + * + * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarningTraces(int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarningTraces( + int index) { if (warningTracesBuilder_ == null) { return warningTraces_.get(index); } else { @@ -2409,11 +2767,15 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarning } } /** + * + * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ public Builder setWarningTraces( int index, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace value) { @@ -2430,14 +2792,19 @@ public Builder setWarningTraces( return this; } /** + * + * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ public Builder setWarningTraces( - int index, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder builderForValue) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); warningTraces_.set(index, builderForValue.build()); @@ -2448,13 +2815,18 @@ public Builder setWarningTraces( return this; } /** + * + * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ - public Builder addWarningTraces(com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace value) { + public Builder addWarningTraces( + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace value) { if (warningTracesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2468,11 +2840,15 @@ public Builder addWarningTraces(com.google.cloud.websecurityscanner.v1beta.ScanR return this; } /** + * + * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ public Builder addWarningTraces( int index, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace value) { @@ -2489,11 +2865,15 @@ public Builder addWarningTraces( return this; } /** + * + * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ public Builder addWarningTraces( com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder builderForValue) { @@ -2507,14 +2887,19 @@ public Builder addWarningTraces( return this; } /** + * + * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ public Builder addWarningTraces( - int index, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder builderForValue) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); warningTraces_.add(index, builderForValue.build()); @@ -2525,18 +2910,22 @@ public Builder addWarningTraces( return this; } /** + * + * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ public Builder addAllWarningTraces( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (warningTracesBuilder_ == null) { ensureWarningTracesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, warningTraces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warningTraces_); onChanged(); } else { warningTracesBuilder_.addAllMessages(values); @@ -2544,11 +2933,15 @@ public Builder addAllWarningTraces( return this; } /** + * + * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ public Builder clearWarningTraces() { if (warningTracesBuilder_ == null) { @@ -2561,11 +2954,15 @@ public Builder clearWarningTraces() { return this; } /** + * + * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ public Builder removeWarningTraces(int index) { if (warningTracesBuilder_ == null) { @@ -2578,39 +2975,53 @@ public Builder removeWarningTraces(int index) { return this; } /** + * + * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder getWarningTracesBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder + getWarningTracesBuilder(int index) { return getWarningTracesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder + getWarningTracesOrBuilder(int index) { if (warningTracesBuilder_ == null) { - return warningTraces_.get(index); } else { + return warningTraces_.get(index); + } else { return warningTracesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ - public java.util.List - getWarningTracesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder> + getWarningTracesOrBuilderList() { if (warningTracesBuilder_ != null) { return warningTracesBuilder_.getMessageOrBuilderList(); } else { @@ -2618,45 +3029,67 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder g } } /** + * + * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder addWarningTracesBuilder() { - return getWarningTracesFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder + addWarningTracesBuilder() { + return getWarningTracesFieldBuilder() + .addBuilder( + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance()); } /** + * + * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder addWarningTracesBuilder( - int index) { - return getWarningTracesFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder + addWarningTracesBuilder(int index) { + return getWarningTracesFieldBuilder() + .addBuilder( + index, + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance()); } /** + * + * *
      * A list of warnings, if such are encountered during this scan run.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ - public java.util.List - getWarningTracesBuilderList() { + public java.util.List + getWarningTracesBuilderList() { return getWarningTracesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace, + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder> getWarningTracesFieldBuilder() { if (warningTracesBuilder_ == null) { - warningTracesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder>( + warningTracesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace, + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder>( warningTraces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2665,9 +3098,9 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder ad } return warningTracesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2677,12 +3110,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanRun) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanRun) private static final com.google.cloud.websecurityscanner.v1beta.ScanRun DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanRun(); } @@ -2691,16 +3124,16 @@ public static com.google.cloud.websecurityscanner.v1beta.ScanRun getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2715,6 +3148,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java similarity index 72% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java index 04999bce..dc3d2c51 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Output only.
  * Defines an error trace message for a ScanRun.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace}
  */
-public final class ScanRunErrorTrace extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ScanRunErrorTrace extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace)
     ScanRunErrorTraceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ScanRunErrorTrace.newBuilder() to construct.
   private ScanRunErrorTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ScanRunErrorTrace() {
     code_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ScanRunErrorTrace();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ScanRunErrorTrace(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,37 +71,42 @@ private ScanRunErrorTrace(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            code_ = rawValue;
-            break;
-          }
-          case 18: {
-            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder subBuilder = null;
-            if (scanConfigError_ != null) {
-              subBuilder = scanConfigError_.toBuilder();
+              code_ = rawValue;
+              break;
             }
-            scanConfigError_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfigError.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(scanConfigError_);
-              scanConfigError_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder subBuilder = null;
+              if (scanConfigError_ != null) {
+                subBuilder = scanConfigError_.toBuilder();
+              }
+              scanConfigError_ =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1beta.ScanConfigError.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(scanConfigError_);
+                scanConfigError_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 24: {
-
-            mostCommonHttpErrorCode_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 24:
+            {
+              mostCommonHttpErrorCode_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,27 +114,31 @@ private ScanRunErrorTrace(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto
+        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto
+        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.class, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.class,
+            com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Output only.
    * Defines an error reason code.
@@ -121,9 +147,10 @@ private ScanRunErrorTrace(
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code}
    */
-  public enum Code
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Code implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Default value is never used.
      * 
@@ -132,6 +159,8 @@ public enum Code */ CODE_UNSPECIFIED(0), /** + * + * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -140,6 +169,8 @@ public enum Code */ INTERNAL_ERROR(1), /** + * + * *
      * Indicates a scan configuration error, usually due to outdated ScanConfig
      * settings, such as starting_urls or the DNS configuration.
@@ -149,6 +180,8 @@ public enum Code
      */
     SCAN_CONFIG_ISSUE(2),
     /**
+     *
+     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -158,6 +191,8 @@ public enum Code
      */
     AUTHENTICATION_CONFIG_ISSUE(3),
     /**
+     *
+     *
      * 
      * Indicates a scan operation timeout, usually caused by a very large site.
      * 
@@ -166,6 +201,8 @@ public enum Code */ TIMED_OUT_WHILE_SCANNING(4), /** + * + * *
      * Indicates that a scan encountered excessive redirects, either to
      * authentication or some other page outside of the scan scope.
@@ -175,6 +212,8 @@ public enum Code
      */
     TOO_MANY_REDIRECTS(5),
     /**
+     *
+     *
      * 
      * Indicates that a scan encountered numerous errors from the web site
      * pages. When available, most_common_http_error_code field indicates the
@@ -188,6 +227,8 @@ public enum Code
     ;
 
     /**
+     *
+     *
      * 
      * Default value is never used.
      * 
@@ -196,6 +237,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -204,6 +247,8 @@ public enum Code */ public static final int INTERNAL_ERROR_VALUE = 1; /** + * + * *
      * Indicates a scan configuration error, usually due to outdated ScanConfig
      * settings, such as starting_urls or the DNS configuration.
@@ -213,6 +258,8 @@ public enum Code
      */
     public static final int SCAN_CONFIG_ISSUE_VALUE = 2;
     /**
+     *
+     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -222,6 +269,8 @@ public enum Code
      */
     public static final int AUTHENTICATION_CONFIG_ISSUE_VALUE = 3;
     /**
+     *
+     *
      * 
      * Indicates a scan operation timeout, usually caused by a very large site.
      * 
@@ -230,6 +279,8 @@ public enum Code */ public static final int TIMED_OUT_WHILE_SCANNING_VALUE = 4; /** + * + * *
      * Indicates that a scan encountered excessive redirects, either to
      * authentication or some other page outside of the scan scope.
@@ -239,6 +290,8 @@ public enum Code
      */
     public static final int TOO_MANY_REDIRECTS_VALUE = 5;
     /**
+     *
+     *
      * 
      * Indicates that a scan encountered numerous errors from the web site
      * pages. When available, most_common_http_error_code field indicates the
@@ -249,7 +302,6 @@ public enum Code
      */
     public static final int TOO_MANY_HTTP_ERRORS_VALUE = 6;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -274,53 +326,59 @@ public static Code valueOf(int value) {
      */
     public static Code forNumber(int value) {
       switch (value) {
-        case 0: return CODE_UNSPECIFIED;
-        case 1: return INTERNAL_ERROR;
-        case 2: return SCAN_CONFIG_ISSUE;
-        case 3: return AUTHENTICATION_CONFIG_ISSUE;
-        case 4: return TIMED_OUT_WHILE_SCANNING;
-        case 5: return TOO_MANY_REDIRECTS;
-        case 6: return TOO_MANY_HTTP_ERRORS;
-        default: return null;
+        case 0:
+          return CODE_UNSPECIFIED;
+        case 1:
+          return INTERNAL_ERROR;
+        case 2:
+          return SCAN_CONFIG_ISSUE;
+        case 3:
+          return AUTHENTICATION_CONFIG_ISSUE;
+        case 4:
+          return TIMED_OUT_WHILE_SCANNING;
+        case 5:
+          return TOO_MANY_REDIRECTS;
+        case 6:
+          return TOO_MANY_HTTP_ERRORS;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        Code> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Code findValueByNumber(int number) {
-              return Code.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Code findValueByNumber(int number) {
+            return Code.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final Code[] VALUES = values();
 
-    public static Code valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -340,33 +398,46 @@ private Code(int value) {
   public static final int CODE_FIELD_NUMBER = 1;
   private int code_;
   /**
+   *
+   *
    * 
    * Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; + * * @return The code. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.valueOf(code_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.valueOf(code_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.UNRECOGNIZED + : result; } public static final int SCAN_CONFIG_ERROR_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1beta.ScanConfigError scanConfigError_; /** + * + * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -374,6 +445,7 @@ private Code(int value) {
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; + * * @return Whether the scanConfigError field is set. */ @java.lang.Override @@ -381,6 +453,8 @@ public boolean hasScanConfigError() { return scanConfigError_ != null; } /** + * + * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -388,13 +462,18 @@ public boolean hasScanConfigError() {
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; + * * @return The scanConfigError. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigError() { - return scanConfigError_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance() : scanConfigError_; + return scanConfigError_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance() + : scanConfigError_; } /** + * + * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -404,13 +483,16 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigE
    * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
    */
   @java.lang.Override
-  public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder() {
+  public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder
+      getScanConfigErrorOrBuilder() {
     return getScanConfigError();
   }
 
   public static final int MOST_COMMON_HTTP_ERROR_CODE_FIELD_NUMBER = 3;
   private int mostCommonHttpErrorCode_;
   /**
+   *
+   *
    * 
    * If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
    * common HTTP error code, if such is available. For example, if this code is
@@ -418,6 +500,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder getSc
    * 
* * int32 most_common_http_error_code = 3; + * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -426,6 +509,7 @@ public int getMostCommonHttpErrorCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -437,9 +521,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.CODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, code_); } if (scanConfigError_ != null) { @@ -457,17 +542,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + if (code_ + != com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } if (scanConfigError_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getScanConfigError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfigError()); } if (mostCommonHttpErrorCode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, mostCommonHttpErrorCode_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, mostCommonHttpErrorCode_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -477,21 +561,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace other = (com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) obj; + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace other = + (com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) obj; if (code_ != other.code_) return false; if (hasScanConfigError() != other.hasScanConfigError()) return false; if (hasScanConfigError()) { - if (!getScanConfigError() - .equals(other.getScanConfigError())) return false; + if (!getScanConfigError().equals(other.getScanConfigError())) return false; } - if (getMostCommonHttpErrorCode() - != other.getMostCommonHttpErrorCode()) return false; + if (getMostCommonHttpErrorCode() != other.getMostCommonHttpErrorCode()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -517,96 +600,104 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Output only.
    * Defines an error trace message for a ScanRun.
@@ -614,21 +705,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace)
       com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.class, com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.class,
+              com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.newBuilder()
@@ -636,16 +729,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -663,13 +755,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getDefaultInstanceForType() {
+    public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace
+        getDefaultInstanceForType() {
       return com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance();
     }
 
@@ -684,7 +777,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace result = new com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace(this);
+      com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace result =
+          new com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace(this);
       result.code_ = code_;
       if (scanConfigErrorBuilder_ == null) {
         result.scanConfigError_ = scanConfigError_;
@@ -700,38 +794,39 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -739,7 +834,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance())
+        return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -768,7 +865,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -780,73 +878,93 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
+     *
+     *
      * 
      * Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
      * Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; + * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.valueOf(code_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.valueOf(code_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.UNRECOGNIZED + : result; } /** + * + * *
      * Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code value) { + public Builder setCode( + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -854,8 +972,13 @@ public Builder clearCode() { private com.google.cloud.websecurityscanner.v1beta.ScanConfigError scanConfigError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfigError, com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder> scanConfigErrorBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfigError, + com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder> + scanConfigErrorBuilder_; /** + * + * *
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -863,12 +986,15 @@ public Builder clearCode() {
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; + * * @return Whether the scanConfigError field is set. */ public boolean hasScanConfigError() { return scanConfigErrorBuilder_ != null || scanConfigError_ != null; } /** + * + * *
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -876,16 +1002,21 @@ public boolean hasScanConfigError() {
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; + * * @return The scanConfigError. */ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigError() { if (scanConfigErrorBuilder_ == null) { - return scanConfigError_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance() : scanConfigError_; + return scanConfigError_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance() + : scanConfigError_; } else { return scanConfigErrorBuilder_.getMessage(); } } /** + * + * *
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -894,7 +1025,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigE
      *
      * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
      */
-    public Builder setScanConfigError(com.google.cloud.websecurityscanner.v1beta.ScanConfigError value) {
+    public Builder setScanConfigError(
+        com.google.cloud.websecurityscanner.v1beta.ScanConfigError value) {
       if (scanConfigErrorBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -908,6 +1040,8 @@ public Builder setScanConfigError(com.google.cloud.websecurityscanner.v1beta.Sca
       return this;
     }
     /**
+     *
+     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -928,6 +1062,8 @@ public Builder setScanConfigError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -936,11 +1072,15 @@ public Builder setScanConfigError(
      *
      * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
      */
-    public Builder mergeScanConfigError(com.google.cloud.websecurityscanner.v1beta.ScanConfigError value) {
+    public Builder mergeScanConfigError(
+        com.google.cloud.websecurityscanner.v1beta.ScanConfigError value) {
       if (scanConfigErrorBuilder_ == null) {
         if (scanConfigError_ != null) {
           scanConfigError_ =
-            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.newBuilder(scanConfigError_).mergeFrom(value).buildPartial();
+              com.google.cloud.websecurityscanner.v1beta.ScanConfigError.newBuilder(
+                      scanConfigError_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           scanConfigError_ = value;
         }
@@ -952,6 +1092,8 @@ public Builder mergeScanConfigError(com.google.cloud.websecurityscanner.v1beta.S
       return this;
     }
     /**
+     *
+     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -972,6 +1114,8 @@ public Builder clearScanConfigError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -980,12 +1124,15 @@ public Builder clearScanConfigError() {
      *
      * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
      */
-    public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder getScanConfigErrorBuilder() {
-      
+    public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder
+        getScanConfigErrorBuilder() {
+
       onChanged();
       return getScanConfigErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -994,15 +1141,19 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder getSca
      *
      * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
      */
-    public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder() {
+    public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder
+        getScanConfigErrorOrBuilder() {
       if (scanConfigErrorBuilder_ != null) {
         return scanConfigErrorBuilder_.getMessageOrBuilder();
       } else {
-        return scanConfigError_ == null ?
-            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance() : scanConfigError_;
+        return scanConfigError_ == null
+            ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance()
+            : scanConfigError_;
       }
     }
     /**
+     *
+     *
      * 
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -1012,21 +1163,26 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder getSc
      * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.websecurityscanner.v1beta.ScanConfigError, com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder> 
+            com.google.cloud.websecurityscanner.v1beta.ScanConfigError,
+            com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder,
+            com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder>
         getScanConfigErrorFieldBuilder() {
       if (scanConfigErrorBuilder_ == null) {
-        scanConfigErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.websecurityscanner.v1beta.ScanConfigError, com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder>(
-                getScanConfigError(),
-                getParentForChildren(),
-                isClean());
+        scanConfigErrorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.websecurityscanner.v1beta.ScanConfigError,
+                com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Builder,
+                com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder>(
+                getScanConfigError(), getParentForChildren(), isClean());
         scanConfigError_ = null;
       }
       return scanConfigErrorBuilder_;
     }
 
-    private int mostCommonHttpErrorCode_ ;
+    private int mostCommonHttpErrorCode_;
     /**
+     *
+     *
      * 
      * If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1034,6 +1190,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder getSc
      * 
* * int32 most_common_http_error_code = 3; + * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -1041,6 +1198,8 @@ public int getMostCommonHttpErrorCode() { return mostCommonHttpErrorCode_; } /** + * + * *
      * If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1048,16 +1207,19 @@ public int getMostCommonHttpErrorCode() {
      * 
* * int32 most_common_http_error_code = 3; + * * @param value The mostCommonHttpErrorCode to set. * @return This builder for chaining. */ public Builder setMostCommonHttpErrorCode(int value) { - + mostCommonHttpErrorCode_ = value; onChanged(); return this; } /** + * + * *
      * If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
      * common HTTP error code, if such is available. For example, if this code is
@@ -1065,17 +1227,18 @@ public Builder setMostCommonHttpErrorCode(int value) {
      * 
* * int32 most_common_http_error_code = 3; + * * @return This builder for chaining. */ public Builder clearMostCommonHttpErrorCode() { - + mostCommonHttpErrorCode_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1085,12 +1248,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) - private static final com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace(); } @@ -1099,16 +1263,16 @@ public static com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRunErrorTrace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunErrorTrace(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRunErrorTrace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRunErrorTrace(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1123,6 +1287,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java similarity index 77% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java index abfe6d8c..3a923586 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ScanRunErrorTraceOrBuilder extends +public interface ScanRunErrorTraceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
    * Indicates the error reason code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; + * * @return The code. */ com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode(); /** + * + * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -34,10 +58,13 @@ public interface ScanRunErrorTraceOrBuilder extends
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; + * * @return Whether the scanConfigError field is set. */ boolean hasScanConfigError(); /** + * + * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -45,10 +72,13 @@ public interface ScanRunErrorTraceOrBuilder extends
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; + * * @return The scanConfigError. */ com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigError(); /** + * + * *
    * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
    * message encountered during scan configuration validation that is performed
@@ -60,6 +90,8 @@ public interface ScanRunErrorTraceOrBuilder extends
   com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
    * common HTTP error code, if such is available. For example, if this code is
@@ -67,6 +99,7 @@ public interface ScanRunErrorTraceOrBuilder extends
    * 
* * int32 most_common_http_error_code = 3; + * * @return The mostCommonHttpErrorCode. */ int getMostCommonHttpErrorCode(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java new file mode 100644 index 00000000..465dba63 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java @@ -0,0 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class ScanRunErrorTraceProto { + private ScanRunErrorTraceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nAgoogle/cloud/websecurityscanner/v1beta" + + "/scan_run_error_trace.proto\022&google.clou" + + "d.websecurityscanner.v1beta\032>google/clou" + + "d/websecurityscanner/v1beta/scan_config_" + + "error.proto\"\225\003\n\021ScanRunErrorTrace\022L\n\004cod" + + "e\030\001 \001(\0162>.google.cloud.websecurityscanne" + + "r.v1beta.ScanRunErrorTrace.Code\022R\n\021scan_" + + "config_error\030\002 \001(\01327.google.cloud.websec" + + "urityscanner.v1beta.ScanConfigError\022#\n\033m" + + "ost_common_http_error_code\030\003 \001(\005\"\270\001\n\004Cod" + + "e\022\024\n\020CODE_UNSPECIFIED\020\000\022\022\n\016INTERNAL_ERRO" + + "R\020\001\022\025\n\021SCAN_CONFIG_ISSUE\020\002\022\037\n\033AUTHENTICA" + + "TION_CONFIG_ISSUE\020\003\022\034\n\030TIMED_OUT_WHILE_S" + + "CANNING\020\004\022\026\n\022TOO_MANY_REDIRECTS\020\005\022\030\n\024TOO" + + "_MANY_HTTP_ERRORS\020\006B\236\002\n*com.google.cloud" + + ".websecurityscanner.v1betaB\026ScanRunError" + + "TraceProtoP\001ZXgoogle.golang.org/genproto" + + "/googleapis/cloud/websecurityscanner/v1b" + + "eta;websecurityscanner\252\002&Google.Cloud.We" + + "bSecurityScanner.V1Beta\312\002&Google\\Cloud\\W" + + "ebSecurityScanner\\V1beta\352\002)Google::Cloud" + + "::WebSecurityScanner::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunErrorTrace_descriptor, + new java.lang.String[] { + "Code", "ScanConfigError", "MostCommonHttpErrorCode", + }); + com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java similarity index 100% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java similarity index 84% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java index f5758513..c696f8a2 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ScanRunOrBuilder extends +public interface ScanRunOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanRun) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -15,10 +33,13 @@ public interface ScanRunOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -26,70 +47,92 @@ public interface ScanRunOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * + * * @return The enum numeric value on the wire for executionState. */ int getExecutionStateValue(); /** + * + * *
    * The execution state of the ScanRun.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * .google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState execution_state = 2; + * + * * @return The executionState. */ com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExecutionState(); /** + * + * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; + * * @return The enum numeric value on the wire for resultState. */ int getResultStateValue(); /** + * + * *
    * The result state of the ScanRun. This field is only available after the
    * execution state reaches "FINISHED".
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result_state = 3; + * * @return The resultState. */ com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultState(); /** + * + * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * The time at which the ScanRun started.
    * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * The time at which the ScanRun started.
    * 
@@ -99,26 +142,34 @@ public interface ScanRunOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
    * 
* * .google.protobuf.Timestamp end_time = 5; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time at which the ScanRun reached termination state - that the ScanRun
    * is either finished or stopped by user.
@@ -129,17 +180,22 @@ public interface ScanRunOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The number of URLs crawled during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs crawled up to now.
    * 
* * int64 urls_crawled_count = 6; + * * @return The urlsCrawledCount. */ long getUrlsCrawledCount(); /** + * + * *
    * The number of URLs tested during this ScanRun. If the scan is in progress,
    * the value represents the number of URLs tested up to now. The number of
@@ -148,21 +204,27 @@ public interface ScanRunOrBuilder extends
    * 
* * int64 urls_tested_count = 7; + * * @return The urlsTestedCount. */ long getUrlsTestedCount(); /** + * + * *
    * Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; + * * @return The hasVulnerabilities. */ boolean getHasVulnerabilities(); /** + * + * *
    * The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -171,31 +233,40 @@ public interface ScanRunOrBuilder extends
    * 
* * int32 progress_percent = 9; + * * @return The progressPercent. */ int getProgressPercent(); /** + * + * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; + * * @return Whether the errorTrace field is set. */ boolean hasErrorTrace(); /** + * + * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace error_trace = 10; + * * @return The errorTrace. */ com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getErrorTrace(); /** + * + * *
    * If result_state is an ERROR, this field provides the primary reason for
    * scan's termination and more details, if such are available.
@@ -206,45 +277,60 @@ public interface ScanRunOrBuilder extends
   com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder();
 
   /**
+   *
+   *
    * 
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ - java.util.List + java.util.List getWarningTracesList(); /** + * + * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getWarningTraces(int index); /** + * + * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ int getWarningTracesCount(); /** + * + * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ - java.util.List + java.util.List getWarningTracesOrBuilderList(); /** + * + * *
    * A list of warnings, if such are encountered during this scan run.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * repeated .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace warning_traces = 11; + * */ com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder getWarningTracesOrBuilder( int index); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java new file mode 100644 index 00000000..fa953044 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java @@ -0,0 +1,119 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/scan_run.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class ScanRunProto { + private ScanRunProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/websecurityscanner/v1beta" + + "/scan_run.proto\022&google.cloud.websecurit" + + "yscanner.v1beta\032\031google/api/resource.pro" + + "to\032Agoogle/cloud/websecurityscanner/v1be" + + "ta/scan_run_error_trace.proto\032Cgoogle/cl" + + "oud/websecurityscanner/v1beta/scan_run_w" + + "arning_trace.proto\032\037google/protobuf/time" + + "stamp.proto\"\322\006\n\007ScanRun\022\014\n\004name\030\001 \001(\t\022W\n" + + "\017execution_state\030\002 \001(\0162>.google.cloud.we" + + "bsecurityscanner.v1beta.ScanRun.Executio" + + "nState\022Q\n\014result_state\030\003 \001(\0162;.google.cl" + + "oud.websecurityscanner.v1beta.ScanRun.Re" + + "sultState\022.\n\nstart_time\030\004 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022,\n\010end_time\030\005 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022\032\n\022urls_crawled_" + + "count\030\006 \001(\003\022\031\n\021urls_tested_count\030\007 \001(\003\022\033" + + "\n\023has_vulnerabilities\030\010 \001(\010\022\030\n\020progress_" + + "percent\030\t \001(\005\022N\n\013error_trace\030\n \001(\01329.goo" + + "gle.cloud.websecurityscanner.v1beta.Scan" + + "RunErrorTrace\022S\n\016warning_traces\030\013 \003(\0132;." + + "google.cloud.websecurityscanner.v1beta.S" + + "canRunWarningTrace\"Y\n\016ExecutionState\022\037\n\033" + + "EXECUTION_STATE_UNSPECIFIED\020\000\022\n\n\006QUEUED\020" + + "\001\022\014\n\010SCANNING\020\002\022\014\n\010FINISHED\020\003\"O\n\013ResultS" + + "tate\022\034\n\030RESULT_STATE_UNSPECIFIED\020\000\022\013\n\007SU" + + "CCESS\020\001\022\t\n\005ERROR\020\002\022\n\n\006KILLED\020\003:p\352Am\n)web" + + "securityscanner.googleapis.com/ScanRun\022@" + + "projects/{project}/scanConfigs/{scan_con" + + "fig}/scanRuns/{scan_run}B\224\002\n*com.google." + + "cloud.websecurityscanner.v1betaB\014ScanRun" + + "ProtoP\001ZXgoogle.golang.org/genproto/goog" + + "leapis/cloud/websecurityscanner/v1beta;w" + + "ebsecurityscanner\252\002&Google.Cloud.WebSecu" + + "rityScanner.V1Beta\312\002&Google\\Cloud\\WebSec" + + "urityScanner\\V1beta\352\002)Google::Cloud::Web" + + "SecurityScanner::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanRun_descriptor, + new java.lang.String[] { + "Name", + "ExecutionState", + "ResultState", + "StartTime", + "EndTime", + "UrlsCrawledCount", + "UrlsTestedCount", + "HasVulnerabilities", + "ProgressPercent", + "ErrorTrace", + "WarningTraces", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java similarity index 68% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java index 778e0f72..092ab948 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Output only.
  * Defines a warning trace message for ScanRun. Warning traces provide customers
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace}
  */
-public final class ScanRunWarningTrace extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ScanRunWarningTrace extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace)
     ScanRunWarningTraceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ScanRunWarningTrace.newBuilder() to construct.
   private ScanRunWarningTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ScanRunWarningTrace() {
     code_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ScanRunWarningTrace();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ScanRunWarningTrace(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,19 +72,20 @@ private ScanRunWarningTrace(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            code_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              code_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -75,27 +93,31 @@ private ScanRunWarningTrace(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto
+        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto
+        .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.class, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.class,
+            com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Output only.
    * Defines a warning message code.
@@ -104,9 +126,10 @@ private ScanRunWarningTrace(
    *
    * Protobuf enum {@code google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code}
    */
-  public enum Code
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Code implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Default value is never used.
      * 
@@ -115,6 +138,8 @@ public enum Code */ CODE_UNSPECIFIED(0), /** + * + * *
      * Indicates that a scan discovered an unexpectedly low number of URLs. This
      * is sometimes caused by complex navigation features or by using a single
@@ -125,6 +150,8 @@ public enum Code
      */
     INSUFFICIENT_CRAWL_RESULTS(1),
     /**
+     *
+     *
      * 
      * Indicates that a scan discovered too many URLs to test, or excessive
      * redundant URLs.
@@ -134,6 +161,8 @@ public enum Code
      */
     TOO_MANY_CRAWL_RESULTS(2),
     /**
+     *
+     *
      * 
      * Indicates that too many tests have been generated for the scan. Customer
      * should try reducing the number of starting URLs, increasing the QPS rate,
@@ -144,6 +173,8 @@ public enum Code
      */
     TOO_MANY_FUZZ_TASKS(3),
     /**
+     *
+     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -155,6 +186,8 @@ public enum Code ; /** + * + * *
      * Default value is never used.
      * 
@@ -163,6 +196,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Indicates that a scan discovered an unexpectedly low number of URLs. This
      * is sometimes caused by complex navigation features or by using a single
@@ -173,6 +208,8 @@ public enum Code
      */
     public static final int INSUFFICIENT_CRAWL_RESULTS_VALUE = 1;
     /**
+     *
+     *
      * 
      * Indicates that a scan discovered too many URLs to test, or excessive
      * redundant URLs.
@@ -182,6 +219,8 @@ public enum Code
      */
     public static final int TOO_MANY_CRAWL_RESULTS_VALUE = 2;
     /**
+     *
+     *
      * 
      * Indicates that too many tests have been generated for the scan. Customer
      * should try reducing the number of starting URLs, increasing the QPS rate,
@@ -192,6 +231,8 @@ public enum Code
      */
     public static final int TOO_MANY_FUZZ_TASKS_VALUE = 3;
     /**
+     *
+     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -200,7 +241,6 @@ public enum Code */ public static final int BLOCKED_BY_IAP_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -225,51 +265,55 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: return CODE_UNSPECIFIED; - case 1: return INSUFFICIENT_CRAWL_RESULTS; - case 2: return TOO_MANY_CRAWL_RESULTS; - case 3: return TOO_MANY_FUZZ_TASKS; - case 4: return BLOCKED_BY_IAP; - default: return null; + case 0: + return CODE_UNSPECIFIED; + case 1: + return INSUFFICIENT_CRAWL_RESULTS; + case 2: + return TOO_MANY_CRAWL_RESULTS; + case 3: + return TOO_MANY_FUZZ_TASKS; + case 4: + return BLOCKED_BY_IAP; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Code> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDescriptor() + .getEnumTypes() + .get(0); } private static final Code[] VALUES = values(); - public static Code valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -289,31 +333,43 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** + * + * *
    * Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; + * * @return The code. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code getCode() { + @java.lang.Override + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.valueOf(code_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.valueOf(code_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,9 +381,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.CODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, code_); } unknownFields.writeTo(output); @@ -339,9 +396,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ != com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + if (code_ + != com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -351,12 +409,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace other = (com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) obj; + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace other = + (com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) obj; if (code_ != other.code_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -378,96 +437,104 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Output only.
    * Defines a warning trace message for ScanRun. Warning traces provide customers
@@ -476,21 +543,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace)
       com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.class, com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.class,
+              com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.newBuilder()
@@ -498,16 +567,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -517,13 +585,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto.internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTraceProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getDefaultInstanceForType() {
+    public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace
+        getDefaultInstanceForType() {
       return com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance();
     }
 
@@ -538,7 +607,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace result = new com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace(this);
+      com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace result =
+          new com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace(this);
       result.code_ = code_;
       onBuilt();
       return result;
@@ -548,38 +618,39 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace buildParti
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -587,7 +658,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.getDefaultInstance())
+        return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -610,7 +683,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -622,80 +697,100 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
+     *
+     *
      * 
      * Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
      * Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; + * * @return The code. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.valueOf(code_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.valueOf(code_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.UNRECOGNIZED + : result; } /** + * + * *
      * Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code value) { + public Builder setCode( + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -705,30 +800,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) - private static final com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace(); } - public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ScanRunWarningTrace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ScanRunWarningTrace(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScanRunWarningTrace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ScanRunWarningTrace(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -740,9 +837,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java similarity index 55% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java index 80d1a309..2a1da0d3 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ScanRunWarningTraceOrBuilder extends +public interface ScanRunWarningTraceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
    * Indicates the warning code.
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; + * * @return The code. */ com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code getCode(); diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java new file mode 100644 index 00000000..49dc296e --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java @@ -0,0 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class ScanRunWarningTraceProto { + private ScanRunWarningTraceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nCgoogle/cloud/websecurityscanner/v1beta" + + "/scan_run_warning_trace.proto\022&google.cl" + + "oud.websecurityscanner.v1beta\"\355\001\n\023ScanRu" + + "nWarningTrace\022N\n\004code\030\001 \001(\0162@.google.clo" + + "ud.websecurityscanner.v1beta.ScanRunWarn" + + "ingTrace.Code\"\205\001\n\004Code\022\024\n\020CODE_UNSPECIFI" + + "ED\020\000\022\036\n\032INSUFFICIENT_CRAWL_RESULTS\020\001\022\032\n\026" + + "TOO_MANY_CRAWL_RESULTS\020\002\022\027\n\023TOO_MANY_FUZ" + + "Z_TASKS\020\003\022\022\n\016BLOCKED_BY_IAP\020\004B\240\002\n*com.go" + + "ogle.cloud.websecurityscanner.v1betaB\030Sc" + + "anRunWarningTraceProtoP\001ZXgoogle.golang." + + "org/genproto/googleapis/cloud/websecurit" + + "yscanner/v1beta;websecurityscanner\252\002&Goo" + + "gle.Cloud.WebSecurityScanner.V1Beta\312\002&Go" + + "ogle\\Cloud\\WebSecurityScanner\\V1beta\352\002)G" + + "oogle::Cloud::WebSecurityScanner::V1beta" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ScanRunWarningTrace_descriptor, + new java.lang.String[] { + "Code", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java similarity index 64% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java index 46f53c94..a4ad4fdf 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Request for the `StartScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.StartScanRunRequest} */ -public final class StartScanRunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartScanRunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) StartScanRunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartScanRunRequest.newBuilder() to construct. private StartScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StartScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private StartScanRunRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private StartScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ScanConfig to be used. The name follows the
    * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest other = (com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest other = + (com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `StartScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.StartScanRunRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) com.google.cloud.websecurityscanner.v1beta.StartScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.class, + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest result = new com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest(this); + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest result = + new com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +412,39 @@ public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +452,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest other) { - if (other == com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +478,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +492,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +517,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +542,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanConfig to be used. The name follows the
      * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,30 +622,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StartScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +659,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java new file mode 100644 index 00000000..3614cb38 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface StartScanRunRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.StartScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ScanConfig to be used. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the ScanConfig to be used. The name follows the
+   * format of 'projects/{projectId}/scanConfigs/{scanConfigId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java similarity index 66% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java index b92e6094..970b36c4 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Request for the `StopScanRun` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.StopScanRunRequest} */ -public final class StopScanRunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopScanRunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) StopScanRunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopScanRunRequest.newBuilder() to construct. private StopScanRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopScanRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopScanRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StopScanRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private StopScanRunRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private StopScanRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest other = (com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) obj; + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest other = + (com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `StopScanRun` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.StopScanRunRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) com.google.cloud.websecurityscanner.v1beta.StopScanRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.class, + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.newBuilder() @@ -326,16 +363,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,13 +381,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.getDefaultInstance(); } @@ -366,7 +403,8 @@ public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest result = new com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest(this); + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest result = + new com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +414,39 @@ public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +454,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest other) { - if (other == com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +480,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +494,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +520,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +546,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +629,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) - private static final com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest(); } @@ -580,16 +644,16 @@ public static com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopScanRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopScanRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopScanRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StopScanRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +668,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java new file mode 100644 index 00000000..dbcf22f6 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public interface StopScanRunRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.StopScanRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the ScanRun to be stopped. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the ScanRun to be stopped. The name follows the
+   * format of
+   * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java similarity index 66% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java index 073bd532..9488505a 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Request for the `UpdateScanConfigRequest` method.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest} */ -public final class UpdateScanConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateScanConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) UpdateScanConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateScanConfigRequest.newBuilder() to construct. private UpdateScanConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateScanConfigRequest() { - } + + private UpdateScanConfigRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateScanConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateScanConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,45 @@ private UpdateScanConfigRequest( case 0: done = true; break; - case 18: { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder subBuilder = null; - if (scanConfig_ != null) { - subBuilder = scanConfig_.toBuilder(); - } - scanConfig_ = input.readMessage(com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scanConfig_); - scanConfig_ = subBuilder.buildPartial(); - } + case 18: + { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder subBuilder = null; + if (scanConfig_ != null) { + subBuilder = scanConfig_.toBuilder(); + } + scanConfig_ = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scanConfig_); + scanConfig_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,36 +114,43 @@ private UpdateScanConfigRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.Builder.class); } public static final int SCAN_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.websecurityscanner.v1beta.ScanConfig scanConfig_; /** + * + * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -129,27 +158,38 @@ public boolean hasScanConfig() { return scanConfig_ != null; } /** + * + * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The scanConfig. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { - return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() + : scanConfig_; } /** + * + * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder() { @@ -159,13 +199,17 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -173,13 +217,17 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -187,13 +235,16 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -201,6 +252,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (scanConfig_ != null) { output.writeMessage(2, getScanConfig()); } @@ -230,12 +281,10 @@ public int getSerializedSize() { size = 0; if (scanConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getScanConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScanConfig()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -245,22 +294,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest other = (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) obj; + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest other = + (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) obj; if (hasScanConfig() != other.hasScanConfig()) return false; if (hasScanConfig()) { - if (!getScanConfig() - .equals(other.getScanConfig())) return false; + if (!getScanConfig().equals(other.getScanConfig())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -287,134 +335,145 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for the `UpdateScanConfigRequest` method.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.Builder.class); + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.class, + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -434,14 +493,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto.internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.WebSecurityScannerProto + .internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest + .getDefaultInstance(); } @java.lang.Override @@ -455,7 +516,8 @@ public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest build( @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest buildPartial() { - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest(this); + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest(this); if (scanConfigBuilder_ == null) { result.scanConfig_ = scanConfig_; } else { @@ -474,46 +536,51 @@ public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest other) { - if (other == com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest + .getDefaultInstance()) return this; if (other.hasScanConfig()) { mergeScanConfig(other.getScanConfig()); } @@ -539,7 +606,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -551,45 +620,64 @@ public Builder mergeFrom( private com.google.cloud.websecurityscanner.v1beta.ScanConfig scanConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> scanConfigBuilder_; + com.google.cloud.websecurityscanner.v1beta.ScanConfig, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> + scanConfigBuilder_; /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return scanConfigBuilder_ != null || scanConfig_ != null; } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The scanConfig. */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig() { if (scanConfigBuilder_ == null) { - return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() + : scanConfig_; } else { return scanConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConfig value) { if (scanConfigBuilder_ == null) { @@ -605,13 +693,17 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConf return this; } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setScanConfig( com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder builderForValue) { @@ -625,19 +717,25 @@ public Builder setScanConfig( return this; } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanConfig value) { if (scanConfigBuilder_ == null) { if (scanConfig_ != null) { scanConfig_ = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.newBuilder(scanConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.websecurityscanner.v1beta.ScanConfig.newBuilder(scanConfig_) + .mergeFrom(value) + .buildPartial(); } else { scanConfig_ = value; } @@ -649,13 +747,17 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1beta.ScanCo return this; } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearScanConfig() { if (scanConfigBuilder_ == null) { @@ -669,54 +771,70 @@ public Builder clearScanConfig() { return this; } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConfigBuilder() { - + onChanged(); return getScanConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder() { if (scanConfigBuilder_ != null) { return scanConfigBuilder_.getMessageOrBuilder(); } else { - return scanConfig_ == null ? - com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() + : scanConfig_; } } /** + * + * *
      * Required. The ScanConfig to be updated. The name field must be set to identify the
      * resource to be updated. The values of fields not covered by the mask
      * will be ignored.
      * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> + com.google.cloud.websecurityscanner.v1beta.ScanConfig, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder> getScanConfigFieldBuilder() { if (scanConfigBuilder_ == null) { - scanConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.ScanConfig, com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( - getScanConfig(), - getParentForChildren(), - isClean()); + scanConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.ScanConfig, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder, + com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder>( + getScanConfig(), getParentForChildren(), isClean()); scanConfig_ = null; } return scanConfigBuilder_; @@ -724,45 +842,61 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -778,16 +912,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -798,19 +934,22 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -822,13 +961,16 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -842,61 +984,74 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -906,30 +1061,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) - private static final com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest(); } - public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateScanConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateScanConfigRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateScanConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateScanConfigRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -941,9 +1098,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java index 64762742..c43f86ea 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java @@ -1,75 +1,116 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto package com.google.cloud.websecurityscanner.v1beta; -public interface UpdateScanConfigRequestOrBuilder extends +public interface UpdateScanConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the scanConfig field is set. */ boolean hasScanConfig(); /** + * + * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The scanConfig. */ com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfig(); /** + * + * *
    * Required. The ScanConfig to be updated. The name field must be set to identify the
    * resource to be updated. The values of fields not covered by the mask
    * will be ignored.
    * 
* - * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.websecurityscanner.v1beta.ScanConfig scan_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanConfigOrBuilder(); /** + * + * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java similarity index 69% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java index 796dc53d..bd7f2cac 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Information regarding any resource causing the vulnerability such
  * as JavaScript sources, image, audio files, etc.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ViolatingResource}
  */
-public final class ViolatingResource extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ViolatingResource extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.ViolatingResource)
     ViolatingResourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ViolatingResource.newBuilder() to construct.
   private ViolatingResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ViolatingResource() {
     contentType_ = "";
     resourceUrl_ = "";
@@ -27,16 +45,15 @@ private ViolatingResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ViolatingResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ViolatingResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +72,27 @@ private ViolatingResource(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            contentType_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              contentType_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            resourceUrl_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              resourceUrl_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,34 +100,39 @@ private ViolatingResource(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto
+        .internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable
+    return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto
+        .internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.websecurityscanner.v1beta.ViolatingResource.class, com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder.class);
+            com.google.cloud.websecurityscanner.v1beta.ViolatingResource.class,
+            com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder.class);
   }
 
   public static final int CONTENT_TYPE_FIELD_NUMBER = 1;
   private volatile java.lang.Object contentType_;
   /**
+   *
+   *
    * 
    * The MIME type of this resource.
    * 
* * string content_type = 1; + * * @return The contentType. */ @java.lang.Override @@ -117,29 +141,29 @@ public java.lang.String getContentType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; } } /** + * + * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; + * * @return The bytes for contentType. */ @java.lang.Override - public com.google.protobuf.ByteString - getContentTypeBytes() { + public com.google.protobuf.ByteString getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); contentType_ = b; return b; } else { @@ -150,11 +174,14 @@ public java.lang.String getContentType() { public static final int RESOURCE_URL_FIELD_NUMBER = 2; private volatile java.lang.Object resourceUrl_; /** + * + * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; + * * @return The resourceUrl. */ @java.lang.Override @@ -163,29 +190,29 @@ public java.lang.String getResourceUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; } } /** + * + * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; + * * @return The bytes for resourceUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceUrlBytes() { + public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -194,6 +221,7 @@ public java.lang.String getResourceUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +233,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contentType_); } @@ -236,17 +263,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.ViolatingResource)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.ViolatingResource other = (com.google.cloud.websecurityscanner.v1beta.ViolatingResource) obj; + com.google.cloud.websecurityscanner.v1beta.ViolatingResource other = + (com.google.cloud.websecurityscanner.v1beta.ViolatingResource) obj; - if (!getContentType() - .equals(other.getContentType())) return false; - if (!getResourceUrl() - .equals(other.getResourceUrl())) return false; + if (!getContentType().equals(other.getContentType())) return false; + if (!getResourceUrl().equals(other.getResourceUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -268,96 +294,104 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.ViolatingResource prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.ViolatingResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information regarding any resource causing the vulnerability such
    * as JavaScript sources, image, audio files, etc.
@@ -365,21 +399,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.websecurityscanner.v1beta.ViolatingResource}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.ViolatingResource)
       com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable
+      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.websecurityscanner.v1beta.ViolatingResource.class, com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder.class);
+              com.google.cloud.websecurityscanner.v1beta.ViolatingResource.class,
+              com.google.cloud.websecurityscanner.v1beta.ViolatingResource.Builder.class);
     }
 
     // Construct using com.google.cloud.websecurityscanner.v1beta.ViolatingResource.newBuilder()
@@ -387,16 +423,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -408,13 +443,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto
+          .internal_static_google_cloud_websecurityscanner_v1beta_ViolatingResource_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getDefaultInstanceForType() {
+    public com.google.cloud.websecurityscanner.v1beta.ViolatingResource
+        getDefaultInstanceForType() {
       return com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance();
     }
 
@@ -429,7 +465,8 @@ public com.google.cloud.websecurityscanner.v1beta.ViolatingResource build() {
 
     @java.lang.Override
     public com.google.cloud.websecurityscanner.v1beta.ViolatingResource buildPartial() {
-      com.google.cloud.websecurityscanner.v1beta.ViolatingResource result = new com.google.cloud.websecurityscanner.v1beta.ViolatingResource(this);
+      com.google.cloud.websecurityscanner.v1beta.ViolatingResource result =
+          new com.google.cloud.websecurityscanner.v1beta.ViolatingResource(this);
       result.contentType_ = contentType_;
       result.resourceUrl_ = resourceUrl_;
       onBuilt();
@@ -440,38 +477,39 @@ public com.google.cloud.websecurityscanner.v1beta.ViolatingResource buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.websecurityscanner.v1beta.ViolatingResource) {
-        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ViolatingResource)other);
+        return mergeFrom((com.google.cloud.websecurityscanner.v1beta.ViolatingResource) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -479,7 +517,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ViolatingResource other) {
-      if (other == com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance())
+        return this;
       if (!other.getContentType().isEmpty()) {
         contentType_ = other.contentType_;
         onChanged();
@@ -507,7 +547,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.websecurityscanner.v1beta.ViolatingResource) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.websecurityscanner.v1beta.ViolatingResource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -519,18 +560,20 @@ public Builder mergeFrom(
 
     private java.lang.Object contentType_ = "";
     /**
+     *
+     *
      * 
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @return The contentType. */ public java.lang.String getContentType() { java.lang.Object ref = contentType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; @@ -539,20 +582,21 @@ public java.lang.String getContentType() { } } /** + * + * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @return The bytes for contentType. */ - public com.google.protobuf.ByteString - getContentTypeBytes() { + public com.google.protobuf.ByteString getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); contentType_ = b; return b; } else { @@ -560,54 +604,61 @@ public java.lang.String getContentType() { } } /** + * + * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @param value The contentType to set. * @return This builder for chaining. */ - public Builder setContentType( - java.lang.String value) { + public Builder setContentType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + contentType_ = value; onChanged(); return this; } /** + * + * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @return This builder for chaining. */ public Builder clearContentType() { - + contentType_ = getDefaultInstance().getContentType(); onChanged(); return this; } /** + * + * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @param value The bytes for contentType to set. * @return This builder for chaining. */ - public Builder setContentTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentType_ = value; onChanged(); return this; @@ -615,18 +666,20 @@ public Builder setContentTypeBytes( private java.lang.Object resourceUrl_ = ""; /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @return The resourceUrl. */ public java.lang.String getResourceUrl() { java.lang.Object ref = resourceUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceUrl_ = s; return s; @@ -635,20 +688,21 @@ public java.lang.String getResourceUrl() { } } /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @return The bytes for resourceUrl. */ - public com.google.protobuf.ByteString - getResourceUrlBytes() { + public com.google.protobuf.ByteString getResourceUrlBytes() { java.lang.Object ref = resourceUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceUrl_ = b; return b; } else { @@ -656,61 +710,68 @@ public java.lang.String getResourceUrl() { } } /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @param value The resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrl( - java.lang.String value) { + public Builder setResourceUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceUrl_ = value; onChanged(); return this; } /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @return This builder for chaining. */ public Builder clearResourceUrl() { - + resourceUrl_ = getDefaultInstance().getResourceUrl(); onChanged(); return this; } /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @param value The bytes for resourceUrl to set. * @return This builder for chaining. */ - public Builder setResourceUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUrl_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -720,12 +781,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.ViolatingResource) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.ViolatingResource) - private static final com.google.cloud.websecurityscanner.v1beta.ViolatingResource DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.ViolatingResource + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.ViolatingResource(); } @@ -734,16 +796,16 @@ public static com.google.cloud.websecurityscanner.v1beta.ViolatingResource getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ViolatingResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ViolatingResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ViolatingResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ViolatingResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -758,6 +820,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java similarity index 55% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java index 4021d228..584227ed 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface ViolatingResourceOrBuilder extends +public interface ViolatingResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.ViolatingResource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; + * * @return The contentType. */ java.lang.String getContentType(); /** + * + * *
    * The MIME type of this resource.
    * 
* * string content_type = 1; + * * @return The bytes for contentType. */ - com.google.protobuf.ByteString - getContentTypeBytes(); + com.google.protobuf.ByteString getContentTypeBytes(); /** + * + * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; + * * @return The resourceUrl. */ java.lang.String getResourceUrl(); /** + * + * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; + * * @return The bytes for resourceUrl. */ - com.google.protobuf.ByteString - getResourceUrlBytes(); + com.google.protobuf.ByteString getResourceUrlBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java similarity index 65% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java index 32ee8c3a..42d98b35 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Information about vulnerable or missing HTTP Headers.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableHeaders} */ -public final class VulnerableHeaders extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VulnerableHeaders extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.VulnerableHeaders) VulnerableHeadersOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VulnerableHeaders.newBuilder() to construct. private VulnerableHeaders(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VulnerableHeaders() { headers_ = java.util.Collections.emptyList(); missingHeaders_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private VulnerableHeaders() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VulnerableHeaders(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VulnerableHeaders( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,41 @@ private VulnerableHeaders( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + headers_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header>(); + mutable_bitField0_ |= 0x00000001; + } + headers_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), + extensionRegistry)); + break; } - headers_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + missingHeaders_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header>(); + mutable_bitField0_ |= 0x00000002; + } + missingHeaders_.add( + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), + extensionRegistry)); + break; } - missingHeaders_.add( - input.readMessage(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,8 +114,7 @@ private VulnerableHeaders( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -100,79 +126,96 @@ private VulnerableHeaders( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.class, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder.class); } - public interface HeaderOrBuilder extends + public interface HeaderOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Header name.
      * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Header name.
      * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Header value.
      * 
* * string value = 2; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * Header value.
      * 
* * string value = 2; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); } /** + * + * *
    * Describes a HTTP Header.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header} */ - public static final class Header extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Header extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) HeaderOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Header.newBuilder() to construct. private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Header() { name_ = ""; value_ = ""; @@ -180,16 +223,15 @@ private Header() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Header(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Header( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -208,25 +250,27 @@ private Header( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -234,34 +278,39 @@ private Header( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.class, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
      * Header name.
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -270,29 +319,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Header name.
      * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -303,11 +352,14 @@ public java.lang.String getName() { public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** + * + * *
      * Header value.
      * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -316,29 +368,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
      * Header value.
      * 
* * string value = 2; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -347,6 +399,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -358,8 +411,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -389,17 +441,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header other = (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) obj; + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header other = + (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getValue() - .equals(other.getValue())) return false; + if (!getName().equals(other.getName())) return false; + if (!getValue().equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -421,87 +472,95 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -511,44 +570,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Describes a HTTP Header.
      * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.class, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.class, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder.class); } - // Construct using com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.newBuilder() + // Construct using + // com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -560,14 +624,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_Header_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getDefaultInstanceForType() { - return com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance(); + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header + getDefaultInstanceForType() { + return com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header + .getDefaultInstance(); } @java.lang.Override @@ -581,7 +647,8 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header build @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header buildPartial() { - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header result = new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header(this); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header result = + new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header(this); result.name_ = name_; result.value_ = value_; onBuilt(); @@ -592,46 +659,53 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header)other); + return mergeFrom( + (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header other) { - if (other == com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -659,7 +733,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -671,18 +747,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -691,20 +769,21 @@ public java.lang.String getName() { } } /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -712,54 +791,61 @@ public java.lang.String getName() { } } /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -767,18 +853,20 @@ public Builder setNameBytes( private java.lang.Object value_ = ""; /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -787,20 +875,21 @@ public java.lang.String getValue() { } } /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -808,58 +897,66 @@ public java.lang.String getValue() { } } /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -872,30 +969,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header) - private static final com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header(); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Header parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser
PARSER = + new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Header parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Header(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -907,133 +1006,176 @@ public com.google.protobuf.Parser
getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int HEADERS_FIELD_NUMBER = 1; - private java.util.List headers_; + private java.util.List + headers_; /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ @java.lang.Override - public java.util.List getHeadersList() { + public java.util.List + getHeadersList() { return headers_; } /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> getHeadersOrBuilderList() { return headers_; } /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ @java.lang.Override public int getHeadersCount() { return headers_.size(); } /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getHeaders(int index) { return headers_.get(index); } /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder + getHeadersOrBuilder(int index) { return headers_.get(index); } public static final int MISSING_HEADERS_FIELD_NUMBER = 2; - private java.util.List missingHeaders_; + private java.util.List + missingHeaders_; /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ @java.lang.Override - public java.util.List getMissingHeadersList() { + public java.util.List + getMissingHeadersList() { return missingHeaders_; } /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> getMissingHeadersOrBuilderList() { return missingHeaders_; } /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ @java.lang.Override public int getMissingHeadersCount() { return missingHeaders_.size(); } /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMissingHeaders(int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMissingHeaders( + int index) { return missingHeaders_.get(index); } /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder + getMissingHeadersOrBuilder(int index) { return missingHeaders_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1045,8 +1187,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < headers_.size(); i++) { output.writeMessage(1, headers_.get(i)); } @@ -1063,12 +1204,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < headers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, headers_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, headers_.get(i)); } for (int i = 0; i < missingHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, missingHeaders_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, missingHeaders_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1078,17 +1217,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders other = (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) obj; + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders other = + (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) obj; - if (!getHeadersList() - .equals(other.getHeadersList())) return false; - if (!getMissingHeadersList() - .equals(other.getMissingHeadersList())) return false; + if (!getHeadersList().equals(other.getHeadersList())) return false; + if (!getMissingHeadersList().equals(other.getMissingHeadersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1114,117 +1252,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information about vulnerable or missing HTTP Headers.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableHeaders} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.VulnerableHeaders) com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.class, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.class, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.newBuilder() @@ -1232,18 +1380,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getHeadersFieldBuilder(); getMissingHeadersFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1263,13 +1411,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableHeaders_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance(); } @@ -1284,7 +1433,8 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders buildPartial() { - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders result = new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders(this); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders result = + new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders(this); int from_bitField0_ = bitField0_; if (headersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1312,38 +1462,39 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) other); } else { super.mergeFrom(other); return this; @@ -1351,7 +1502,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders other) { - if (other == com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance()) return this; + if (other + == com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance()) + return this; if (headersBuilder_ == null) { if (!other.headers_.isEmpty()) { if (headers_.isEmpty()) { @@ -1370,9 +1523,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.VulnerableHe headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000001); - headersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHeadersFieldBuilder() : null; + headersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHeadersFieldBuilder() + : null; } else { headersBuilder_.addAllMessages(other.headers_); } @@ -1396,9 +1550,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.VulnerableHe missingHeadersBuilder_ = null; missingHeaders_ = other.missingHeaders_; bitField0_ = (bitField0_ & ~0x00000002); - missingHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMissingHeadersFieldBuilder() : null; + missingHeadersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMissingHeadersFieldBuilder() + : null; } else { missingHeadersBuilder_.addAllMessages(other.missingHeaders_); } @@ -1423,7 +1578,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1432,28 +1588,39 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List headers_ = - java.util.Collections.emptyList(); + private java.util.List + headers_ = java.util.Collections.emptyList(); + private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - headers_ = new java.util.ArrayList(headers_); + headers_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header>(headers_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> headersBuilder_; + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + headersBuilder_; /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ - public java.util.List getHeadersList() { + public java.util.List + getHeadersList() { if (headersBuilder_ == null) { return java.util.Collections.unmodifiableList(headers_); } else { @@ -1461,11 +1628,14 @@ public java.util.List * List of vulnerable headers. *
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ public int getHeadersCount() { if (headersBuilder_ == null) { @@ -1475,13 +1645,17 @@ public int getHeadersCount() { } } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getHeaders(int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getHeaders( + int index) { if (headersBuilder_ == null) { return headers_.get(index); } else { @@ -1489,11 +1663,14 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getHe } } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ public Builder setHeaders( int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { @@ -1510,14 +1687,19 @@ public Builder setHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ public Builder setHeaders( - int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder + builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.set(index, builderForValue.build()); @@ -1528,13 +1710,17 @@ public Builder setHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ - public Builder addHeaders(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { + public Builder addHeaders( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1548,11 +1734,14 @@ public Builder addHeaders(com.google.cloud.websecurityscanner.v1beta.VulnerableH return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ public Builder addHeaders( int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { @@ -1569,14 +1758,18 @@ public Builder addHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ public Builder addHeaders( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder + builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(builderForValue.build()); @@ -1587,14 +1780,19 @@ public Builder addHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ public Builder addHeaders( - int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder + builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(index, builderForValue.build()); @@ -1605,18 +1803,22 @@ public Builder addHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ public Builder addAllHeaders( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header> + values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, headers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); @@ -1624,11 +1826,14 @@ public Builder addAllHeaders( return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ public Builder clearHeaders() { if (headersBuilder_ == null) { @@ -1641,11 +1846,14 @@ public Builder clearHeaders() { return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ public Builder removeHeaders(int index) { if (headersBuilder_ == null) { @@ -1658,39 +1866,50 @@ public Builder removeHeaders(int index) { return this; } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder getHeadersBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder + getHeadersBuilder(int index) { return getHeadersFieldBuilder().getBuilder(index); } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder + getHeadersOrBuilder(int index) { if (headersBuilder_ == null) { - return headers_.get(index); } else { + return headers_.get(index); + } else { return headersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ - public java.util.List - getHeadersOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { @@ -1698,74 +1917,105 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuil } } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder addHeadersBuilder() { - return getHeadersFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder + addHeadersBuilder() { + return getHeadersFieldBuilder() + .addBuilder( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header + .getDefaultInstance()); } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder addHeadersBuilder( - int index) { - return getHeadersFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder + addHeadersBuilder(int index) { + return getHeadersFieldBuilder() + .addBuilder( + index, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header + .getDefaultInstance()); } /** + * + * *
      * List of vulnerable headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ - public java.util.List - getHeadersBuilderList() { + public java.util.List< + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder> + getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { - headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder>( - headers_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + headersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder>( + headers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); headers_ = null; } return headersBuilder_; } - private java.util.List missingHeaders_ = - java.util.Collections.emptyList(); + private java.util.List + missingHeaders_ = java.util.Collections.emptyList(); + private void ensureMissingHeadersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - missingHeaders_ = new java.util.ArrayList(missingHeaders_); + missingHeaders_ = + new java.util.ArrayList< + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header>( + missingHeaders_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> missingHeadersBuilder_; + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + missingHeadersBuilder_; /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ - public java.util.List getMissingHeadersList() { + public java.util.List + getMissingHeadersList() { if (missingHeadersBuilder_ == null) { return java.util.Collections.unmodifiableList(missingHeaders_); } else { @@ -1773,11 +2023,15 @@ public java.util.List * List of missing headers. *
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ public int getMissingHeadersCount() { if (missingHeadersBuilder_ == null) { @@ -1787,13 +2041,18 @@ public int getMissingHeadersCount() { } } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMissingHeaders(int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMissingHeaders( + int index) { if (missingHeadersBuilder_ == null) { return missingHeaders_.get(index); } else { @@ -1801,11 +2060,15 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMi } } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder setMissingHeaders( int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { @@ -1822,14 +2085,20 @@ public Builder setMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder setMissingHeaders( - int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder + builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.set(index, builderForValue.build()); @@ -1840,13 +2109,18 @@ public Builder setMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ - public Builder addMissingHeaders(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { + public Builder addMissingHeaders( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { if (missingHeadersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1860,11 +2134,15 @@ public Builder addMissingHeaders(com.google.cloud.websecurityscanner.v1beta.Vuln return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder addMissingHeaders( int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header value) { @@ -1881,14 +2159,19 @@ public Builder addMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder addMissingHeaders( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder + builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.add(builderForValue.build()); @@ -1899,14 +2182,20 @@ public Builder addMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder addMissingHeaders( - int index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder builderForValue) { + int index, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder + builderForValue) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); missingHeaders_.add(index, builderForValue.build()); @@ -1917,18 +2206,23 @@ public Builder addMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder addAllMissingHeaders( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header> + values) { if (missingHeadersBuilder_ == null) { ensureMissingHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, missingHeaders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingHeaders_); onChanged(); } else { missingHeadersBuilder_.addAllMessages(values); @@ -1936,11 +2230,15 @@ public Builder addAllMissingHeaders( return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder clearMissingHeaders() { if (missingHeadersBuilder_ == null) { @@ -1953,11 +2251,15 @@ public Builder clearMissingHeaders() { return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ public Builder removeMissingHeaders(int index) { if (missingHeadersBuilder_ == null) { @@ -1970,39 +2272,53 @@ public Builder removeMissingHeaders(int index) { return this; } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder getMissingHeadersBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder + getMissingHeadersBuilder(int index) { return getMissingHeadersFieldBuilder().getBuilder(index); } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( - int index) { + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder + getMissingHeadersOrBuilder(int index) { if (missingHeadersBuilder_ == null) { - return missingHeaders_.get(index); } else { + return missingHeaders_.get(index); + } else { return missingHeadersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ - public java.util.List - getMissingHeadersOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + getMissingHeadersOrBuilderList() { if (missingHeadersBuilder_ != null) { return missingHeadersBuilder_.getMessageOrBuilderList(); } else { @@ -2010,45 +2326,70 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuil } } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder addMissingHeadersBuilder() { - return getMissingHeadersFieldBuilder().addBuilder( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder + addMissingHeadersBuilder() { + return getMissingHeadersFieldBuilder() + .addBuilder( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header + .getDefaultInstance()); } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ - public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder addMissingHeadersBuilder( - int index) { - return getMissingHeadersFieldBuilder().addBuilder( - index, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.getDefaultInstance()); + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder + addMissingHeadersBuilder(int index) { + return getMissingHeadersFieldBuilder() + .addBuilder( + index, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header + .getDefaultInstance()); } /** + * + * *
      * List of missing headers.
      * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ - public java.util.List - getMissingHeadersBuilderList() { + public java.util.List< + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder> + getMissingHeadersBuilderList() { return getMissingHeadersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> getMissingHeadersFieldBuilder() { if (missingHeadersBuilder_ == null) { - missingHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder>( + missingHeadersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Builder, + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder>( missingHeaders_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2057,9 +2398,9 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.Build } return missingHeadersBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2069,12 +2410,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.VulnerableHeaders) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.VulnerableHeaders) - private static final com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders(); } @@ -2083,16 +2425,16 @@ public static com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableHeaders parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableHeaders(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableHeaders parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableHeaders(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2107,6 +2449,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java similarity index 51% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java index 9bdd7c49..b6c66563 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java @@ -1,97 +1,150 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface VulnerableHeadersOrBuilder extends +public interface VulnerableHeadersOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.VulnerableHeaders) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ - java.util.List + java.util.List getHeadersList(); /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getHeaders(int index); /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ int getHeadersCount(); /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> getHeadersOrBuilderList(); /** + * + * *
    * List of vulnerable headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header headers = 1; + * */ com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getHeadersOrBuilder( int index); /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ - java.util.List + java.util.List getMissingHeadersList(); /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header getMissingHeaders(int index); /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ int getMissingHeadersCount(); /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder> getMissingHeadersOrBuilderList(); /** + * + * *
    * List of missing headers.
    * 
* - * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * + * repeated .google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header missing_headers = 2; + * */ - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder getMissingHeadersOrBuilder( - int index); + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.HeaderOrBuilder + getMissingHeadersOrBuilder(int index); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java similarity index 68% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java index 4bcf5ded..03debcf3 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Information about vulnerable request parameters.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableParameters} */ -public final class VulnerableParameters extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VulnerableParameters extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.VulnerableParameters) VulnerableParametersOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VulnerableParameters.newBuilder() to construct. private VulnerableParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VulnerableParameters() { parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VulnerableParameters(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VulnerableParameters( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,23 @@ private VulnerableParameters( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameterNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + parameterNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + parameterNames_.add(s); + break; } - parameterNames_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +95,7 @@ private VulnerableParameters( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -87,50 +104,61 @@ private VulnerableParameters( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.class, + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder.class); } public static final int PARAMETER_NAMES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList parameterNames_; /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList - getParameterNamesList() { + public com.google.protobuf.ProtocolStringList getParameterNamesList() { return parameterNames_; } /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -138,20 +166,23 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString - getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,8 +194,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < parameterNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameterNames_.getRaw(i)); } @@ -193,15 +223,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableParameters)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters other = (com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) obj; + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters other = + (com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) obj; - if (!getParameterNamesList() - .equals(other.getParameterNamesList())) return false; + if (!getParameterNamesList().equals(other.getParameterNamesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -223,117 +253,127 @@ public int hashCode() { } public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.VulnerableParameters prototype) { + + public static Builder newBuilder( + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information about vulnerable request parameters.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.VulnerableParameters} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.VulnerableParameters) com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.class, com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder.class); + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.class, + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.newBuilder() @@ -341,16 +381,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -360,13 +399,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_VulnerableParameters_descriptor; } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters + getDefaultInstanceForType() { return com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance(); } @@ -381,7 +421,8 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters buildPartial() { - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters result = new com.google.cloud.websecurityscanner.v1beta.VulnerableParameters(this); + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters result = + new com.google.cloud.websecurityscanner.v1beta.VulnerableParameters(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { parameterNames_ = parameterNames_.getUnmodifiableView(); @@ -396,46 +437,50 @@ public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.VulnerableParameters)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.VulnerableParameters other) { - if (other == com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters other) { + if (other + == com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance()) + return this; if (!other.parameterNames_.isEmpty()) { if (parameterNames_.isEmpty()) { parameterNames_ = other.parameterNames_; @@ -465,7 +510,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.websecurityscanner.v1beta.VulnerableParameters) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -474,44 +521,55 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList parameterNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList parameterNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureParameterNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { parameterNames_ = new com.google.protobuf.LazyStringArrayList(parameterNames_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @return A list containing the parameterNames. */ - public com.google.protobuf.ProtocolStringList - getParameterNamesList() { + public com.google.protobuf.ProtocolStringList getParameterNamesList() { return parameterNames_.getUnmodifiableView(); } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @return The count of parameterNames. */ public int getParameterNamesCount() { return parameterNames_.size(); } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param index The index of the element to return. * @return The parameterNames at the given index. */ @@ -519,80 +577,90 @@ public java.lang.String getParameterNames(int index) { return parameterNames_.get(index); } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - public com.google.protobuf.ByteString - getParameterNamesBytes(int index) { + public com.google.protobuf.ByteString getParameterNamesBytes(int index) { return parameterNames_.getByteString(index); } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param index The index to set the value at. * @param value The parameterNames to set. * @return This builder for chaining. */ - public Builder setParameterNames( - int index, java.lang.String value) { + public Builder setParameterNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.set(index, value); onChanged(); return this; } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param value The parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNames( - java.lang.String value) { + public Builder addParameterNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureParameterNamesIsMutable(); + throw new NullPointerException(); + } + ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param values The parameterNames to add. * @return This builder for chaining. */ - public Builder addAllParameterNames( - java.lang.Iterable values) { + public Builder addAllParameterNames(java.lang.Iterable values) { ensureParameterNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, parameterNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameterNames_); onChanged(); return this; } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @return This builder for chaining. */ public Builder clearParameterNames() { @@ -602,28 +670,30 @@ public Builder clearParameterNames() { return this; } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @param value The bytes of the parameterNames to add. * @return This builder for chaining. */ - public Builder addParameterNamesBytes( - com.google.protobuf.ByteString value) { + public Builder addParameterNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureParameterNamesIsMutable(); parameterNames_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -633,30 +703,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.VulnerableParameters) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.VulnerableParameters) - private static final com.google.cloud.websecurityscanner.v1beta.VulnerableParameters DEFAULT_INSTANCE; + private static final com.google.cloud.websecurityscanner.v1beta.VulnerableParameters + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.VulnerableParameters(); } - public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getDefaultInstance() { + public static com.google.cloud.websecurityscanner.v1beta.VulnerableParameters + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VulnerableParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VulnerableParameters(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VulnerableParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VulnerableParameters(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -668,9 +740,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters getDefaultInstanceForType() { + public com.google.cloud.websecurityscanner.v1beta.VulnerableParameters + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java similarity index 60% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java index c79d07da..e8516b30 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java @@ -1,50 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface VulnerableParametersOrBuilder extends +public interface VulnerableParametersOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.VulnerableParameters) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @return A list containing the parameterNames. */ - java.util.List - getParameterNamesList(); + java.util.List getParameterNamesList(); /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @return The count of parameterNames. */ int getParameterNamesCount(); /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @param index The index of the element to return. * @return The parameterNames at the given index. */ java.lang.String getParameterNames(int index); /** + * + * *
    * The vulnerable parameter names.
    * 
* * repeated string parameter_names = 1; + * * @param index The index of the value to return. * @return The bytes of the parameterNames at the given index. */ - com.google.protobuf.ByteString - getParameterNamesBytes(int index); + com.google.protobuf.ByteString getParameterNamesBytes(int index); } diff --git a/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java new file mode 100644 index 00000000..605c7398 --- /dev/null +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java @@ -0,0 +1,442 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto + +package com.google.cloud.websecurityscanner.v1beta; + +public final class WebSecurityScannerProto { + private WebSecurityScannerProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nAgoogle/cloud/websecurityscanner/v1beta" + + "/web_security_scanner.proto\022&google.clou" + + "d.websecurityscanner.v1beta\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\0328google/cloud/web" + + "securityscanner/v1beta/crawled_url.proto" + + "\0324google/cloud/websecurityscanner/v1beta" + + "/finding.proto\032?google/cloud/websecurity" + + "scanner/v1beta/finding_type_stats.proto\032" + + "8google/cloud/websecurityscanner/v1beta/" + + "scan_config.proto\0325google/cloud/websecur" + + "ityscanner/v1beta/scan_run.proto\032\033google" + + "/protobuf/empty.proto\032 google/protobuf/f" + + "ield_mask.proto\"\254\001\n\027CreateScanConfigRequ" + + "est\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresour" + + "cemanager.googleapis.com/Project\022L\n\013scan" + + "_config\030\002 \001(\01322.google.cloud.websecurity" + + "scanner.v1beta.ScanConfigB\003\340A\002\"]\n\027Delete" + + "ScanConfigRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n" + + ",websecurityscanner.googleapis.com/ScanC" + + "onfig\"Z\n\024GetScanConfigRequest\022B\n\004name\030\001 " + + "\001(\tB4\340A\002\372A.\n,websecurityscanner.googleap" + + "is.com/ScanConfig\"\204\001\n\026ListScanConfigsReq" + + "uest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresou" + + "rcemanager.googleapis.com/Project\022\022\n\npag" + + "e_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\235\001\n\027Upd" + + "ateScanConfigRequest\022L\n\013scan_config\030\002 \001(" + + "\01322.google.cloud.websecurityscanner.v1be" + + "ta.ScanConfigB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\002\"|\n\027List" + + "ScanConfigsResponse\022H\n\014scan_configs\030\001 \003(" + + "\01322.google.cloud.websecurityscanner.v1be" + + "ta.ScanConfig\022\027\n\017next_page_token\030\002 \001(\t\"Y" + + "\n\023StartScanRunRequest\022B\n\004name\030\001 \001(\tB4\340A\002" + + "\372A.\n,websecurityscanner.googleapis.com/S" + + "canConfig\"T\n\021GetScanRunRequest\022?\n\004name\030\001" + + " \001(\tB1\340A\002\372A+\n)websecurityscanner.googlea" + + "pis.com/ScanRun\"\202\001\n\023ListScanRunsRequest\022" + + "D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,websecurityscan" + + "ner.googleapis.com/ScanConfig\022\022\n\npage_to" + + "ken\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"s\n\024ListScan" + + "RunsResponse\022B\n\tscan_runs\030\001 \003(\0132/.google" + + ".cloud.websecurityscanner.v1beta.ScanRun" + + "\022\027\n\017next_page_token\030\002 \001(\t\"U\n\022StopScanRun" + + "Request\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)websecuri" + + "tyscanner.googleapis.com/ScanRun\"\202\001\n\026Lis" + + "tCrawledUrlsRequest\022A\n\006parent\030\001 \001(\tB1\340A\002" + + "\372A+\n)websecurityscanner.googleapis.com/S" + + "canRun\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030" + + "\003 \001(\005\"|\n\027ListCrawledUrlsResponse\022H\n\014craw" + + "led_urls\030\001 \003(\01322.google.cloud.websecurit" + + "yscanner.v1beta.CrawledUrl\022\027\n\017next_page_" + + "token\030\002 \001(\t\"T\n\021GetFindingRequest\022?\n\004name" + + "\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner.googl" + + "eapis.com/Finding\"\224\001\n\023ListFindingsReques" + + "t\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)websecuritysc" + + "anner.googleapis.com/ScanRun\022\023\n\006filter\030\002" + + " \001(\tB\003\340A\002\022\022\n\npage_token\030\003 \001(\t\022\021\n\tpage_si" + + "ze\030\004 \001(\005\"r\n\024ListFindingsResponse\022A\n\010find" + + "ings\030\001 \003(\0132/.google.cloud.websecuritysca" + + "nner.v1beta.Finding\022\027\n\017next_page_token\030\002" + + " \001(\t\"`\n\033ListFindingTypeStatsRequest\022A\n\006p" + + "arent\030\001 \001(\tB1\340A\002\372A+\n)websecurityscanner." + + "googleapis.com/ScanRun\"t\n\034ListFindingTyp" + + "eStatsResponse\022T\n\022finding_type_stats\030\001 \003" + + "(\01328.google.cloud.websecurityscanner.v1b" + + "eta.FindingTypeStats2\216\026\n\022WebSecurityScan" + + "ner\022\332\001\n\020CreateScanConfig\022?.google.cloud." + + "websecurityscanner.v1beta.CreateScanConf" + + "igRequest\0322.google.cloud.websecurityscan" + + "ner.v1beta.ScanConfig\"Q\202\323\344\223\0026\"\'/v1beta/{" + + "parent=projects/*}/scanConfigs:\013scan_con" + + "fig\332A\022parent,scan_config\022\243\001\n\020DeleteScanC" + + "onfig\022?.google.cloud.websecurityscanner." + + "v1beta.DeleteScanConfigRequest\032\026.google." + + "protobuf.Empty\"6\202\323\344\223\002)*\'/v1beta/{name=pr" + + "ojects/*/scanConfigs/*}\332A\004name\022\271\001\n\rGetSc" + + "anConfig\022<.google.cloud.websecurityscann" + + "er.v1beta.GetScanConfigRequest\0322.google." + + "cloud.websecurityscanner.v1beta.ScanConf" + + "ig\"6\202\323\344\223\002)\022\'/v1beta/{name=projects/*/sca" + + "nConfigs/*}\332A\004name\022\314\001\n\017ListScanConfigs\022>" + + ".google.cloud.websecurityscanner.v1beta." + + "ListScanConfigsRequest\032?.google.cloud.we" + + "bsecurityscanner.v1beta.ListScanConfigsR" + + "esponse\"8\202\323\344\223\002)\022\'/v1beta/{parent=project" + + "s/*}/scanConfigs\332A\006parent\022\353\001\n\020UpdateScan" + + "Config\022?.google.cloud.websecurityscanner" + + ".v1beta.UpdateScanConfigRequest\0322.google" + + ".cloud.websecurityscanner.v1beta.ScanCon" + + "fig\"b\202\323\344\223\002B23/v1beta/{scan_config.name=p" + + "rojects/*/scanConfigs/*}:\013scan_config\332A\027" + + "scan_config,update_mask\022\275\001\n\014StartScanRun" + + "\022;.google.cloud.websecurityscanner.v1bet" + + "a.StartScanRunRequest\032/.google.cloud.web" + + "securityscanner.v1beta.ScanRun\"?\202\323\344\223\0022\"-" + + "/v1beta/{name=projects/*/scanConfigs/*}:" + + "start:\001*\332A\004name\022\273\001\n\nGetScanRun\0229.google." + + "cloud.websecurityscanner.v1beta.GetScanR" + + "unRequest\032/.google.cloud.websecurityscan" + + "ner.v1beta.ScanRun\"A\202\323\344\223\0024\0222/v1beta/{nam" + + "e=projects/*/scanConfigs/*/scanRuns/*}\332A" + + "\004name\022\316\001\n\014ListScanRuns\022;.google.cloud.we" + + "bsecurityscanner.v1beta.ListScanRunsRequ" + + "est\032<.google.cloud.websecurityscanner.v1" + + "beta.ListScanRunsResponse\"C\202\323\344\223\0024\0222/v1be" + + "ta/{parent=projects/*/scanConfigs/*}/sca" + + "nRuns\332A\006parent\022\305\001\n\013StopScanRun\022:.google." + + "cloud.websecurityscanner.v1beta.StopScan" + + "RunRequest\032/.google.cloud.websecuritysca" + + "nner.v1beta.ScanRun\"I\202\323\344\223\002<\"7/v1beta/{na" + + "me=projects/*/scanConfigs/*/scanRuns/*}:" + + "stop:\001*\332A\004name\022\345\001\n\017ListCrawledUrls\022>.goo" + + "gle.cloud.websecurityscanner.v1beta.List" + + "CrawledUrlsRequest\032?.google.cloud.websec" + + "urityscanner.v1beta.ListCrawledUrlsRespo" + + "nse\"Q\202\323\344\223\002B\022@/v1beta/{parent=projects/*/" + + "scanConfigs/*/scanRuns/*}/crawledUrls\332A\006" + + "parent\022\306\001\n\nGetFinding\0229.google.cloud.web" + + "securityscanner.v1beta.GetFindingRequest" + + "\032/.google.cloud.websecurityscanner.v1bet" + + "a.Finding\"L\202\323\344\223\002?\022=/v1beta/{name=project" + + "s/*/scanConfigs/*/scanRuns/*/findings/*}" + + "\332A\004name\022\340\001\n\014ListFindings\022;.google.cloud." + + "websecurityscanner.v1beta.ListFindingsRe" + + "quest\032<.google.cloud.websecurityscanner." + + "v1beta.ListFindingsResponse\"U\202\323\344\223\002?\022=/v1" + + "beta/{parent=projects/*/scanConfigs/*/sc" + + "anRuns/*}/findings\332A\rparent,filter\022\371\001\n\024L" + + "istFindingTypeStats\022C.google.cloud.webse" + + "curityscanner.v1beta.ListFindingTypeStat" + + "sRequest\032D.google.cloud.websecurityscann" + + "er.v1beta.ListFindingTypeStatsResponse\"V" + + "\202\323\344\223\002G\022E/v1beta/{parent=projects/*/scanC" + + "onfigs/*/scanRuns/*}/findingTypeStats\332A\006" + + "parent\032U\312A!websecurityscanner.googleapis" + + ".com\322A.https://www.googleapis.com/auth/c" + + "loud-platformB\237\002\n*com.google.cloud.webse" + + "curityscanner.v1betaB\027WebSecurityScanner" + + "ProtoP\001ZXgoogle.golang.org/genproto/goog" + + "leapis/cloud/websecurityscanner/v1beta;w" + + "ebsecurityscanner\252\002&Google.Cloud.WebSecu" + + "rityScanner.V1Beta\312\002&Google\\Cloud\\WebSec" + + "urityScanner\\V1beta\352\002)Google::Cloud::Web" + + "SecurityScanner::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.FindingProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.getDescriptor(), + com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_CreateScanConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "ScanConfig", + }); + internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_DeleteScanConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_GetScanConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_UpdateScanConfigRequest_descriptor, + new java.lang.String[] { + "ScanConfig", "UpdateMask", + }); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListScanConfigsResponse_descriptor, + new java.lang.String[] { + "ScanConfigs", "NextPageToken", + }); + internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_StartScanRunRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_GetScanRunRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListScanRunsResponse_descriptor, + new java.lang.String[] { + "ScanRuns", "NextPageToken", + }); + internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_StopScanRunRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListCrawledUrlsResponse_descriptor, + new java.lang.String[] { + "CrawledUrls", "NextPageToken", + }); + internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_GetFindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageToken", "PageSize", + }); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingsResponse_descriptor, + new java.lang.String[] { + "Findings", "NextPageToken", + }); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsRequest_descriptor, + new java.lang.String[] { + "Parent", + }); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1beta_ListFindingTypeStatsResponse_descriptor, + new java.lang.String[] { + "FindingTypeStats", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.CrawledUrlProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.FindingProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.FindingTypeStatsProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.ScanConfigProto.getDescriptor(); + com.google.cloud.websecurityscanner.v1beta.ScanRunProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java similarity index 72% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java index 8804159c..f72469e0 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; /** + * + * *
  * Information reported for an XSS.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Xss} */ -public final class Xss extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Xss extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1beta.Xss) XssOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Xss.newBuilder() to construct. private Xss(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Xss() { stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; errorMessage_ = ""; @@ -26,16 +44,15 @@ private Xss() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Xss(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Xss( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private Xss( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stackTraces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + stackTraces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + stackTraces_.add(s); + break; } - stackTraces_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + errorMessage_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private Xss( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -94,50 +112,61 @@ private Xss( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.Xss.class, com.google.cloud.websecurityscanner.v1beta.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1beta.Xss.class, + com.google.cloud.websecurityscanner.v1beta.Xss.Builder.class); } public static final int STACK_TRACES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList stackTraces_; /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList - getStackTracesList() { + public com.google.protobuf.ProtocolStringList getStackTracesList() { return stackTraces_; } /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -145,27 +174,32 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString - getStackTracesBytes(int index) { + public com.google.protobuf.ByteString getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object errorMessage_; /** + * + * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; + * * @return The errorMessage. */ @java.lang.Override @@ -174,29 +208,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** + * + * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -205,6 +239,7 @@ public java.lang.String getErrorMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,8 +251,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < stackTraces_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stackTraces_.getRaw(i)); } @@ -252,17 +286,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.websecurityscanner.v1beta.Xss)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1beta.Xss other = (com.google.cloud.websecurityscanner.v1beta.Xss) obj; + com.google.cloud.websecurityscanner.v1beta.Xss other = + (com.google.cloud.websecurityscanner.v1beta.Xss) obj; - if (!getStackTracesList() - .equals(other.getStackTracesList())) return false; - if (!getErrorMessage() - .equals(other.getErrorMessage())) return false; + if (!getStackTracesList().equals(other.getStackTracesList())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -285,118 +318,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.websecurityscanner.v1beta.Xss parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.websecurityscanner.v1beta.Xss parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.Xss parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.websecurityscanner.v1beta.Xss parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.websecurityscanner.v1beta.Xss prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information reported for an XSS.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1beta.Xss} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.websecurityscanner.v1beta.Xss) com.google.cloud.websecurityscanner.v1beta.XssOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_Xss_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1beta.Xss.class, com.google.cloud.websecurityscanner.v1beta.Xss.Builder.class); + com.google.cloud.websecurityscanner.v1beta.Xss.class, + com.google.cloud.websecurityscanner.v1beta.Xss.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1beta.Xss.newBuilder() @@ -404,16 +446,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +466,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1beta.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1beta_Xss_descriptor; } @java.lang.Override @@ -446,7 +487,8 @@ public com.google.cloud.websecurityscanner.v1beta.Xss build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.Xss buildPartial() { - com.google.cloud.websecurityscanner.v1beta.Xss result = new com.google.cloud.websecurityscanner.v1beta.Xss(this); + com.google.cloud.websecurityscanner.v1beta.Xss result = + new com.google.cloud.websecurityscanner.v1beta.Xss(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { stackTraces_ = stackTraces_.getUnmodifiableView(); @@ -462,38 +504,39 @@ public com.google.cloud.websecurityscanner.v1beta.Xss buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.websecurityscanner.v1beta.Xss) { - return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Xss)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1beta.Xss) other); } else { super.mergeFrom(other); return this; @@ -544,44 +587,55 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList stackTraces_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList stackTraces_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureStackTracesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { stackTraces_ = new com.google.protobuf.LazyStringArrayList(stackTraces_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @return A list containing the stackTraces. */ - public com.google.protobuf.ProtocolStringList - getStackTracesList() { + public com.google.protobuf.ProtocolStringList getStackTracesList() { return stackTraces_.getUnmodifiableView(); } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @return The count of stackTraces. */ public int getStackTracesCount() { return stackTraces_.size(); } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param index The index of the element to return. * @return The stackTraces at the given index. */ @@ -589,80 +643,90 @@ public java.lang.String getStackTraces(int index) { return stackTraces_.get(index); } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - public com.google.protobuf.ByteString - getStackTracesBytes(int index) { + public com.google.protobuf.ByteString getStackTracesBytes(int index) { return stackTraces_.getByteString(index); } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param index The index to set the value at. * @param value The stackTraces to set. * @return This builder for chaining. */ - public Builder setStackTraces( - int index, java.lang.String value) { + public Builder setStackTraces(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.set(index, value); onChanged(); return this; } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param value The stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTraces( - java.lang.String value) { + public Builder addStackTraces(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStackTracesIsMutable(); + throw new NullPointerException(); + } + ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); return this; } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param values The stackTraces to add. * @return This builder for chaining. */ - public Builder addAllStackTraces( - java.lang.Iterable values) { + public Builder addAllStackTraces(java.lang.Iterable values) { ensureStackTracesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stackTraces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stackTraces_); onChanged(); return this; } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @return This builder for chaining. */ public Builder clearStackTraces() { @@ -672,20 +736,22 @@ public Builder clearStackTraces() { return this; } /** + * + * *
      * Stack traces leading to the point where the XSS occurred.
      * 
* * repeated string stack_traces = 1; + * * @param value The bytes of the stackTraces to add. * @return This builder for chaining. */ - public Builder addStackTracesBytes( - com.google.protobuf.ByteString value) { + public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStackTracesIsMutable(); stackTraces_.add(value); onChanged(); @@ -694,18 +760,20 @@ public Builder addStackTracesBytes( private java.lang.Object errorMessage_ = ""; /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -714,20 +782,21 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -735,61 +804,68 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage( - java.lang.String value) { + public Builder setErrorMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -799,12 +875,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1beta.Xss) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1beta.Xss) private static final com.google.cloud.websecurityscanner.v1beta.Xss DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1beta.Xss(); } @@ -813,16 +889,16 @@ public static com.google.cloud.websecurityscanner.v1beta.Xss getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Xss parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Xss(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Xss parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Xss(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -837,6 +913,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.Xss getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java similarity index 65% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java rename to proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java index bf9286e9..a8d275af 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java +++ b/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java @@ -1,70 +1,101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/websecurityscanner/v1beta/finding_addon.proto package com.google.cloud.websecurityscanner.v1beta; -public interface XssOrBuilder extends +public interface XssOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1beta.Xss) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @return A list containing the stackTraces. */ - java.util.List - getStackTracesList(); + java.util.List getStackTracesList(); /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @return The count of stackTraces. */ int getStackTracesCount(); /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @param index The index of the element to return. * @return The stackTraces at the given index. */ java.lang.String getStackTraces(int index); /** + * + * *
    * Stack traces leading to the point where the XSS occurred.
    * 
* * repeated string stack_traces = 1; + * * @param index The index of the value to return. * @return The bytes of the stackTraces at the given index. */ - com.google.protobuf.ByteString - getStackTracesBytes(int index); + com.google.protobuf.ByteString getStackTracesBytes(int index); /** + * + * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; + * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** + * + * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString - getErrorMessageBytes(); + com.google.protobuf.ByteString getErrorMessageBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto similarity index 100% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto rename to proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto similarity index 100% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto rename to proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto similarity index 100% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto rename to proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto similarity index 100% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto rename to proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto similarity index 100% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto rename to proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto similarity index 100% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto rename to proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto similarity index 100% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto rename to proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto similarity index 100% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto rename to proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto similarity index 100% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto rename to proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto diff --git a/owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto b/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto similarity index 100% rename from owl-bot-staging/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto rename to proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/AsyncGetFinding.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getfinding/SyncGetFinding.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/AsyncGetScanRun.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/getscanrun/SyncGetScanRun.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindings.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindings/SyncListFindings.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRuns.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/listscanruns/SyncListScanRuns.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/AsyncStartScanRun.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/startscanrun/SyncStartScanRun.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/stopscanrun/SyncStopScanRun.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/AsyncGetFinding.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFinding.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getfinding/SyncGetFindingString.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/AsyncGetScanRun.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRun.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/getscanrun/SyncGetScanRunString.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindings.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindings.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindings/SyncListFindingsStringString.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRuns.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRuns.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/listscanruns/SyncListScanRunsString.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/AsyncStartScanRun.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRun.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/startscanrun/SyncStartScanRunString.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRun.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java diff --git a/owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/AsyncCreateScanConfig.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfig.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/createscanconfig/SyncCreateScanConfigStringScanconfig.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/AsyncDeleteScanConfig.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfig.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigScanconfigname.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/deletescanconfig/SyncDeleteScanConfigString.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/AsyncGetFinding.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFinding.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingFindingname.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getfinding/SyncGetFindingString.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/AsyncGetScanConfig.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfig.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigScanconfigname.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanconfig/SyncGetScanConfigString.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/AsyncGetScanRun.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRun.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunScanrunname.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/getscanrun/SyncGetScanRunString.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrls.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/AsyncListCrawledUrlsPaged.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrls.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsScanrunname.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listcrawledurls/SyncListCrawledUrlsString.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindings.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/AsyncListFindingsPaged.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindings.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsScanrunnameString.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindings/SyncListFindingsStringString.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/AsyncListFindingTypeStats.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStats.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listfindingtypestats/SyncListFindingTypeStatsString.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigs.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/AsyncListScanConfigsPaged.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigs.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsProjectname.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanconfigs/SyncListScanConfigsString.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRuns.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/AsyncListScanRunsPaged.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRuns.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsScanconfigname.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/listscanruns/SyncListScanRunsString.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/AsyncStartScanRun.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRun.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunScanconfigname.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/startscanrun/SyncStartScanRunString.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/AsyncStopScanRun.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRun.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunScanrunname.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/stopscanrun/SyncStopScanRunString.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/AsyncUpdateScanConfig.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfig.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannerclient/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java diff --git a/owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java rename to samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java